Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 6 years ago

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.

0
There's multiple questions and answers of this present on the site. TheeDeathCaster 2368 — 6y
0
i stands for index and v stands for value. This is called a generic for loop Zafirua 1348 — 6y
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 seith14 206 — 6y
0
It's just a loop until it's the last Item in the location seith14 206 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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

Ad

Answer this question