Is there any way I could get the person with the most kills in a game? Or at least find the player in spot 1 on the leaderboard? Thanks!
COMMUNITY QUESTION
How to get the leader of a game?
1 answer
Use a for loop to get the scores, and use a if statement in each loop to see which is the highest by repeatedly setting the value to said score, assign all the values into a table.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
But how would I get the highest value in say a variable?
https://www.lua.org/pil/19.3.html
But that website just explains in pairs loops, it doesn't tell how I would do this?