Why are you checking the occupant every frame instead of doing
local seat = script.Parent
seat:GetPropertyChangedSignal("Occupant"):Connect(function()
if seat.Occupant then
print(seat.Occupant.Parent.Name)
end
end
Why are you checking the occupant every frame instead of doing
local seat = script.Parent
seat:GetPropertyChangedSignal("Occupant"):Connect(function()
if seat.Occupant then
print(seat.Occupant.Parent.Name)
end
end