My frame is not centering right

Screenshot (374)

This is so annoying, why is the purple frame not going in the center even though I centered it

This is weird. Would you be able to send the baseplate with just this?

no I’m not able to, this is a game in development, but I see the issue, when I play around with the size of the whole thing I can make it centered but if I hit a certain size it will be off like in the image

Make sure that you’re using scale and not offset. Also, add a UIAspectRadio instance if needed.

I would recommend using a UIStroke object rather than a frame inside a frame, as Roblox tends to not be so friendly with things like this.

1 Like

oh wow, that’s so helpful, I didn’t know that existed

1 Like

yeah I am using scale, btw what does a UIAspectRatio do?

A UIAspectRatioConstraint does as the name suggests, it maintains the UI’s Aspect Ratio avoiding stretching.