Log in to vote

How do you check if a Character is walking?

Asked by 7 years ago

I know that if you check a Humanoid's state you can see if a Character is Jumping or Falling, but when a Character is not moving it still counts them as Running/RunningNoPhysics.

BONUS QUESTION: What is the difference between Running and RunningNoPhysics?

That's because Running doesn't check if they're running. It checks for the torso's velocity. EzraNehemiah_TF2 3552 — 7y

1 answer

Log in to vote
Answered by 7 years ago

Use the running event.

workspace.Player1.Humanoid.Running:connect(function(speed) --You can also do Humanoid.FreeFalling for falling and Humanoid.Jumping for jumping.
    if speed > 0 then --Walking
    elseif speed == 0 then --If speed is 0 then they've stopped walking.
        print("Stopped walking")

I saw your forum post: Humanoid.Running does work. Just check if the speed = 0. Running checks for the player's Torso's Velocity. If it's 0 they're not moving. If it's bigger than 0 they're walking.

Hope this helps!

Problem is, whenever a player lands it counts them as walking (even if they aren't). ASCIIaliens 20 — 7y

Answer this question