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

How do you detect if someone is walking?

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

2 answers

✓ Accepted answer

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)

1 comment

0

Thanks!

wait(0.1)
if game.Players.LocalPlayer.Character.Humanoid.Magnitude > 0 then
print("Moving")
end

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