Get topbar size by script?

Is it possible to get the topbar size from a client script?
I did check the size of the topbar inside the CoreGui files. Seems its always Y 36 Offset on different devices simulations. But
Can I be sure that size will always be consistent no matter the size of the device player is using? or the topbar size changes based on player’s device?
Otherwise
Is it possible for a client script to get the size of the topbar?

Therefore, the size of the topbar is UDim2.new(1, 0, 0, 36), no matter what device you’re on.

1 Like

GuiService:GetGuiInset() is what you’re looking for in case they ever change the gui inset again
edit: sorry wrong reply

4 Likes

It safe to say it should stay the same as there’s a limit to the game screen in any device unless someone does want to try to pass this limit.

A good example is the leaderstats. When ever you change the size of your game screen the X will change accordingly. But when the screen gets too small the X stays at its minimum offset probs greater than 36. And this causes us to not see the player names at all but they still left it like that. (I don’t know if they left it like that still or changed it as I have not yet tested it)

1 Like

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