Two sided leaderboard?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to be able to see whichever team has more colors or not.

  2. What is the issue? Include screenshots / videos if possible!
    I am not sure how to go about this problem as I have never made a leaderboard like this.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

At the beginning of the game, the leaderboard would have both teams (red and blue) equal at 0 (VERY TOP BAR). Therefore both teams will have 50% of the bar. Overtime, the team number will change and one team will have a higher number than the other which will result in one team controlling more of the bar. (BAR #2 AND BAR #3)

I am not sure how I can go about this issue to make it work like that. If anyone could help me get started on this, that would be fantastic.

2 Likes

I made you an example in a Baseplate template.

It calculates the percentage of two numbers given, in your case: Red and Blue.
It sums both numbers up and divides them with the total, then times them by a 100.
Example:
Red 50
Blue 450
Total 500
50 / 500 = 0.1 * 100 = 10%
450 / 50 = 0.9 * 100 = 90%

Then it uses scale to give them the appropriate sizes.
Red would be UDim2.new(0.1, 0, 0, 50)
Blue would be UDim2.new(0.9, 0, 0, 50)

Just don’t change both values to 0, since you can’t divide by 0, it’ll just become a white bar.

Baseplate.rbxl (30.5 KB)

Thank you so much. I think this will help me get started.