PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

HumanoidStateType

HumanoidStateType

Used to track and set the activity of a Humanoid. This Enum is currently used with the Humanoid/GetState and Humanoid/ChangeState methods, as well as the Humanoid/StateChanged event.

Mind that those states aren’t always set at the most appropriate time. Some of these cannot be used.

Others can only be set manually, and allow a developer to make the Humanoid lose control of its character.

When altering the Humanoid of a player, this should be done from a LocalScript ran by that player. Certain states only work locally. (Dead for example)


Enums

Name Value Description

FallingDown

0

The Humanoid has been tripped, and will attempt to get up in a few moments.

Running

8

Currently running while physics of parts in range are being calculated (e.g. After a jump, close to other players, …).

RunningNoPhysics

10

Currently running while no physics are being calculated.

Climbing

12

The Humanoid is climbing (e.g. up a /TrussPart|TrussPart or ladder). This state is only found being active when stopping with climbing.

StrafingNoPhysics

11

Doesn’t seem to be used. Cannot be set with /Humanoid/ChangeState.

Ragdoll

1

The Humanoid has been hit by a fast moving object (uncontrolled falling). The Humanoid can recover from this.

GettingUp

2

The Humanoid is getting back on their feet after ragdolling.

Jumping

3

The Humanoid just jumped. (Check /Humanoid/Jump). This state lasts only briefly.

Landed

7

The Humanoid touched the ground after a freefall. This state lasts only briefly.

Flying

6

When set, the Humanoid won’t be animated, as with the /Humanoid/PlatformStand property. Lasts as long as the player flies.

Freefall

5

The Humanoid is currently freefalling (jumped from a height).

Seated

13

The Humanoid is currently sitting. Check the /Humanoid/Sit property.

PlatformStanding

14

The Humanoid is platformstanding. Check the /Humanoid/PlatformStand property.

Dead

15

The Humanoid died. Changing a Humanoid’s state to this one will kill it.

Swimming

4

The Humanoid is currently swimming in /Terrain water.

Physics

16

The Humanoid doesn’t apply any force on its own. (Unending PlatformStand) Has to be unset manually using /Humanoid/ChangeState.

None

18

Unusable placeholder in case an unknown state gets triggered internally.

Referenced by:

  • Humanoid/StateEnabledChanged
  • Humanoid/StateChanged
  • Humanoid/SetStateEnabled
  • Humanoid/GetStateEnabled
  • Humanoid/GetState
  • Humanoid/ChangeState