Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.