Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a block regenerate?

I am trying to get a block to respawn after it disappears. The problem is that it does not respawn.

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.

2 comments

0

Thank you!

0

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

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.