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 insert 2 values in a table?

The two inserts below were my attempts

local playerList = {}
		table.insert(playerList, x = someUser, y = SomeValue)
		table.insert(playerList.x, someUser)

I know one value would be

table.insert(playerList, someUser)

but I'm looking to add two (Child parent table?)

1 answer

I figured it out

local playerList = {}
table.insert(playerList, {x = someUser, y = SomeValue})

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