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

What Does this mean?

Asked by 10 years ago
for _,v in pairs(game.Players:GetPlayers())

I don't understand what the _ is used for in the code ive never used in pairs in my life can someone explain?

1 answer

Log in to vote
0
Answered by
Kozero 120
10 years ago

So what this is what it does .. for is used to iterate _,v they can both be any value you like t,u . _ is the position of the argument in the table and v is the value it self. (game.Players:GetPlayers()) Will make a temp table with all the player names inserted. Hope this helped.

0
Thank you! Chaserox 62 — 10y
0
Vote for the post and have a happy day Kozero 120 — 10y
Ad

Answer this question