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

Difference between these 2 for loops?[Answered]

Asked by 10 years ago

What is the difference between these 2 below?: Explain it for me thanks

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

for _, v in pairs(game.Players:GetPlayers()) do
end

1 answer

Log in to vote
2
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

There is no difference, you may name the index and value variables whatever you wish.

0
THanks. Coolviper630 95 — 10y
0
Accept my answer an we both get points, just so you know :) Perci1 4988 — 10y
Ad

Answer this question