How do you get a value from a key in a table?

I don’t know why but I cant seem to find how to do this from the wiki. I see there is table.KeyFromValue, but can’t find something the other way around.

Several ways:
if the key is complex or starts with a number: array[ key ]
if the key is a simple string: array.key

that returns the value stored in an array at index key.

The reason KeyFromValue exists, is because a few other table functions require key to be used such as table.remove( table, key/index_to_remove )