table["Stuff"] = nil
expected > print(table["Stuff"])
> "nil"
got > print(table["Stuff"])
> "table:..."
(why is the format on this messed up?)
Whats wrong with this method? Do module scripts have any affect on this? I assume this is the wrong way of doing this, so can someone enlighten me?``
to accomplish this you have to use table.remove()
http://wiki.roblox.com/index.php?title=Table.remove&redirect=no
Now to answer the question you asked me after, to find the index of a value in a table like you asked, you have to iterate through the table, if you are planning on doing this a lot, I suggest using an index.
local index={} for i,v in pairs(table) do index[v]=i end return index["foo"]