|
| 09 Jun 2014 01:15 AM |
Not sure if I'm doing this right because I can hardly make a kill script work, but my menu GUI won't work.
I put Screen GUI into StarterGUI, then moved Text Button, Text Button, and Frame into Screen GUI from Workspace.
Afterwards I name one Text Button "Open" and the other "Close" along with the Frame being renamed "Menu".
Now after renaming I added this script to Open:
local Button = script.Parent Frame = script.Parent.Parent.Menu
function onClick()
Frame.Visible = true Close.Visible = true Open.Visible = false
end
Button.MouseButton1Click:connect(onClick)
AFTER that I entered this script into Close:
local Button = script.Parent Frame = script.Parent.Parent.Menu
function onClick()
Frame.Visible = false Open. Visible = true
end
Button.MouseButton1Down:connect(onClick)
HOWEVER, I have managed to open and close the menu successfully, but the Close button was always shown, so I added these lines to attempt to hide close while the GUI was already closed. I also want to hide the Open button when it's open.
The "Open" Button Script, what I added
>Close.Visible = true >Open.Visible = false
The "Close" button Script, what I added
>Close.Visible = false >Open.Visible = true
I attempted at making the Open button invisible when it was opened and the Close invisible when it was closed, but it seems to never bring back Open or Close after pressing them.
! VOTE BLASTB00M ! http://polls.roblox.com/hall-of-fame-2014 ! VOTE BLASTB00M ! |
|
|
| Report Abuse |
|
| |
Qeary
|
  |
| Joined: 27 Jun 2013 |
| Total Posts: 5401 |
|
|
| 09 Jun 2014 01:43 AM |
| I'm lost. Please simplify. |
|
|
| Report Abuse |
|