How to scale a gui in the opposite direction?

How would I scale the blue bar in the opposite direction? (I need it to shrink to the right instead of to the left) I’ve tried making multiple values negative and nothing really works, probably just having a brain fart but I thought I’d ask here since I’m running out of time.



You could change the AnchorPoint of the GUI Object to 1,0 which which is the top right (defaults to top left)



It looks like you may need to set the AnchorPoint of the targeted GUI to opposite side of the blue bar. The Current AnchorPoint is (0,0). Try setting it to (1,0). Let me know if it works.

Thanks for reminding me about anchor point, completely forgot it existed.

1 Like

do you know how to do this on the y axis

Instead of setting the AnchorPoint to 1, 0 in the Properties window (or, 0) via a LocalScript), set it to the opposite, being:

0, 1 in the Properties window, or, 1) via a LocalScript.

  • So long as you update the Y Axis for the Size of the GuiObject, it will vertically resize in the opposite direction.

AnchorPoint Values Summary

  • X Axis

    • 0, 0 shrinks to the left when reducing X Axis size
    • 1, 0 shrinks to the right when reducing X Axis size
  • Y Axis

    • 0, 0 shrinks it upwards when reducing Y Axis size
    • 0, 1 shrinks it downwards when reducing Y Axis size
1 Like