Trying to figure out how to insert values into table like this for an example:
stat= {
plrname = {userid = 0, gold = 0)
}
i know you use table.insert() but i haven't read that much about it
table.insert(stat, plrname)
^ that's the only thing I know, no clue how to add the userid and gold thanks for taking your time to help me out

4 comments
Ah, I got it all figured out now, thank you!
Sorry, another question. How would I get the inserted value within the table without a variable or how would I set a variable?
I'm confused by your question. If you're asking how to retrieve the data inside the table containing the player's stats you would index
statswith the player name and then the specific stat.stats[playername].goldHere is some extra information you can read on arrays and dictionaries. http://lua-users.org/wiki/TablesTutorial