Ok I'm making a game where you have to pick coins up and get money the coins eventually respawn. But, in my part respawn script its unable to wait past 1. If you change it to 2 the script just wont work. Can anyone tell me what's going on here? Thanks!
model = script.Parent
backup = model:clone()
waitTime = (1) -- wont go above
wait(math.random(0,waitTime))
while true do
wait(waitTime)
model:remove()
model = backup:clone()
model.Parent = workspace
model:makeJoints()
end

5 comments
Just change the number to be higher than 1? What do you mean it wont go above
Sorry I should have been more specific, when you change it higher like 2 it wont respawm
Don't use remove, it's deprecated. Use the Destroy() function instead.
ok
Thank You So much!