gethiddenproperties Synchronous
Collect readable non-scriptable properties from one Instance into a name-to-value table. Use it to inspect available hidden fields without guessing every property name.
Luau
gethiddenproperties(instance: Instance) -> {[string]: any}Parameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | Instance whose reflected property descriptors will be examined. |
Returns
{[string]: any}A table keyed by property name. Values that cannot be read or are nil are omitted.
Usage notes
The function isolates individual getter errors, so a member that exists in reflection but is unavailable in this context is skipped. Results depend on the Instance class and current runtime.
Example
Luau
local part = Instance.new("Part")
local hidden = gethiddenproperties(part)
for name, value in pairs(hidden) do
print(name, typeof(value))
end
part:Destroy()