How to find someone's personal best? (fastest time in a race?)

How to find someone's personal best? (fastest time in a race?) - Man in Gray Shirt Holding Baby in White Onesie

I am currently making a minigame to play right now, (specifically a racing game) but I am unsure how to find the personal best of a player at the end of the game. I have a timer setup, but my objectives seem to make this task a little difficult? I know the scores of the times will play into this, so I will explain what I have setup with the times.

1.) I have objectives, dispsecond and dispminute. These stand for Display Second and Display Minute. Simply, it functions as a normal timer. At the end of race, everyones' timers halt. So at the end of the race, one's score may be: 1-dispminute 39-dispsecond

Now my question still stands, how do I find the personal best?



Best Answer

Check for the largest dispminute and then the ones that are the same dispminute check for the largest dispsecond. If you would like I could make my own version for example... But since I'm more of a redstone I would use items to count... That just me though.




Pictures about "How to find someone's personal best? (fastest time in a race?)"

How to find someone's personal best? (fastest time in a race?) - Photo Of Man Carrying Baby
How to find someone's personal best? (fastest time in a race?) - Person Wearing Round White Analog Watch at 10:09
How to find someone's personal best? (fastest time in a race?) - Cheerful Family Having Together with their Dog





How to track anyone's phone location without them knowing! This was used on me😱




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: nappy, nappy, Marius Mann, Ketut Subiyanto