Yeah, that's pretty much it, CG! You have a good eye for that
Making the left-to-right bar (like the loading bar) was super simple because I didn't even need to reposition it... the resizing command did all of the work. But going in the opposite direction (bottom-to-top or right-to-left) required a bit more calculations and I needed to incorporate repositioning as well, so that the bar would be lower on the screen (or further to the right, if you're going for the horizontal approach) depending on how low the variable is compared to it's max value.
A bit complex, but the script is pretty small even compared to scripts that try to achieve this with pre-made chunks of bars and displaying them when a certain percentage is hit. This method is accurate ALL of the time and only needs one HUD (the bar itself at 100%)
The one and only,
Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.