Yuari
Documentation
Docs/Reflection/setscriptable

setscriptable

Sets the scriptable flag.

Syntax

setscriptable(instance: Instance, property: string, flag: any) -> nil

Parameters

ParameterTypeDescription
instanceInstanceThe Instance to read from or modify.
propertystringThe property name to access.
flaganyThe flag value used by the call.

Returns

TypeDescription
nilThis function does not return a value.

Description

setscriptable is part of the Reflection library. Reflection walks Roblox's property metadata to read or write values that are normally hidden from scripts.

The change is applied directly to the live target, so later reads observe the updated value.

The aliases set_scriptable resolve to the same implementation.

Example

setscriptable(workspace, "Name", true)

Notes

  • Aliases: set_scriptable.
  • Reflection reads live property metadata; hidden-property writes can desynchronise client state.