so i made an epic game but it no work my script and i need it to despawn if somone is not in the car for like 10 seconds here my script local Bike = script.Parent local Drive = script.Parent.Drive
Drive:GetPropertyChangedSignal("Occupant"):Connect(function() local start = tick() while not Drive.Occupant do wait() if tick() - start >= 10 then Bike:Destroy() Bike:BreakJoints() break end end end)

2 comments
Please put your code, in ~~~. You can get it, by clicking on the blue Lua button. Make sure to put the code in between ~~~.
Well, I tested your script in Studio and worked perfectly fine. But, it works whenever someone sits and then go away because of property changed signal. But, if you want to destroy on cloning, you can start tick() when it was cloned. Also, there is no use BreakJoints.