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?
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}
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
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.
Tip for you remove everything except explore and properties, and just drag them...
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?