StartIntroduction
sUNC Reference
Closures
Debug
Drawing
Encoding
Environment
Filesystem
Instances
Metatable
getnamecallmethodgetrawmetatableisreadonlysetrawmetatablesetreadonly
Miscellaneous
Reflection
Scripts
Signals
WebSocket
Related to sUNC docsOfficial reference
Metatablesetreadonly
Metatable

setreadonly

Locks or unlocks a table.

Related to sUNC documentation

This page follows the official sUNC reference.

Signature

Luau
function setreadonly(table: { any }, state: boolean): ()

Returns

Nothing.

PrevioussetrawmetatableNextMiscellaneous
On this pagesUNC sourceSignatureReturns