VINDICTA
Instances · Function
Bunni.fun
ChocoSploit
Cryptic
Potassium
Seliware
SirHurt
Solara
Velocity
Volcano
Volt
Wave
Xeno

sethiddenproperty

Sets the value of a hidden (non-scriptable) property on an Instance.

function sethiddenproperty(instance: Instance, property: string, value: any): ()

Synopsis

How it works

The write counterpart to gethiddenproperty. Directly calls the C++ setter function for a notscriptable property through the reflection systemReflection systemRoblox's internal type metadata system. Every class (Part, Humanoid, etc.) has a ClassDescriptor with property descriptors, method descriptors, and event descriptors. The executor's getproperties/gethiddenproperties read this metadata., bypassing the scriptability check. The value must be of the correct type for the property.

Replication

Some hidden properties replicate to the server when modified (e.g., physics properties). Others are client-only and serve as internal engine state. Check the Roblox API reference to understand replication behavior before modifying hidden properties.

Usage

Set hidden property
sethiddenproperty(workspace.Terrain, "MaterialColors", newValue)

Parameters

instance Instance
The target Instance.
property string
The property name to set.
value any
The new value.