Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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 :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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
Anchor Point 0,0

(White Box) Anchor point 1,0
Anchor Point 1,0

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


Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading