Checking if player is grounded

To check if a player is in the air or on the ground, is it better to use Humanoid.StateType or Humanoid.FloorMaterial?

1 Like

Floor material, because you can detect if it’s on the ground by using ~= nil(for on ground) and else (for not on ground)

9 Likes

Instead of using those I’d suggest maybe using raycasting, regions or just Part.Touched:Connect(hit()

These are much more suitable approaches and will work in more situations.

To read up on these topics, just click one of the links below.