tool.Equipped:Connect(function()
print(char.Humanoid:GetState())
OUTPUT
▶ Enum.HumanoidStateType.Running (x3) - Client -
This happens even if I stand still and equip the tool. Any idea why?
tool.Equipped:Connect(function()
print(char.Humanoid:GetState())
OUTPUT
▶ Enum.HumanoidStateType.Running (x3) - Client -
This happens even if I stand still and equip the tool. Any idea why?
The reason why your code might output ‘Running’ is because of Roblox’s way to choose which state the humanoid is. When the HumanoidStateType is Running, it checks if the player’s legs are touching the ground, which is why when you stand still or equip a tool, it might consider that you are ‘Running’ for whatever reason.
To add to this, I think the velocity of the character plays a part. Printing Player.Character.PrimaryPart.Velocity.Magnitude gives me this
It’s never 0 even if you’re standing still so that might be it.
Yeah, you’re most likely right. Roblox’s way of detecting a HumanoidStateType is interesting.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.