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
 

Re: How do you keep a GUI relative to screen size?

Previous Thread :: Next Thread 
550GB is not online. 550GB
Joined: 05 Jan 2014
Total Posts: 414
03 Oct 2016 07:33 PM
Every time i try different screen resolutions the GUI will either be resized weird or be off the screen completely. Is there a way to fix this?
Report Abuse
KreoBox is not online. KreoBox
Joined: 24 Aug 2016
Total Posts: 356
03 Oct 2016 07:37 PM
Use scale.

{ScaleX, OffsetX}, {ScaleY, OffsetY}
Report Abuse
550GB is not online. 550GB
Joined: 05 Jan 2014
Total Posts: 414
03 Oct 2016 07:43 PM
For both GUI size and position?
Report Abuse
Smeers is not online. Smeers
Joined: 14 Feb 2013
Total Posts: 797
03 Oct 2016 07:55 PM
You can use Scale in UDim2 values, aka the value that appears as {0,0},{0,0} in Studio. Scale values are more understandable when used with numbers 0-1, so making the size of an object {1,0},{1,0} would make it cover the whole screen, and making it {0.5,0},{0.5,0} would make it cover half of the screen. Changing position applies for this as well.

Report Abuse
550GB is not online. 550GB
Joined: 05 Jan 2014
Total Posts: 414
03 Oct 2016 07:58 PM
Oh I see! Thank you this helped a lot.
Report Abuse
Smeers is not online. Smeers
Joined: 14 Feb 2013
Total Posts: 797
03 Oct 2016 08:00 PM
No problem! Check out these wiki pages if you need any more assistance:

http://wiki.roblox.com/index.php?title=UDim2
http://wiki.roblox.com/index.php?title=The_Fundamentals_of_Scripting_with_GUIs

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