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

What Does this mean?

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

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.

2 comments

0

Thank you!

0

Vote for the post and have a happy day

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