Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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)

1 comment

0

I'm confused. What's the fomula for converting?

This discussion is preserved as it was. New answers, comments, and votes are closed.