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
 

Open/Close Gui

Previous Thread :: Next Thread 
SkateAIert is not online. SkateAIert
Joined: 06 Jan 2015
Total Posts: 2214
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 is not online. 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 is not online. RomDino
Joined: 04 Jul 2015
Total Posts: 2795
14 Jun 2017 08:23 AM
You gotta Disabled "Close" First tho
Report Abuse
AIicks is not online. 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 is not online. 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
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