Roblox Lua Script, How to make a frame decrease its size from left to right?

Advertisements

I’m trying to make a health bar that decreases from left to right instead of from right to left
and it has to be this way because of how the interface looks, I’ve tried different calculations but all of them were close but too far and I’m running out of ideas on how to make it

>Solution :

Take a look into anchor point.

What anchor point does is set the origin of the UI. So for your use case, you’ll probably want to set the anchor point to [1,0]. Which means the UI will scale to the left


(White Box) Anchor point 0,0

(White Box) Anchor point 1,0

With an anchor point of 1,0, it will scale to the left


Leave a ReplyCancel reply