New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
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 3 months 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 2754 Moderation Voter Community Moderator
3 months ago
Edited 3 months 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 3 months 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 582 — 3mo
0
would give more in-depth but im tired asl The_Pr0fessor 582 — 3mo

Answer this question