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

How do I detect if a part is gone , destroyed , non existing anymore?

Like when I :destroy() it the script should be looping around and when it detects that the part is not there then it will trigger and command to regen it but now I just need the script and explanation that detects it.

This is what I worked out.

local part = workspace:FindFirstChild("part")

if not part then

1 answer

✓ Accepted answer

So you would do, If this helped please mark it as Answered!

if not game.Workspace.MyPart then
wait()
-- Type in your command here :)
end

This discussion is preserved as it was. New answers, comments, and votes are closed.