You can combine the tables first with for example this method table.merge. (make sure to copy the code)
And then loop through them.
Keep in mind that the table.merge method is mutating the first table. (mutating = changing the content of the table, instead of returning a new one)
table1 = {1,2,3}
table2 = {4,5,6}
----
local newTable = {}
table.merge(newTable, table1, table2)
-- or with table names
table.merge(newTable, {"table1"}, table1, {"table2"}, table2)