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 make a delete button for the train that works (GUI one)?

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

✓ Accepted answer
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()

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

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