Reflection

isscriptable

Checks whether a property is scriptable from Luau.

Syntax

isscriptable(instance: userdata, property: string): boolean

Arguments

NameTypeDescription
instanceuserdataRoblox instance to inspect or update.
propertystringProperty name to read or change.

Returns

NameTypeDescription
scriptablebooleanCurrent scriptable state.

Description

Checks whether a property is scriptable from Luau.

Call it with 2 parameter(s): instance, property. The argument table explains which values are required and which ones only refine the behavior.

It returns scriptable (boolean). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = isscriptable(game, "example")
print(result)