Need help making a highscore board after the level ends!

Hello i really need some help with making a timer that records how long it takes you to complete the level and then puts it on a leaderboard that pops up when you win or lose the level, but i dont know how because i know no code and im new to unity. Additionally I have used Play Maker to make my game so far. I would really appreciate any help given but if you could, could you try and explain it in the most simple terms as i have asked this question before and havent been sucsessful with following the instructions given in the link. If there is anything else that you would need to help me I am willing to try and help!

Thanks Linton

Learncs.org

unity tutorials

without the knowledge even the most simple terms will most likely be chinese for you, after you’ve followed the tutorials, you could most likely figure it out yourself

Thanks for replying but this only teaches me code.

How do I make a highscores board? - Questions & Answers - Unity Discussions

This was the link given to me and i would like to apply it to my game but i do not understand how to use it/how to put it into my game. If you would be able to help me that would be greatly appreciated.

Sorry i didnt see the “unity tutorials”

But if you could still help that would be amazing

This is actually a pretty easy, until you consider saving it:

//between the using thingys:
using System.Collections.Generic; //this gives us the ability to use lists

//in "Highscore" script or something:
List<float> higshcores = new List<float>(); this keeps track of the highscores

//Timer:
when race starts:
Time start = Time.time;
when race ends:
Time raceTime = Time.time - start; //determines time interval between the start and the end

highscores.Add(raceTime); //adds time to highscores
//now the time is in the list, but it's in the first place, we have to sort it
highscores.Sort(t1, t2 => t1 < t2);

The problem is, that this works just until you stop the game, then the data will be lost, and this contains things like List.Sort() (to be fair, you could go through the list, and check each element, and if it’s smaller than the raceTime, you can just add it to the list), so really, you can’t start programming with unity, you have to learn c# first