Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How Would I Make a GUI Cover the Entire Screen?

Asked by 23 days 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 2692 Moderation Voter Community Moderator
23 days ago
Edited 23 days 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 23 days 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 402 — 23d
0
would give more in-depth but im tired asl The_Pr0fessor 402 — 23d

Answer this question