I am trying to get a block to respawn after it disappears. The problem is that it does not respawn.
✓ ANSWER ACCEPTED
How to make a block regenerate?
2 answers
✓ Accepted answer
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.
--You can add function or anything.
wait(60)--You can add anytime, or delete it if you want it to happen instantly.
script.Parent:clone().Parent = game.Workspace
wait()
script.Parent:remove()
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Thank you!
No problem, I would really appreciate it if you would mark this answer as the accepted one!