Skip to content

Commit 1e0d9e4

Browse files
authored
Update Humanoid.yaml
Updates the ChangeState method description, in order to let the users know that It only works on the NetworkOwner of the character side (If the NetworkOwner is a player, It must be done using a localscript owned by that player. If it's server, must be done in a server script
1 parent 348f043 commit 1e0d9e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/en-us/reference/engine/classes/Humanoid.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,11 @@ methods:
14381438
`Enum.HumanoidStateType.PlatformStanding` will cause the humanoid state
14391439
to be automatically set to `Enum.HumanoidStateType.Running`.
14401440
1441+
Note that in order to set the `Class.Humanoid` state using this function,
1442+
you must do it in a `Class.LocalScript` owned by the NetworkOwner of the
1443+
`Class.Character`. You can use this function in a `Class.Script`, but the NetworkOwner
1444+
of the `Class.Chatacter` must be the Server.
1445+
14411446
See also `Class.Humanoid:SetStateEnabled()` to enable or disable a
14421447
particular state, and `Class.Humanoid:GetState()` to get the current
14431448
humanoid state.

0 commit comments

Comments
 (0)