This event fires when a
Humanoid either sits in a
VehicleSeat or gets up.
Player/Character comes into contact with a seat they are attached to the seat and a sitting animation plays. For more information on this, please see the
The active parameter will be true if a player has sat down, and false if they have gotten up. The currentSeatPart parameter will be the seat part the humanoid is sitting in if they are sat down, or nil if they have gotten up.
- You can check if a humanoid is currently sitting using the
- You can also check the current humanoid seat part using the
True if the
The seat the
Finding a Player's Seat
The code below fires when the
Player/Character|Character sits down or stands up.
It should be placed inside a
LocalScript parented to
local character = script.Parent local humanoid = character:WaitForChild("Humanoid") humanoid.Seated:Connect(function(isSeated, seat) if isSeated then if seat then print ("The player is now sitting in the seat named "..seat.Name.."!") end else print("The player is no longer sitting!") end end)