Let's say I added a key to a table and then that table only has that inside it, now I want to remove that key from the table. I'm having trouble with that can anyone help?
You can use the table.remove function (http://lua-users.org/wiki/TablesTutorial). In this case, all you need to do is add to your script the code:
table.remove(TABLENAME, 1)
Replacing TABLENAME with the name of the table that stores the key. Hope I've helped! If you have any questions, feel free to comment on this answer and I'll definitely help you.