In Pairs Loop

Self explanatory.

local myTable = {1, 2, 3}

for i, v in pairs(myTable) do
    print(v)
end

Will loop until it is through the entire table. i = the amount of times it has looped, v = the value it is on. Practically a function on crack.

Last updated