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?
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?
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thank you!
Vote for the post and have a happy day