|
| 17 Mar 2012 10:20 AM |
local Gui = script.Parent
function onClicked() script.Parent.Parent.Parent = remove end end
Gui.MouseButton1Click:connect(onClicked)
------------------------------------------------------------------------------------
I made this script to delete a ScreenGUI. For some reason, it doesn't work, though. If there are any really dumb mistakes sorry, I'm new to scripting. |
|
|
| Report Abuse |
|
|
Bannana97
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 10215 |
|
|
| 17 Mar 2012 10:24 AM |
Where in your script did you define "remove" ? I'd assume you want "remove" to be nil.
But if you're looking to use the remove METHOD, do:
script.Parent.Parent.Parent:Remove() |
|
|
| Report Abuse |
|
|
|
| 17 Mar 2012 10:26 AM |
| Ah, thanks. I knew I did something stupid, but I just couldn't put my finger on it. |
|
|
| Report Abuse |
|
|