Humanoid.Seated example code has incorrect instructions

The code sample for https://developer.roblox.com/en-us/api-reference/event/Humanoid/Seated won’t function correctly if used how the page instructs.

Following the documentation, pasting the code example in StarterPlayerScripts should work, however line 1 attempts to reference the character using script.Parent which is the player, not the character.

For it to be correct, the documentation should say StarterCharacterScripts instead.

9 Likes

You’re right – this is a pretty small error that could confuse someone pretty bad. I’ve went ahead and cleaned up the Humanoid.Seated page and the code sample on it. Thanks for catching this!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.