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

How do I make a delete button for the train that works (GUI one)?

Asked by
mine248 40
10 years ago

The script I did:

then
script.Parent.Parent.Parent.Parent.Parent  = remove()

I also tried to do it this way:

then
script.Parent.Parent.Parent.Parent.Parent  = Destroy()

Note: These are snips of the script.

2 answers

Log in to vote
1
Answered by 10 years ago
then
script.Parent.Parent.Parent.Parent.Parent:remove() --You cant do remove() by itself. You need it to be like "workspace.Part:remove()". Same with destroy. "workspace.Part:Destroy()".

They both work.

then
script.Parent.Parent.Parent.Parent.Parent:Destroy()
Ad
Log in to vote
-1
Answered by 10 years ago

The Question is WAY to vague, We don't know what you're talking about, and you just gave 2 lines of script that don't really help us.

This isn't a request site for scripts

Answer this question