ReferenceReflection

gethiddenproperty

Reads supported properties, including supported hidden properties.

Syntax

gethiddenproperty(object: Instance, property: string) -> (any, boolean)

Also available as

get_hidden_property

Parameters

ParameterTypeDescription
objectInstanceThe Instance to read.
propertystringThe property name, scriptable or not.

Returns

TypeDescription
anyThe property's value.
booleantrue when the property is hidden from scripts, false when it is ordinary.

Description

The value is read through the class's own getter, so it is exactly what the engine stores. Types that have no ordinary Luau form are returned as strings: BinaryString properties as their raw bytes, and SharedString properties as their content.

Example

local value, hidden = gethiddenproperty(workspace, "StreamingEnabled")
print(value, hidden)

Notes

These are Game executor contracts. Check build requirements and session lifetimes before using them.