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 » Game Design
Home Search
 

Re: GUI Help!

Previous Thread :: Next Thread 
Dollar500 is not online. Dollar500
Joined: 12 Jan 2013
Total Posts: 504
07 Jun 2015 12:32 PM
I have a GUI that is in the perfect position on one computer, but on another computer, it is barely on the screen. How would I get it to be in the center on all computers?
Report Abuse
KOzero is not online. KOzero
Joined: 11 May 2010
Total Posts: 1411
07 Jun 2015 12:42 PM
Do you know how the position property has 4 units for the 2D Guis?
The first and 3rd value is a scale of the position of all screens from 0 to 1.
The 2nd and 4th value basically offsets it in pixels,so what you will be using is the first and 3rd value so it will look something like this...
SomeGui.Position = 2UDim.new(0.5,0,0.5,0)
Report Abuse
championbuilder is not online. championbuilder
Joined: 20 Jan 2009
Total Posts: 13544
07 Jun 2015 12:42 PM
gui.Position = UDim2.new(0.5,-gui.Size.X.Offset/2,0.5,-gui.Size.Y.Offset/2)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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