How to check if Humanoid State is idle without using velocity?

I want to check if my character is standing idle.

The usual response I see for this is to check if the player’s velocity is less than 1. This is a sloppy solution with tons of problems – the main one being that if they’re standing on a moving platform, the script will assume they’re not in the idle state.

Do you have any better suggestions? Thanks.

1 Like

Maybe find the part the player is standing on (raycast), then compare the difference in speed between the player and that part? On terrain, you can determine the state just by player velocity.

1 Like

Player is not moving when condition Humanoid.MoveDirection.Magnitude == 0 is true, I believe.

4 Likes

Can’t you somehow just check to see if the idle animation is running?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.