MoveDirection not working

Im making a script where a part is moving to the player’s direction using Humanoid.MoveDirection
the part goes to the right when the Z vector of Movedirection is over 0.8 i made a loop to print the Z vector and the it shows me correctly when my Z vector is going up but the rest of the script doesnt works for no reason

Script :
image
Output :
image
Eveytime im going to the right it should print “1” and “a” but it just prints “1”

It’s because you’re not checking it constantly. You should put it inside a RenderStepped event.

1 Like

Getting the same result
iiiiii

Remove the while loop above it.

2 Likes