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.

1while true do
2wait(0.5)
3script.Parent Destroy()
4end

3 answers

Log in to vote
0
Answered by 10 years ago

No, it would be:

1sp = script.Parent
2 
3wait(0.5)
4sp: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

1while true do
2    wait(0.5)
3    game.Workspace.PartName:destroy()
4    wait(0.5)
5    game.Lighting.PartName:clone().Parent = Workspace
6end

Answer this question