isreadonly Synchronous

  • is_readonly

Check whether a table currently rejects writes. This is useful before a temporary table edit that you plan to put back afterward.

Syntax
Luau
isreadonly(value: Table) -> boolean

Parameters

Function parameters
ParameterTypeDescription
valueTableTable to inspect.

Returns

boolean

true when the table is marked read-only.

Example

Example
Luau
local settings = { volume = 5 }
makereadonly(settings)
print(isreadonly(settings)) -- true
Kawaii documentation