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

What does i,v, do? Trying to expand scripting knowledge.

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.

4 comments

0

There's multiple questions and answers of this present on the site.

0

i stands for index and v stands for value. This is called a generic for loop

0

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

0

It's just a loop until it's the last Item in the location

1 answer

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