Does roblox have seat events?

Is there an event that detects a if a humanoid is seated on a partculair seat? Currently I have this script:

while wait(0.5) do
    if Seat.Occupant ~= nil then
       --blah blah
    end
end

There must be a better way to do this right?

Events can be used for almost anything. You would need to create a RemoteEvent for that seat of yours when the player touches one. I believe you forgot a FireAllClients where the seat triggers the event. Also you would have to connect a player to where you want the player to be.

1 Like

Or if you don’t have specific humanoid, just listen for Occupant changes:

seat:GetPropertyChangedSignal("Occupant"):Connect(function()
    local new_occupant = seat.Occupant
end)
4 Likes