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

Will my script work?

It's a script that destroy's it's parent. I was wanting to know if this would work.

while true do
wait(0.5)
script.Parent Destroy()
end

3 answers

✓ Accepted answer

No, it would be:

sp = script.Parent

wait(0.5)
sp:Destroy() 

In short, go to studio, and press 'Run' You'll see then.

Copy the brick and put it in lighting, leave the brick in Workspace and the Script in Workspace

while true do
	wait(0.5)
	game.Workspace.PartName:destroy()
	wait(0.5)
	game.Lighting.PartName:clone().Parent = Workspace
end

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