Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a block regenerate?

Asked by 10 years ago

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

2 answers

Log in to vote
0
Answered by 10 years ago

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.

0
Thank you! Tonitrua 20 — 10y
0
No problem, I would really appreciate it if you would mark this answer as the accepted one! DiamondBladee 135 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

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()

Answer this question