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

How could I detect if a humanoid is standing still?

Asked by
royee354 129
5 years ago

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

Log in to vote
0
Answered by 5 years ago

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 :)

0
You were missing Vector3 but you did answer my question. Good job. royee354 129 — 5y
0
oops, sorry i wrote that on my phone :/ NinjaManChase 226 — 5y
Ad

Answer this question