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: Having troubles with GUI menu

Previous Thread :: Next Thread 
Swifttalon1 is not online. Swifttalon1
Joined: 21 May 2011
Total Posts: 29893
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
Swifttalon1 is not online. Swifttalon1
Joined: 21 May 2011
Total Posts: 29893
09 Jun 2014 01:20 AM
bumpWAJg4
Report Abuse
Qeary is not online. Qeary
Joined: 27 Jun 2013
Total Posts: 5401
09 Jun 2014 01:43 AM
I'm lost. Please simplify.
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