AcediaDocumentation

getproperties

Lists scriptable property names for an Instance and maps each to its value.

The array part holds the property names in descriptor order, and the same table maps each name to the property's current value, so the result reads either way. Includes inherited class properties matching the descriptor's scriptability classification. A property the engine refuses to read is listed by name without a value.

getproperties(target: Instance): {string}

Parameters

ParameterTypeDescription
targetInstanceInstance to inspect.

Example

local part = Instance.new("Part")
local properties = getproperties(part)
print(#properties > 0, properties.Name)

Example output

true Part

gethiddenproperties lists names only.

On this page