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

GUI Doesn't fill screen? [closed]

Asked by
lucas4114 607 Moderation Voter
9 years ago

So, I made a GUI, in studio the GUI fills the screen fine (I leave the explorer and properties closed, and command bar and the ar thing at the top closed) So then I make my GUI, I test it in my game and the GUI fills my screen.. :D But when someone else joined, the GUI didn't fill their screen, thats what he told me... D: So, how would I fix that?

0
How is this anywhere related to Scripting? From the sounds of this Question, there is no scripting applied. TheeDeathCaster 2368 — 9y
0
GUIs are part of scripting...... lucas4114 607 — 9y
0
That statement is sort-of correct: It is apart of Scripting, yes, but when you use a Script; in the Question, you did not mention anywhere that you had used one, you only told us that the 'GUI' did not fit a Player's Screen. TheeDeathCaster 2368 — 9y
0
Alpha, no need to be rude. Yes, this just involves property editing, but it's not a bad question on its own. adark 5487 — 9y
View all comments (4 more)
0
Wasn't trying to sound rude, just pointing out the things he may have missed/forgot in the Question. :/ TheeDeathCaster 2368 — 9y
0
Alpha might be right, this topic is more on Guis then scripting. woodengop 1134 — 9y
0
I have set up the Moderation for this Question as 'Too Broad', because, I am not sure if he is being too Vague about his Question [Not giving us all the facts/information], or, this Question has nothing to do with Scripting. TheeDeathCaster 2368 — 9y
0
... lucas4114 607 — 9y

Closed as off-topic by FearMeIAmLag

This question has been closed by our community as being off-topic from ROBLOX Lua Scripting.

Why was this question closed?

4 answers

Log in to vote
-1
Answered by
Qxest 25
9 years ago

Although this is not related to scripting, I'll answer it though.

Notice where it says (0, 0). The first number(s) will be offset. The second number will be px. Offset sometimes deals with the screen on different view sizes. (1, 0) would basically cover the whole entire screen on every different screen size.

So what you want to do is in the frame, set the size to {1,0}, {1,0}

0
Thank you alot, I used the second number for all my GUIs, now I got to remake all the GUIs I made for my game, I made alot... lucas4114 607 — 9y
0
Your welcome. You can also use the first number as a decimal to scale the view to every screen size. Qxest 25 — 9y
0
Yeah, I know. I got tons of work to do, remaking all my GUIs..... D: lucas4114 607 — 9y
0
This answer contains incorrect information. Please refer to Discern's answer. User#11893 186 — 9y
0
Oops, sorry. Somehow CSS messed with me. Qxest 25 — 9y
Ad
Log in to vote
4
Answered by
Discern 1007 Moderation Voter
9 years ago

You are probably using the Offset property instead of the Scale property, which is measured in Pixels. You very well may have a different screen resolution than your friend. To fill your screen with any GUI, you use the first numbers in both the X and the Y.

The basic structure of a UDim2 property (GUI Size is one) is {XScale, XOffset}, {YScale, YOffset}. You want to edit the Scales, not the Offsets.

To fill ANY screen, you would make your size {1, 0}, {1, 0} instead of using the 2nd number in each parentheses.

To look more at UDim2, go here.

If I helped, be sure to click the Accept Answer button below my character! :D

0
Don't forgot, doing it that way, it'll Adjust to any Screen Resolution [Screen Size]. :) TheeDeathCaster 2368 — 9y
Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

To have a GUI fill the screen, use have to use Relative Size:

gui.Size = UDim2.new(1, 0, 1, 0)

That 1 is 100% of the screen. .5 would be 50%, .25 25%, and so on.

Log in to vote
0
Answered by 9 years ago

Tip for you remove everything except explore and properties, and just drag them...