I read other forum posts and wiki,still don't understand what is Pairs. Can someone explain it more easier to understood?
COMMUNITY QUESTION
What is Pairs?
2 answers
the 2 buddys. i and v are friends. pairs bosses them around. i and v do not like pairs, they stick together. v is the most useful, and i is mostly left out. pairs bosses around v. heres an example of him telling him to get the players:
for i,v in pairs(game.Players:GetPlayers()) do
end
now that v has been ordered to do something by pairs, you can use v to do multiple things. in this case, you can kick the players.
v:Kick()
pairs is an iterator function that will return a new index and its value from a table every time it is called. See the wiki and Lua reference manual
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
"i,v" means i to v or i and v?
its including both i and v in the cycle.