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

How detect when player moving?

Asked by 5 years ago

I want a script that detects if character moving. How to do?

1 answer

Log in to vote
0
Answered by
Amiaa16 3227 Moderation Voter Community Moderator
5 years ago

You can connect to Humanoid.Running event. It's fired whenever you start or stop walking. The argument it passes is the speed. If you're not walking, the value will be 0. Note that it may and probably will fire multiple times at once.

If you want another way, you can check the player's torso's velocity to determine if they are moving or not.

Ad

Answer this question