Hello, I am trying to make a local script and when the player presses a button it will do a forward jump. Everything is working except for checking when the humanoid is running. The "Enum.HumanoidStateType.Running" is what you get with the first print so I used that as check but it doesn't seem to work. I also tried: Running, HumanoidStateType.Running, running. But none of those seems to work. After 40 minutes of trying to make this work I have become clueless so I came here to ask for some help.
local state = Character.Humanoid:GetState() print(state) if state == ("Enum.HumanoidStateType.Running") then print("Worked") end
Does anyone knows how to fix this? Or should I try a different way to detect whether the player is running instead of falling/jumping/landing?