Just a quick question, what does the command i,v, in pairs do? and i, v, in ipairs do? Trying to expand my code knowledge and was wondering this for a while.
✓ ANSWER ACCEPTED
What does i,v, do? Trying to expand scripting knowledge.
1 answer
✓ Accepted answer
http://wiki.roblox.com/index.php?title=Global_namespace/Basic_functions#pairs http://wiki.roblox.com/index.php?title=Global_namespace/Basic_functions#ipairs
i, v can be any two variables. i = Index v = Value
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
There's multiple questions and answers of this present on the site.
i stands for index and v stands for value. This is called a generic for loop
The v is just the name for the current pair, inside the quotes() there would be getchildren() or getdescendants() that would get all of the things inside the location its getting from
It's just a loop until it's the last Item in the location