Whenever I have modeled this script with the brick and my car together it just regens every 5 sec instead of till the car is off. How do I fix it?
local car = script.Parent.Parent.Car:Clone() while true do wait(5) local n = script.Parent.Parent:FindFirstChild("Car") == nil if (n or (script.Parent.Position - script.Parent.Parent.Car.VehicleSeat.Position).magnitude > 40) then if (n ~= true) then script.Parent.Parent.Car.Parent = game.Workspace end local c = car:Clone() c.Parent = script.Parent.Parent c:makeJoints() end end