Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with Key Removing?

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?

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.

5 comments

0

Thank you MidnightDeveloper.

0

What about if I wanted to remove a certain key like s or q?

0

table[key] = nil

0

Thank you.

0

It didn't work.

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