Help centering ScreenGui on a part

  1. What do you want to achieve?
    I want to make a ScreenGui that I have be centered on a part in the workspace. I want to avoid using SurfaceGuis since they are unable to render text very small.

  2. What is the issue?
    The issue is that on different devices and screen shapes, the scale needed to put the gui in the right place is different. Here is a video demonstrating how it normally works vs. when you use a different screen shape:

  3. What solutions have you tried so far?
    I am using Scale rather than Offset for positions and sizes of the Gui, and I have a UIAspectRatioConstraint to keep the Aspect Ratio of the Gui the same.

The whole set up is pretty simple as it is, but I can provide screenshots of workspace, code samples, etc. if needed. Thanks for your time, hope you can help.

Perhaps you could turn off AutomaticSize, increase the scale of the GUI, then shrink it down to hopefully preserve small text?

maybe use anchors? so anchor 0.5, 0.5 and pos {0.5, 0},{0.5, 0} and then try to center the camera thingy with it?? that might make it constant, and also maybe add a uiconstrant to it