How do I remove this from a table

I’m trying to remove something from a table that is a table or a variable inside the table, if you don’t understand, here’s an example:

local stuff = {["Hello"] = "goodbye"}
local spot = table.find(stuff, "Hello") -- Find the variable
table.remove(stuff, spot) -- Remove it from the table
1 Like

You could alternatively make a new table if you are planning to remove variables.

1 Like

would this work?

stuff.Hello = nil

EDIT: Looks like it did work

1 Like