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

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

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

1 comment

0

if Humanoid:GetState() == Enum.HumanoidStateType.Running then ...

1 answer

✓ Accepted answer

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

1 comment

0

thanks

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