How could i recreate this table?

The title says it all,
Im trying to recreate a table with Table.Insert
The result im trying to get should look like this

	[694139165] = {
		["Equip"] = {
			["Animation"] = 123
		},
		["Sit"] = {
			["Animation"] = 123
		}
	}


I have attempted with this script
	table.insert(Animations, Player.UserId, {[Table["Name"]] = {["Animation"] = setAnimation}})
But the result came out as 

[694139165] = {
	["Equip"] = {
		["Animation"] = 123
	},
},
[694139165] = {
	["Sit"] = {
		["Animation"] = 123
	},
}

Instead of using table.insert, set the values directly on the table as if you were modifying data. The insert function can only add information, not modify it.
For example:

local testTable = {}
testTable[1000000] = {
    -- table data here
}
1 Like

You could possibly achieve this through stack table.insert() calls within one another but as the above user suggests simply indexing the desired key/field and assigning a particular value is the best way to go about this.