of     1   

yoshiegg6
#141206352Tuesday, July 22, 2014 10:24 PM GMT

and how would I use it?
Lacryma
#141206421Tuesday, July 22, 2014 10:24 PM GMT

u use it when trying to get a number from a variable
FlamedSkull
#141206425Tuesday, July 22, 2014 10:25 PM GMT

Use the the wiki.
grimm343
#141206605Tuesday, July 22, 2014 10:26 PM GMT

Flamed, you should at least give him the correct page in the Wiki. http://wiki.roblox.com/index.php?title=Function_dump/Core_functions#pairs
cntkillme
#141206910Tuesday, July 22, 2014 10:30 PM GMT

pairs is a wrapped iterator to iterate through a table, it goes through all keys where its values is not nil. You should use the next iterator instead of pairs since it's directly using the iterator: for key, value in next, tbl do instead of for key, value in pairs(tbl) do
Kodran
#141207271Tuesday, July 22, 2014 10:34 PM GMT

it goes through every entry in a table, for example: myArray = {"hi", "hello", "bye", "goodbye"} for _, v in pairs (myArray) do print (v) end would return: hi hello bye goodbye
Relegated
#141207332Tuesday, July 22, 2014 10:34 PM GMT

next > life

    of     1