im trying to do a custom command that allow me to change players race just typing "race PlayerName RaceValue" in the command bar, im using kohls admin, but it just dont work, say its waiting a number and im giving a string. the path for "race string" is: "game.Players.Player.Stats.Race.Value"
22:22:16.720 Kohl's Admin Infinite Error: ServerScriptService.Kohl's Admin Infinite.Custom Commands:39: invalid 'for' initial value (number expected, got string) - Studio this is wt it says my code is this:
{{'Race'},{'Change the Race of the Player','Race Player Value'},5,{'player','string'},function(pl,args)
for i=args[2],0,-1 do
for _, player in pairs(args[1]) do
player:WaitForChild("Stats").Race.Value = args
end
end
end}
wt am i doing wrong?

4 comments
its wt i said, i want to put a string in it, not number, this "i= args[2], 0, -1" is kinda confuse
well maybe you can try "for i = 2,0,-1 do" and then something like that
i keep dont undertanding, how this "args" work?
so args stands for arguments