|
| 14 Jun 2017 08:15 AM |
So I am making a gui, and when I press the button the gui disappears but when I press again it doesn't open.
|
|
|
| Report Abuse |
|
|
RomDino
|
  |
| Joined: 04 Jul 2015 |
| Total Posts: 2795 |
|
|
| 14 Jun 2017 08:22 AM |
That's easy
Just make 2 Local Script in a TextButton: Name them "Open" and "Close"
--------------------------------------------------------
"Open" Script:
script.Parent.MouseButton1Click:connect(function() script.Disabled = true script.Parent.Close.Disabled = false {Find Frame}.Visible = true end)
--------------------------------------------------------
"Close" Script:
script.Parent.MouseButton1Click:connect(function() script.Disabled = true script.Parent.Open.Disabled = false {Find Frame}.Visible = false end) |
|
|
| Report Abuse |
|
|
RomDino
|
  |
| Joined: 04 Jul 2015 |
| Total Posts: 2795 |
|
|
| 14 Jun 2017 08:23 AM |
| You gotta Disabled "Close" First tho |
|
|
| Report Abuse |
|
|
AIicks
|
  |
| Joined: 10 Apr 2012 |
| Total Posts: 788 |
|
|
| 14 Jun 2017 08:35 AM |
function toggleGuiObject() gui.Visible = not gui.Visible if gui.Visible then --if you need to make changes to the gui end end
|
|
|
| Report Abuse |
|
|
RomDino
|
  |
| Joined: 04 Jul 2015 |
| Total Posts: 2795 |
|
|
| 14 Jun 2017 08:42 AM |
| Or just use Alicks' idea mine is unprofessional anyway .-. |
|
|
| Report Abuse |
|
|