How to detect if a seat is taken?

Trying to figure out how to see if a seat is taken. I know of Seat.Occupant, although I haven’t seen anything that told me if it can tell if anyone is NOT in the seat. Tried researching but so far havent seen anything.

If Seat.Occupant is nil, then nobody is in the seat.

1 Like

Seat.Occupant will be nil when there is no Humanoid sitting in the seat. Some extra stuff: nil is “falsy” meaning in an if statement it will act like false:

if nil then
	-- Will never happen
end
if not nil then -- Will actually be true!
	-- Will always happen
end
4 Likes