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 to scale GUI to player screen size?

Previous Thread :: Next Thread 
DeadlyStormShadow is not online. DeadlyStormShadow
Joined: 22 Mar 2011
Total Posts: 3075
29 Sep 2017 11:55 AM
I created GUIs however they are too big for players with smaller screens/monitors. I know there is a way to make it happen but I'm no GUI expert. Anyone willing to give me some advice or pointers in the right direction? It will be greatly appreciated!


Report Abuse
Quebankus is not online. Quebankus
Joined: 25 Aug 2011
Total Posts: 846
29 Sep 2017 12:08 PM
http://wiki.roblox.com/index.php?title=UDim2

use scale instead of offset

scale:
0 = nothing
0.5 = half the screen
1 = full screen size
2 = full scree size x2

offset:
0 = nothing
0.5 = impossible
1 = single pixel
2 = two pixels
Report Abuse
DeadlyStormShadow is not online. DeadlyStormShadow
Joined: 22 Mar 2011
Total Posts: 3075
29 Sep 2017 12:47 PM
So I just put a Local script in Screen GUI and add the Udim2 code lines in there?


Report Abuse
DeadlyStormShadow is not online. DeadlyStormShadow
Joined: 22 Mar 2011
Total Posts: 3075
29 Sep 2017 01:06 PM
Figured it out but is there a way to make it so you don't need a local script under each frame or text label?


Report Abuse
EvanHolt is not online. EvanHolt
Joined: 06 Sep 2008
Total Posts: 1264
29 Sep 2017 02:36 PM
Nope, no scripting required.

All you have to do is type where it says 'Size' (you can do the same thing with Position).

Example:
A GUI with size {.5,0},{.5,0} will be half the screen wide and half the screen tall.
A GUI with size {0,100},{0,100} on the other hand will be 100 pixels by 100 pixels.

The equivalents for both of those if you were scripting would be UDim2.new(.5,0,.5,0) and UDim2.new(0,100,0,100) respectively.

[ After this tub and the next tub, there're only two tubs left! ]
Report Abuse
VGamesPortal is not online. VGamesPortal
Joined: 14 May 2013
Total Posts: 279
29 Sep 2017 02:59 PM
Yo that's my big bro lol I already told him what to do he is a pro builder and I am the scripter :))
Report Abuse
PossibIy is online. PossibIy
Joined: 27 Mar 2014
Total Posts: 214
29 Sep 2017 04:13 PM
Not really scripting but ok...


#code print('Success')
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