gethiddenproperty
Reads supported properties, including supported hidden properties.
Syntax
gethiddenproperty(object: Instance, property: string) -> (any, boolean)
Also available as
get_hidden_property
Parameters
| Parameter | Type | Description |
|---|---|---|
object | Instance | The Instance to read. |
property | string | The property name, scriptable or not. |
Returns
| Type | Description |
|---|---|
any | The property's value. |
boolean | true 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
- The second result lets you tell a hidden property from an ordinary one without a second call. Color3uint8 reads the part's live Color3 value. Removed properties are not recreated as aliases; use the engine's current property names.
These are Game executor contracts. Check build requirements and session lifetimes before using them.
