|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
|
| 29 Sep 2017 04:13 PM |
Not really scripting but ok...
#code print('Success') |
|
|
| Report Abuse |
|
|