How to use IgnoreGuiInset

Hello, I am new to scripting and I am working on a gui for my game. The problem is I do not know how I can put my gui on top of the new roblox’s gui.
Example:
Problem

What I want is the text to touch the top of the screen and ignore the topbar. I know it is something to do with IgnoreGuiInset but I do not know how to use it.
Any suggestions?

2 Likes

Just don’t use that property and put it at position 0, 0, 0, -36 because that is where the topbar is

There should be an option in the ScreenGUI properties named “IgnoreGuiInset” just check that box or use screenGui.IgnoreGuiInset = true.

Click on your ScreenGui and go into the properties:
Screenshot 2020-05-25 at 20.19.52

Check the Box like I did:
Screenshot 2020-05-25 at 20.24.09

Then it should be like this:

7 Likes

You use IgnoreGuiInset by using it. Not sure what the question is here. Try experimenting and searching before posting threads, you could resolve this with a little tinkering around.

Alternatively, use GuiService:GetGuiInset() to get the pixels the topbar occupies and account for that when setting the Y offset value.

whatever.Position = UDim2.fromOffset(0, -GuiService:GetGuiInset())
4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.