Core GUI preventing whole screen coverage

So,
I tried to make a gui that covers out the entire screen, very simple.
but core gui is not that friendly with me, it just blocks me from covering the entire screen
example:


how can i fix this?

1 Like

You could set the anchor point to 0,1 and stretch it from there. See if that works.

If you are trying to get the Ui to cover 100% of the screen then make sure you turn, IgnoreGuiInset to true in the ScreenGui, if I am not mistaken.

image

Edit: But it will not go over the CoreGui!

5 Likes

For Y, have the value as -2 and then stretch it down. The GUI will most likey be under it but it will still cover the entire thing…

Is that how it works? I have just always used the IgnoreGuiInset.

Because that is the only thing that works for me.

Normally what I do is set the Size to {1.2,0,1.2,0}, Position to {0.5,0,0.5,0}, and AnchorPoint to {0.5,0.5}. This just means you have to reduce the scale by 0.2.

The topbar covers the top 36 pixels of the screen and as a result moves the gui inset down 36 pixels. I’ve always thought this was a dumb decision but thankfully there are 2 ways around it. You can either set the IgnoreGuiInset property in your ScreenGui to true and your ui will display starting from the top of the window rather than 36 pixels down, or you can set the size and position manually to get around this. Setting the size of a frame to {1,0},{1,36} and its position to {0,0},{0,-36} will position and size it properly. The first option is much easier, but you might only want it to apply to one frame and not all of them which is why you might need the second option.

And in the very unlikely event Roblox choose to change the size from 36 to another number, you can use GetGuiInset to grab the values of the X and Y inset. Currently returns Vector2 (0, 36) for the top left and Vector2 (0, 0) for the bottom right.

But if you want to avoid programming and use the most future-proof way then just use the property on the Gui.

To do that, you can disable the CoreGui by doing

StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)

This should disable all the GUI’s that have the highest priority over the screen.

Go into the properties of the ScreenGui and untick ‘IgnoreGuiInset’