Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I put a table inside another table?

I have MULTIPLE scripts, each of them has a table. I need to make it so these tables are the values of another table, which is located in another script. How do I do that? Thank you!

1 answer

multiple ways to do that. you can do

MotherTable = {}
MotherTable.Child = {}


or,

MotherTable[1] = {}

you can also do,

MotherTable = {}
local c = {}
MotherTable.Child = c

This discussion is preserved as it was. New answers, comments, and votes are closed.