Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to position a GUI on the top bar?

Haven’t used this website in a while since I’m on the discord more often.

~ I got a question about positioning a GUI on the top bar for example what if I wanted to put a text label on the top bar so that it can say a message there. How would I position it up there. Also I made the topbar transparency to 0, already.

4 comments

0

Also can someone remove my -14 stuff I actually know how to script now. ^ That’s a non scripting question but hope you can help.

0

The number -14 represents how much "reputation" you have, don't worry it does not necessarily mean you are bad. See here for reputation awards/penalties -> https://scriptinghelpers.org/help/user-privileges

0

SetCoreGuiEnabled, this will turn off the default ROBLOX generated GUIs. Simply set the GUI to 0,0,0,0. With a Size of 0,0,1,0

1 answer

ScreenGuis have a property for this: IgnoreGuiInset which is a boolean and is false by default, meaning the origin (0, 0) would have an offset of the top bar.

Assuming your localscript is a child of your ScreenGui:

local screenGui = script.Parent
screenGui.IgnoreGuiInset = true -- Now the origin is where it should be without the top bar!

For more information, the top bar is actually 36px tall if you wanted a custom top bar as described in the code on the bottom of this page.

This discussion is preserved as it was. New answers, comments, and votes are closed.