How do I make a progress bar for my obby game?

Can anyone guide me on the steps it would take to create a progress bar for an obby? Any help is appreciated.

1 Like

You can think of a progress bar as the percent towards a goal.

  1. Track the number of stages the player has completed as “stagesComplete”
  2. Divide stagesComplete by the total number of stages
  3. The result is a percent from 0 to 1

After that you have two options:

  1. Display the percent as a percentage from 0 to 100: math.round(percent * 100)
  2. Resize a UI frame to reflect the percent: UDim2.new(percent, 0, 1, 0)

I hope that helps!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.