How do I make this special wait script? I'm trying to make it so that if the vehicle seat this script is in does not move faster than 10 magnitude for more than 20 seconds, its joints break.
But I think I have made a script that if the speed is less than 10 magnitude for even a second, it will wait 20 seconds an still carry out the activity, which is not what I want.
I know this is no where near right, but I do not know what I am doing.
if script.Parent.Velocity.Magnitude < 10
then wait(20)
script.Parent:BreakJoints()
end

1 comment
I have provided an answer to your problem. Let me know if your problem is solved.