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

How to tell if a player is moving or not?

Asked by
Tizzel40 243 Moderation Voter
3 years ago

How do I know is the player is moving around by Keys , the mobile stick , etc ?

0
There is no official way to know, but try checking their walkspeed gringlestick2 -178 — 3y

1 answer

Log in to vote
1
Answered by 3 years ago

Insert a script in the StarterCharacterScripts and write the following:

local Humanoid = script.Parent.Humanoid

Humanoid.Running:Connect(function()

    --Write what you want to do to the player here.
    --This function will run as soon as the player moves from their position

end)
Ad

Answer this question