How to resize UI using a script without changing the position?

I’m making a combo counter for my combat system and I want to animate the UI where it starts off large and becomes smaller.

I use this script to animate and resize the UI.

ComboCount.Size = UDim2.fromScale(0.396, 0.7)
Helper:TweenSize(ComboCount, UDim2.fromScale(0.396,0.485)

However, the position of the UI is signficantly offsetted once the tween finishes.
image

This is what the UI should look like with the size of 0.396 and 0.485.
image

1 Like

Change the anchor position to 0.5, 0.5

2 Likes