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

How do you detect if someone is walking?

Asked by 10 years ago

I don't remember, but I think there was this thing called "speed", which might've been removed.

2 answers

Log in to vote
1
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago

This event will detect and handle people "running" which it will also detect walking.

http://wiki.roblox.com/index.php?title=Running_(Event)

So you can tell how fast someone is going in the script (May not detect speed hackers)

game.Players.PlayerAdded:connect(function(p)
    p.CharacterAdded:connect(function(c)
        c:WaitForChild("Humanoid").Running:connect(function(speed)
            print(p.Name .. ":" .. speed) --Should print the speed of the player walking or running.
        end)
    end)
end)
0
Thanks! hievery1 70 — 10y
Ad
Log in to vote
0
Answered by 5 years ago
Edited 5 years ago
wait(0.1)
if game.Players.LocalPlayer.Character.Humanoid.Magnitude > 0 then
print("Moving")
end

Answer this question