generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Button Closes all the Guis

Previous Thread :: Next Thread 
DarkCreepers is not online. DarkCreepers
Joined: 29 Mar 2013
Total Posts: 915
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
Inspectial is not online. Inspectial
Joined: 07 Oct 2012
Total Posts: 1018
15 Jul 2014 04:51 PM
Make sure the gui is serperated, the other guis might be in window too.
Report Abuse
DarkCreepers is not online. DarkCreepers
Joined: 29 Mar 2013
Total Posts: 915
15 Jul 2014 04:51 PM
They are all in separate Windows and all have different names.
Report Abuse
DarkCreepers is not online. DarkCreepers
Joined: 29 Mar 2013
Total Posts: 915
15 Jul 2014 05:01 PM
b1 thanks
Report Abuse
DarkCreepers is not online. DarkCreepers
Joined: 29 Mar 2013
Total Posts: 915
15 Jul 2014 05:17 PM
b2 thanks
Report Abuse
vlekje513 is not online. 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
MysticPing is not online. MysticPing
Joined: 09 Apr 2010
Total Posts: 258
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 is not online. Ulrakid11
Joined: 31 Dec 2010
Total Posts: 1587
15 Jul 2014 06:10 PM
And use destroy, remove is deprecated.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image