Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How to position a GUI on the top bar?

Asked by
FPSVision -14
12 days ago

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.

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. FPSVision -14 — 12d
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 GoldAngelInDisguise 238 — 12d
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 Feahren 1281 — 12d

1 answer

Log in to vote
0
Answered by 12 days ago
Edited 12 days ago

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.

Ad

Answer this question