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: Positioning 2 GUIs

Previous Thread :: Next Thread 
Nibri is not online. Nibri
Joined: 15 Jun 2010
Total Posts: 748
05 Sep 2011 09:43 AM
I need help. I want to position a TextLabel in the center of the screen and a TextButton at the bottom of the TextLabel. Does anyone know how to position those GUIs like that?
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
05 Sep 2011 09:44 AM
Not use offset do it like this


Pos = UDim2.new(0.5,0,0.5,0) --That is EVERY screens center
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
05 Sep 2011 09:45 AM
Dont use offset*
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
05 Sep 2011 09:47 AM
gui1.Position = UDim2.new(.5, 0, .5, 0)
gui2.Position = UDim2.new(.5, 0, .5, 0) + UDim2.new(gui1.Y.Scale, gui1.Y.Offset, 0, 0)

Simples.
Report Abuse
Nibri is not online. Nibri
Joined: 15 Jun 2010
Total Posts: 748
05 Sep 2011 09:53 AM
Okay. But I need a GUI the size of the game screen when you have Roblox Studio's Toolbox,Explorer,Properties,Output,and Diagnostics on. That's (X=)? by (Y=)? pixels?
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
05 Sep 2011 09:55 AM
Not everybody's screen size is the same.
Report Abuse
Nibri is not online. Nibri
Joined: 15 Jun 2010
Total Posts: 748
05 Sep 2011 10:03 AM
I see. Well,if I did the script like you said,then how would I make the TextButton close itself and the TextLabel as if they were zooming out?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
05 Sep 2011 10:09 AM
dont use offset again, and set the size (x, y) to 1.0, that should be everyones screen size.
Report Abuse
Nibri is not online. Nibri
Joined: 15 Jun 2010
Total Posts: 748
05 Sep 2011 10:16 AM
Can you type that kind of script out for me? It really is my first time trying to script GUIs.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
05 Sep 2011 10:17 AM
If you want, you check out free models and try too learn it too!
Report Abuse
Nibri is not online. Nibri
Joined: 15 Jun 2010
Total Posts: 748
05 Sep 2011 10:22 AM
Nah.
Report Abuse
Miro034 is not online. Miro034
Joined: 07 Oct 2009
Total Posts: 6568
05 Sep 2011 10:24 AM
I think its better than asking in forum because you will learn from free models instead of asking :D
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