Skip to content

Commit ad8c8f6

Browse files
authored
Humanoid:ChangeState() description update (#1003)
## Changes <!-- Please summarize your changes. --> 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. NOTE THAT ONLY THE COMMIT WITH (ALL FIXED) IN THE NAME IS THE REAL ONE <!-- Please link to any applicable information (forum posts, bug reports, etc.). --> https://devforum.roblox.com/t/can-one-change-the-humanoid-state-from-a-server-script/1131039/8 https://devforum.roblox.com/t/can-one-change-the-humanoid-state-from-a-server-script/1131039/10 ## Checks By submitting your pull request for review, you agree to the following: - [✅] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [✅] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [✅] To the best of my knowledge, all proposed changes are accurate. ---------
1 parent 0f27d97 commit ad8c8f6

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.Player.Character`. You can use this function in a `Class.Script`, but the NetworkOwner
1444+
of the `Class.Player.Character` 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)