Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How could I detect if a humanoid is standing still?

Is there a way to detect if a Humanoid is standing? I mean, there is an event for a humanoid walking but no such event when it comes to standing, any suggestions on how could I detect a humanoid standing?

1 answer

✓ Accepted answer

Hello,

I would use MoveDirection to decrect if a humanoid is standing still. You could use it like this:

if game.Workspace.Player.Humanoid.MoveDirection == 0,0,0 then
     print(“player is not moving”)
end

Hope this helped :)

2 comments

0

You were missing Vector3 but you did answer my question. Good job.

0

oops, sorry i wrote that on my phone :/

This discussion is preserved as it was. New answers, comments, and votes are closed.