API Reference
Metatable Library
Reading and modifying metatables, including read only protection.
getrawmetatable(object: any): tableReturns the metatable of a value, ignoring protection.
setrawmetatable<T>(object: T, metatable: table): TReplaces the metatable of a value.
setreadonly(table: table, readonly: boolean): ()Sets whether a table can be written to.
isreadonly(table: table): booleanReturns whether a table is protected from writes.
hookmetamethod<T>(object: any, method: string, hook: T): TReplaces a metamethod and returns the original.