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

How can i make a script that detect whether player run or not run?

Asked by 4 years ago

Yup, I want to make a script that detect if player run or not. Anyone help me pls!

0
if Humanoid:GetState() == Enum.HumanoidStateType.Running then ... theking48989987 2147 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

humanoid has a function which can check if its running

game.Workspace.Player.Humanoid.Running:connect(function(speed)
    if speed > 0 then
        print("Player is running")
    else
        print("Player has stopped")
    end
end)

lol

0
thanks LightMichael3010 2 — 4y
Ad

Answer this question