|
| 15 Jul 2014 04:50 PM |
This script makes all the GUI's in my game instead of the gui the script is in.
Here's the script
print("Close button loaded")
button = script.Parent window = script.Parent.Parent.Parent.Parent
function onClicked(GUI) window:remove() end script.Parent.MouseButton1Click:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2014 04:51 PM |
| Make sure the gui is serperated, the other guis might be in window too. |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2014 04:51 PM |
| They are all in separate Windows and all have different names. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 15 Jul 2014 05:20 PM |
"This script makes all the GUI's in my game instead of the gui the script is in. "
"This script makes all the GUI's in my game"
"This script makes all the GUI's"
Wut |
|
|
| Report Abuse |
|
|
|
| 15 Jul 2014 05:21 PM |
have you tried making doign something simple as
if drawwindows then -- draw windows end
function onClicked(GUI) return not drawwindows end
would make it so you can toggle them |
|
|
| Report Abuse |
|
|
Ulrakid11
|
  |
| Joined: 31 Dec 2010 |
| Total Posts: 1587 |
|
|
| 15 Jul 2014 06:10 PM |
| And use destroy, remove is deprecated. |
|
|
| Report Abuse |
|
|