Help with Percents and UI

Hey there! im DomTheMomRBLX (Scripter of Summer’s Valley, a fully destructable storm chasing game on roblox. Follow Summer’s Valley Here), and I need help with an issue I am experiencing. So, I have a value inside a GUI:
image
and the “White” frame is the white progress bar under temperature in this image:
image

And I want to script it, so the bar’s progress changes depending on the value, which is out of 100. So If I set the value to 50, It would update the progress bar to be half full. How can I achieve this?

I think the best option is to take that value and place it in to a Udim2. Since scale is out of 1, you’ll want to divide it by 100. So 50 is then 0.5 and so on. Then just place this in as the x scale value. Hope this helps!

2 Likes

Ill see what I can do! Ill respond If I need any further help. If not, you’ll be marked as solution!

1 Like

Do part/whole ex 50/100 = 0.5 (50% scale of the bar).

1 Like