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

How Would I Make a GUI Cover the Entire Screen?

Asked by 4 years ago

I'm unsure of how I would do this. Is there a way to make a GUI take up the entirety of the screen regardless of the user's device?

2 answers

Log in to vote
1
Answered by
DanzLua 2879 Moderation Voter Community Moderator
4 years ago
Edited 4 years ago

Most ui instances have 4 numbers when it comes to their size. Size.X.Scale, Size.X.Offset, Size.Y.Scale, Size.Y.Offset.

Scale is a number from 0 to 1 relative to the size of the screen.

So if you want a frame to take up the entire screen you could change both scale numbers to 1

What it looks like in studio: {1,0},{1,0} What it looks like in script: UDim2.new(1,0,1,0)

Position also has the same concept.

Ad
Log in to vote
1
Answered by 4 years ago

So when you go to size instead of using {0, this number},{0, and this number} use {1, 0},{1, 0} and it will fill the to the size of the parent

0
would give more in-depth but im tired asl The_Pr0fessor 595 — 4y
0
would give more in-depth but im tired asl The_Pr0fessor 595 — 4y

Answer this question