✓ Accepted answer
Yes, this is an empty table. But you should not name a table "table", because that is a special keyword on roblox. Any text that turns blue is a special keyword you should not use to name anything in your code. Tables are basically arrays or a list. They can store information like strings, booleans, functions, and more. Usually people use them to store items in a player's inventory.
local myTable = {}
table.insert(myTable, "Oranges")
print (myTable[1])
table.insert(myTable, "Apples")
table.insert(myTable, "Grapes")
table.insert(myTable, "Bananas")
table.remove(myTable, 3)
for i, v in pairs(myTable)do
print (i, v)
end
1 comment
yep