HumanoidStateType
Describes the physics control states within the Humanoid.
Items 17
History | Name | Value | Description | |
---|---|---|---|---|
147 | FallingDown | 0 | The Humanoid has been tripped, and will attempt to get up in a few moments. | |
599 | Ragdoll | 1 | (Deprecated) The Humanoid has been hit by a fast moving object (uncontrolled falling). The Humanoid can recover from this. This state has to be set and unset manually using Humanoid:ChangeState(). | |
599 | GettingUp | 2 | The Humanoid is getting back on their feet after FallingDown or Ragdoll. | |
599 | Jumping | 3 | The Humanoid just jumped. (Check Humanoid.Jump). This state lasts only briefly. This state normally transitions into either Landed, if on the ground, or Freefall, if still in the air. | |
599 | Swimming | 4 | The Humanoid is currently swimming in Terrain water. | |
599 | Freefall | 5 | The Humanoid is currently freefalling (jumped from a height or fell off a ledge). | |
599 | Flying | 6 | When set, the Humanoid won't be animated, as with the Humanoid.PlatformStand property. This state lasts as long as the player flies. | |
599 | Landed | 7 | The Humanoid touched the ground after a Freefall. This state lasts only briefly. | |
599 | Running | 8 | Currently running while on the ground. | |
599 | RunningNoPhysics | 10 | (Deprecated) Currently running and not near other physical objects. | |
599 | StrafingNoPhysics | 11 | Not currently used with default Humanoid. Cannot be set with Humanoid:ChangeState(). | |
599 | Climbing | 12 | The Humanoid is climbing (e.g. up a TrussPart or ladder). | |
599 | Seated | 13 | The Humanoid is currently sitting in a Seat or VehicleSeat. Check the Humanoid.Sit property. | |
599 | PlatformStanding | 14 | The Humanoid is platformstanding. Check the Humanoid.PlatformStand property. | |
599 | Dead | 15 | The Humanoid died. Changing a Humanoid's state to this state will kill it. | |
147 | Physics | 16 | The Humanoid doesn't apply any force on its own and will not automatically transition to any other state. This state has to be set and unset manually using Humanoid:ChangeState(). | |
147 | None | 18 | Unusable placeholder in case an unknown state gets triggered internally. |
Description
Identifies, reads and sets the physics control state of a Humanoid. Humanoid:GetState() and Humanoid:ChangeState() methods, as well as the Humanoid.StateChanged event currently use this Enum.
Some states only allow manual setting, and allow a developer to make the Humanoid relinquish control of its character.
When altering the Humanoid of a player, this should be done from a LocalScript ran by that player on their local client. Certain states only work when set by the owner process (client or server). (Dead for example)
History 32
- 599 Change Index of Swimming from 14 to 4
- 599 Change Index of StrafingNoPhysics from 4 to 10
- 599 Change Index of Seated from 11 to 12
- 599 Change Index of RunningNoPhysics from 2 to 9
- 599 Change Index of Running from 1 to 8
- 599 Change Index of Ragdoll from 5 to 1
- 599 Change Index of PlatformStanding from 12 to 13
- 599 Change Index of Landed from 8 to 7
- 599 Change Index of Jumping from 7 to 3
- 599 Change Index of GettingUp from 6 to 2
- 599 Change Index of Freefall from 10 to 5
- 599 Change Index of Flying from 9 to 6
- 599 Change Index of Dead from 13 to 14
- 599 Change Index of Climbing from 3 to 11
- 147 Add Swimming
- 147 Add StrafingNoPhysics
- 147 Add Seated
- 147 Add RunningNoPhysics
- 147 Add Running
- 147 Add Ragdoll
- 147 Add PlatformStanding
- 147 Add Physics
- 147 Add None
- 147 Add Landed
- 147 Add Jumping
- 147 Add GettingUp
- 147 Add Freefall
- 147 Add Flying
- 147 Add FallingDown
- 147 Add Dead
- 147 Add Climbing
- 147 Add HumanoidStateType