Hi, I am making a game where the person with the number of kills gets awarded with cash. The catch is : I do not know how to do that.
I used table.sort() and it did not work
if i == 0 then
local player = game.Players:GetPlayers()
local kills= player.leaderstats.Kills.Value
table.sort(plrs,kills)
plrs[1].leaderstats.Cash.Value = plrs[1].leaderstats.Cash.Vaue + 25
end
I get the error saying that it expected a predicate
Note: "i" is the time
Please help me

1 comment
https://scriptinghelpers.org/help/how-post-good-questions-answers