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 resize guis to fit any devices screen?

I need help understanding how to make gui's fit every devices screens, iv'e watched lots of videos of how to do it and they don't work. Iv'e also looked it up in the roblox wiki, and lots of other sites but they still dont work.

1 answer

✓ Accepted answer

The only way of doing so, that I'm aware of, is using the scale method.

-- old way
UDim2.new(0,50,0,25)
-- new way
UDim2.new(.5,0,0.1,0)

.5, is half of the screen's resolution, this can be any value, like I've shown there, with .1

You can use both those for size and positioning.

3 comments

0

So, do I put this script into all the frames?

0

Or the Gui?

0

Nevermind, got it.

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