Can somebody explain to me what "In pairs", does and how to use it?
Okay well first you need to know whats "Pairs" is... Pairs iterates through tables.
for example
a={"This","is","an","Example"} for k,v in pairs(a) do print(v) end
-a is your table
-k is the key
-v is the value
-pairs(a) iterates through the table a
that is an example for using a generic for, it's very simple to get more detailed information on it I recommend thoroughly reading through the article on the Roblox Wiki.
The Link is: http://wiki.roblox.com/index.php?title=Function_dump/Basic_functions#pairs