I am trying to get a block to respawn after it disappears. The problem is that it does not respawn.
Your problem might be that the script is a child of the part, and when the part goes away, so does your respawn script. A common solution is to put the part in a model, and put the script in the model (not the part).
You will need to change all .Parent
references in your respawn script to .Parent.Part
.
Your problem is, your deleting the script with the part. Just use this script or put it in a model.
1 | --You can add function or anything. |
2 | wait( 60 ) --You can add anytime, or delete it if you want it to happen instantly. |
3 | script.Parent:clone().Parent = game.Workspace |
4 | wait() |
5 | script.Parent:remove() |