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

Will my script work?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

No, it would be:

sp = script.Parent

wait(0.5)
sp:Destroy() 
Ad
Log in to vote
2
Answered by 10 years ago

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

Log in to vote
1
Answered by 10 years ago

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

Answer this question