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
 

GUI Help

Previous Thread :: Next Thread 
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 02:46 AM
How would I make it so that when a GUI is clicked, another GUI opens, and when it is clicked again, the GUI disappears? Thanks in advance,
Cheeso
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 02:53 AM
b1
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
06 Jul 2014 02:54 AM
Let's assume that this is perhaps something such as a TextButton and that the script is inside the GUI.
-------------------
GUIClicked = false
script.Parent.MouseButton1Click:connect(function()
if GUIClicked == false then
--GUI Code Here
GUIClicked = true
elseif GUIClicked == true then
script.Parent.Parent = nil
end
end)
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 02:56 AM
I have a GUI button at the top of my screen and a text button inside of it. So I insert that script and it should work?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:04 AM
And erm….Just out of curiosity, the GUI that is being opened? The scrolling feature is fine and I inserted a TextLabel but anything I write goes in the middle. How do I make the text start in the top right corner and go left to right until it reaches the bottom?
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
06 Jul 2014 03:06 AM
Scroll to the bottom of the TextLabel's properties and you'll see XAlignment and YAlignment or something. Make them Left and Up, rather than Centre.
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:07 AM
Thanks Smiley :)
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:10 AM
Uh oh. Hang on. Now when I write stuff in, it goes off of the scrolling frame? And there is no button slider? Do I have to make a new Label for every line?
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
06 Jul 2014 03:11 AM
I think you need to make sure TextWrapped is true.
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:12 AM
Oh erm. Probably….lol thanks again
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:38 AM
How do I put a text button at the bottom of a scrolling frame? I can position it right but it looks like it is behind the frame?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:41 AM
Ohhhh. Do I need to put a TextLabel and then text button inside of it?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:44 AM
Nope nvm does not work.
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:46 AM
b1
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 04:34 AM
b2
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 04:37 AM
b3
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 04:40 AM
b4
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 05:08 AM
b5
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
06 Jul 2014 05:10 AM
Yes, insert the script and inform me of the result.
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 05:28 AM
SO I have a scrolling frame with info in it. That works fine. I need a close button. So when I put a text button with a script on the scrolling frame, it appears behind it
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
06 Jul 2014 05:33 AM
Change the ZIndex property.
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