setscriptable
Detection risks
setscriptable can expose detection vectors. Games may check whether certain properties are unexpectedly accessible, which can lead to detections.
Limited property support
Not all hidden properties can be obtained using this function.
setscriptable toggles the scriptability of a hidden or non-scriptable property on an Instance. When a property is made scriptable, it can be accessed or assigned through standard indexing.
Parameters
| Parameter | Description |
|---|---|
instance |
The Instance that owns the target property. |
property_name |
The name of the property to make scriptable or un-scriptable. |
state |
Whether to enable (true) or disable (false) scriptability. |