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

Is it possible?

Asked by 10 years ago

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

2
.Running event of the Humanoid. wazap 100 — 10y

1 answer

Log in to vote
0
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
10 years ago

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

Ad

Answer this question