Resizing GUI but keeping it fixed at the same position

Hello,
I need help with my skillset GUI. I’m trying to resize it so, when the player equips a move, the gui becomes more visible and bigger. However, when the size is changed, the GUI goes more to the right. Here is the gif:
https://gyazo.com/a7c182c7a3d2a15c54118dcb32bb61b3
I tried looking for “Resizing GUI and keep it centered” or similar, but I just get results of people asking how to keep the GUI the same size and position for all the types of devices. Thanks!
And by the way, I use :TweenSize() to change the size of the slot.

p.s. I was unsure if I should’ve posted on this category or in #help-and-feedback:scripting-support , I hope this one is fine though.

I can’t see the gyazo but did you try setting AnchorPoint? Try changing it’s AnchorPoint to UDim2.new(0.5, 0, 0.5, 0).

https://developer.roblox.com/en-us/api-reference/property/GuiObject/AnchorPoint

Sorry if that’s not what you’re asking for.

3 Likes