Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I insert 2 values in a table?

Asked by 4 years ago
Edited 4 years ago

This question has been solved by the original poster.

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

Log in to vote
0
Answered by 4 years ago

I figured it out

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

Answer this question