lua is table same as table code example
Example 1: lua tables
local favoritefoods_table = {"hamburger", "spaghetti", "pizza", "potato chips"}
--the table--
for i, v in pairs(favoritefoods_table) do --loop through the table--
print(i) --print the number--
print(v) --print the value--
end
Example 2: making an array lua
local Table = {"A", "B", "C", 1, 2, 3} -- Tables can have multiple value types.
print(Table[3]) -- Lua table indices start at 1 rather than 0.