I still cannot figure this one out. I am trying to delete a car if a person sitting in the driver's seat leaves the game.
local Seat = script.Parent
game.Players.PlayerRemoving:Connect(function(p)
Seat.Touched:Connect(function(hit)
if hit.Parent.Occupant == p.Name then
script.Parent.Parent:Destroy()
end
end)
end)
Any help is appreciated. (the script is in the seat)
