After implementing a leaderboard by following a tutorial on YouTube and testing it I produced different results than the video which means I've done something wrong and I can't for the life of me find out where I went wrong but I'll compare code between the video and mine do see where is different.
So the problem lies on line 24 and the problem was that I put down RefreshRate instead of Refresh this means that the code was not even running properly as the start of the code was trying to find a function that wasn't there, so fixing this made the leaderboard look much cleaner and much easier to read at a glance.
All that needs doing now is to make the points add up when the player gets a kill and also a death counter as well if I get time.
While testing the leaderboard system I noticed that if you log into the server while a player is connected their name tag does not sync up with their name on the leaderboard to counter this I need to apply the same method of code form the leaderboard to the script that controls the name tag.
The problem that caused this issue was mainly me not reading the guide properly, if I paid more attention to the video I'm sure I could have avoided this easy error.
Errors like this are easy to make but they are also easy to avoid by being more focused on what I write.
Since I've made this mistake it shows that I'm not fully in the zone (focused) I going to start to tale short breaks away from the screen to refresh my head and drink some water.