Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get the leader of a game?

Asked by
zomspi 541 Moderation Voter
4 years ago

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!

1 answer

Log in to vote
0
Answered by 4 years ago

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.

0
But how would I get the highest value in say a variable? zomspi 541 — 4y
0
But that website just explains in pairs loops, it doesn't tell how I would do this? zomspi 541 — 4y
Ad

Answer this question