I want to kick player out of seat when they sit if other seat’s occupant is nil. But the player does not jump. It prints seatoutside.Occupant.Parent and seatoutside.Occupant on output but does not make player jump
local seatoutside = script.Parent
local seatinside = script.Parent.Parent.SeatInside
seatoutside:GetPropertyChangedSignal("Occupant"):Connect(function()
print("property changed")
if seatoutside.Occupant then
print("seat occupant")
if script.Parent.Parent.SeatInside.Occupant == nil then
print(seatoutside.Occupant)
print(seatoutside.Occupant.Parent)
seatoutside.Occupant.Parent.Humanoid.Jump = true
end
end
end)