Skip to main content

Arguments

Instance
required
Instance object used as part of the scriptable override cache key.
string
required
Property name resolved with Roblox property metadata and the Instance class descriptor on a cache miss.
boolean
required
Scriptable override value to store in scriptable override cache.

Returns

boolean | nil
Previous cached scriptable value, previous scriptable state value, or nil when the property cannot be resolved to a property entry.

Example

Temporarily change whether a property is scriptable, then restore the previous state when available.