Parameters
Returns
boolean - The previous scriptable state of the property.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
setscriptable(instance: Instance, property: string, scriptable: boolean): boolean
| Parameter | Type | Description |
|---|---|---|
instance | Instance | The target Instance. |
property | string | The property name. |
scriptable | boolean | Whether to make it scriptable (true) or non-scriptable (false). |
boolean - The previous scriptable state of the property.
local wasScriptable = setscriptable(workspace, "size_xml", true)
assert(wasScriptable == false)
setscriptable(game:GetService("Lighting"), "Technology", true)