Syntax
isscriptable(instance: userdata, property: string): booleanArguments
| Name | Type | Description |
|---|---|---|
instance | userdata | Roblox instance to inspect or update. |
property | string | Property name to read or change. |
Returns
| Name | Type | Description |
|---|---|---|
scriptable | boolean | Current 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)