ReferenceMetatables

makewritable

Makes a read-only table writable again.

Syntax

makewritable(target: table) -> ()

Also available as

makewriteablemake_write_able

Parameters

ParameterTypeDescription
targettableThe table to unfreeze.

Description

The same as setreadonly(target, false).

Example

local frozen = table.freeze({ Value = 1 })
makewritable(frozen)
frozen.Value = 2
print(frozen.Value)

These are Game executor contracts. Check build requirements and session lifetimes before using them.