[Solved] Make Progress bar

I want to make progress bar for quests in my clicker game.
for example.
You need 1000 to 100%
so if someone have 500 then progress bar is in half and progress bar says 50%

The formula you’ll need to calculate the bar length is (currentValue/MaxValue) * maxBarLength.