Wait() Being Random?
Asked by
6 years ago Edited 6 years ago
I am trying to have a block when you press "E" it disappears waits 20 seconds and reappears ready to be picked up again. But it appears my script is being random without using math.random. I would like it to just be 20 seconds. I don't know much about part regeneration and would like to know what's causing the problem so I can fix it. This is a server script should it be local idk. Thanks!
01 | local model = script.Parent |
04 | if model ~ = workspace then |
06 | local backup = model:clone() |
15 | model = backup:clone() |
16 | model.Parent = game.Workspace |