Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to detect move direction of a player?

Asked by 5 years ago

I m trying to make a script that runs a diff animation when player move to right and a diff animation when player moves to left

if game.Players.LocalPlayer.Character.Humanoid.Jump == true and game.LocalPlayer.Character.Humanoid.MoveDirection > Vector3.new(0,0,0) then
anim:Play()

what is wrong here?

Answer this question