local array = {}
array[1] = {1,2,3,4,5}
array[2] = {5,4,3,2,1}
for i,v in pairs(array) do
print(array[i][i])
end
This code outputs to output only 1 and 4. how do I output first the numbers from the first array (1,2,3,4,5) and then from the second, from the third one and so on

1 comment
Made an edit, there was something wrong. Admittedly I didn't run this code before posting it.