GUI Developing - Getting screensize without upper frame

Hello, I’m making slider controls system for my GUI. But unfortunatelly I’m paused due to I’m not able to get correct size of players’ action zone.

GUI Y scale does NOT include upper panel, when CurrentCamera.Viewport.Y does. That means that I’m unable to say :"MouseY / Viewport.Y = true GUI Y position"

My questions are:
• Is it possible to get upper panel size to count GUI (action) zone ?
• Is it possible to get GUI object position in pixels including upper panel ?

image
On this image you can see that if GUI object is located on 0:0 - it would end where upper panel begins

The top bar is always 36 pixels in height so just use “-36” on the Y offset position and “36” on the Y offset size.

1 Like

Well, i though they have to scale for different devices using formula. Gonna check this now. Also, idk why (mb i’m blind lol), but there was not such information in documentation.

Upd: Thanks for Solution

It doesn’t change size. Just because the mobile screen is smaller doesn’t necessarily mean it has significantly less pixels. Due to resolution, a lot of pixels can be on a small screen.