getpcd
Returns the hidden PhysicalConfigData value of an instance.
Syntax
getpcd(instance: Instance) -> Instance
Parameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | The Instance to read from or modify. |
Returns
| Type | Description |
|---|---|
Instance | The hidden PhysicalConfigData value of an instance |
Description
getpcd is part of the Reflection library. Reflection walks Roblox's property metadata to read or write values that are normally hidden from scripts.
The call is read-only: it resolves the current value when invoked and does not change the underlying state.
The aliases getpcdprop(instance) resolve to the same implementation.
Example
print(getpcd(workspace))
Notes
- Aliases:
getpcdprop(instance). - Reflection reads live property metadata; hidden-property writes can desynchronise client state.