Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you adjust a GUI size based on the screen size?

Asked by 5 years ago

Hey, scripters!

I have a GUI button I positioned on the screen perfectly in roblox studio, but when I test the game online, the buttons are really small. is there any way to scale GUI based off of the screen size, and could someone explain it to me?

Thanks, armacom03

1 answer

Log in to vote
0
Answered by 5 years ago

I have answered this a couple 100 times but here is the answer, if your GUI's are sized to

x,Size,y,Size then your GUI's will not be able to change aspect ratios.... But if they are resized at Size,x,Size,y In that case The size will change depending on the screen size.

UDim2.new(1,0,1,0) instead of UDim2.new(0,1000,0,1000)

0
I'm confused. What's the fomula for converting? armacom03 15 — 5y
Ad

Answer this question