Is it possible to check if two table have the same metatable, or if a table has a specific table as its metatable, besides using debug.metatable? This should work even if __metatable has been overridden, and I think it would be fairly safe.