getmetatable
Example
Use a table's metatable and alter it.
Output: "John Doe"
Returns the metatable of an object. This function obeys the metatable's __metatable field, and will return that field if the metatable has it set.
Use debug.getmetatable if you want the true metatable of the object.
If you want to modify the metatable, check out FindMetaTable
Use a table's metatable and alter it.