Know wether seat is occupied using script

To detect if a seat is occupied, you just have to confirm that the Seat.Occupant does not equal nil.

if Seat.Occupant == nil then
    --seat is not occupied
else
    --seat is occupied
end

This code that you created won’t work because Seat.Occupant does not equal the string “Humanoid”, when filled, but rather the Humanoid Instance of the user sitting.

boySeat.Occupant == “Humanoid” --will not work
2 Likes