Hello! I wanna know how to make a part respawning after being destroyed. That will help. Thanks!
COMMUNITY QUESTION
Respawning a part ?
1 answer
Flopope, you should not actually Destroy() your part as that clears its memory. Simply set its parent to nil, then re-parent after two seconds. From your code in the comments:
script.Parent.Touched:connect(function()
script.Parent.CRAC:Play()
wait(0.496)
local parent = script.Parent.Parent
script.Parent.Parent = nil
wait(2)
script.Parent.Parent = parent
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

8 comments
Can you post your code.
script.Parent.Touched:connect(function() script.Parent.CRAC:Play() wait(0.496) script.Parent:Destroy() wait(2) end) So I need to implant a respawning line.
Why not just make the par cancollide false and transparency 1 then reset it? also you can edit your question to include the code, https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site
I tried but it won't work.
You also may want to add a debouncehttp://wiki.roblox.com/?title=Debounce
Try putting it in lighting and then cloning it to Workspace.
Wait
I just don't understand.