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

Is it possible?

Is it possible to detect if a player is walking, and if so, can I get a wiki link or a script?

1 comment

2

.Running event of the Humanoid.

1 answer

✓ Accepted answer

Yes. The Running event on a Humanoid fires whenever a person starts or stops running, giving the speed they are moving at (their WalkSpeed if they start walking, and 0 if they stop).

Running wiki article

We can record whether or not they are running by a simple modification of state:

local isRunning = false;

someHumanoid.Running:connect(function(speed) isRunning = speed == 0; end);

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