inverse gravity player physics not working

so what I’m trying to do is get a working gravity switch I got that part working but the problem is movement physics the player slides around and can’t stay on the moving platforms can someone help me fix this also I’m in UE4 just so you know