sethiddenproperty
Writes a non-scriptable property.
Syntax
sethiddenproperty(instance: Instance, property: string, value: any) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | The Instance to read from or modify. |
property | string | The property name to access. |
value | any | The value to apply. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
sethiddenproperty 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 sethiddenprop, set_hidden_property, set_hidden_prop resolve to the same implementation.
Example
sethiddenproperty(workspace, "SomeHiddenProperty", true)
Notes
- Aliases:
sethiddenprop,set_hidden_property,set_hidden_prop. - Reflection reads live property metadata; hidden-property writes can desynchronise client state.