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

ServerScriptService.leaderstats:37: Expected '=' when parsing assignment, got 'in' ????

Asked by 2 years ago

That message keeps popping up and I have done everything I can with my limited knowledge of scripting to get it to go away. Here is my line of script is says is wrong, for_, player in pairs(game.Players:GetPlayers()) do. Can someone help

1 answer

Log in to vote
0
Answered by 2 years ago

Definitely an answer but through some trial an error I found that if you replace the _ with a i it works.

for i, player in pairs(game.Players:GetPlayers()) do

end
Ad

Answer this question