|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 23 Aug 2016 01:02 PM |
| Add me I sent you a fr It's hard to explain |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 23 Aug 2016 01:37 PM |
| Where do I put that in the first gui? |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
| |
|