Yuari
Documentation
Docs/Reflection/sethiddenproperty

sethiddenproperty

Writes a non-scriptable property.

Syntax

sethiddenproperty(instance: Instance, property: string, value: any) -> nil

Parameters

ParameterTypeDescription
instanceInstanceThe Instance to read from or modify.
propertystringThe property name to access.
valueanyThe value to apply.

Returns

TypeDescription
nilThis 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.