This event fires when a
Humanoid either sits in or gets up from a
When a character comes into contact with a seat, they are attached to the seat and a sitting animation plays. For more information on this, see the
- If the character is sitting down, the
activeparameter will be true and
currentSeatPartwill be the seat they are currently sitting in.
- If the character got up from a seat, the
activeparameter will be false and
currentSeatPartwill be nil.
Humanoid/Sit, which indicates if a Humanoid is currently sitting
Humanoid/SeatPart, which indicates the seat a Humanoid is currently sitting in, if any.
True if the
The seat the
Finding a Player's Seat
This code sample demonstrates when the
Player/Character|Character sits down or stands up.
It should be placed inside a
StarterCharacterScripts|StarterPlayer.StarterCharacterScripts. When the player’s character spawns in, it will cause a copy of the LocalScript to be placed into their character. This runs the code on that player’s client.