This function causes the
Humanoid to enter the given
The humanoid state describes the activity the
Humanoid is currently doing.
You should check the page for
Enum/HumanoidStateType for more information on what particular states do as some have unintuitive names. For example, running describes a state where the
Humanoid|Humanoid's legs are on the ground, including when stationary
Due to the default behavior of the
Humanoid some states will automatically be changed when set to. For example:
- Setting the state to 'Swimming’ when the
Humanoidis not in the water will lead to it being automatically set to ‘GettingUp’
- As it is unused, setting the state to ‘PlatformStanding’ will lead to it being automatically set to ‘Running’
- To enable or disable a particular state use
- To get the current state use
This code, when placed inside a
StarterCharacterScripts|StarterPlayer.StarterCharacterScripts will allow the player’s characters to perform a double jump.