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?
✓ ANSWER ACCEPTED
Help with Key Removing?
1 answer
✓ Accepted answer
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
Thank you MidnightDeveloper.
What about if I wanted to remove a certain key like s or q?
table[key] = nil
Thank you.
It didn't work.