local owner = script.Parent.Parent.Parent.Owner.Value
local ownerfound = game.Players:FindFirstChild(owner)
local model = script.Parent.Parent.Parent.Model.Value
repeat wait()
until ownerfound == nil
if ownerfound == nil then
script.Parent.Parent.Parent:Destroy()
end
this script is in a car. i am trying to make it destroy a car if its owner is not in the game. so it the owner is not found in the game then the car will be destroyed. it wont destroy the car when owner is not found. please can you help me its my first question on this website please someone help me with this

2 comments
thanks for your answer although i figured it out but this was better then mine thank you
Glad I could help!