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 » Scripters
Home Search
 

Re: Need help with a gui!

Previous Thread :: Next Thread 
ContentLeader is not online. ContentLeader
Joined: 10 Feb 2011
Total Posts: 1448
23 Aug 2016 12:51 PM
I need a script where if I click a button it will close the first gui and bring up a totaly different one, then on the 2nd gui to be able to bring back the first one and so on.
Report Abuse
ParaText is not online. ParaText
Joined: 15 Aug 2016
Total Posts: 799
23 Aug 2016 12:56 PM
Use the event, MouseButton1Down, to trigger the Visibility property of the Gui's frame.
Report Abuse
ContentLeader is not online. ContentLeader
Joined: 10 Feb 2011
Total Posts: 1448
23 Aug 2016 12:59 PM
On both there's going to be buttons to buy like a shop so wouldn't the visibility interfere with buying the buttons?
Report Abuse
ParaText is not online. ParaText
Joined: 15 Aug 2016
Total Posts: 799
23 Aug 2016 01:00 PM
You'll have to elaborate on how you're setting up the GUIs.
Report Abuse
ContentLeader is not online. ContentLeader
Joined: 10 Feb 2011
Total Posts: 1448
23 Aug 2016 01:02 PM
Add me I sent you a fr It's hard to explain
Report Abuse
ContentLeader is not online. ContentLeader
Joined: 10 Feb 2011
Total Posts: 1448
23 Aug 2016 01:28 PM
can anyone else help?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
23 Aug 2016 01:34 PM
local gui1 = script.Parent.Gui1;
local gui2 = script.Parent.Gui2;

function switch()
gui1.Visible = not gui1.Visible;
gui2.Visible = not gui2.Visible;
end

gui1.MouseButton1Down:connect(switch)
gui2.MouseButton1Down:connect(switch)
Report Abuse
ContentLeader is not online. ContentLeader
Joined: 10 Feb 2011
Total Posts: 1448
23 Aug 2016 01:37 PM
Where do I put that in the first gui?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
23 Aug 2016 01:41 PM
Assuming both guis are TextButtons, have them in the same frame and put that in a localscript in the frame.
Report Abuse
ContentLeader is not online. ContentLeader
Joined: 10 Feb 2011
Total Posts: 1448
23 Aug 2016 01:44 PM
Reply to my chat I sent u
Report Abuse
jacksonj1113 is not online. jacksonj1113
Joined: 19 Apr 2013
Total Posts: 5187
23 Aug 2016 01:46 PM
you need a custom GUI?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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