Volt

getproperties

Gets all properties of an instance.

Syntax

getproperties(instance: Instance) -> table

Parameters

ParameterTypeDescription
instanceInstanceThe instance to check

Returns

TypeDescription
tableDictionary of all property values

Description

getproperties returns a table containing all properties (both visible and hidden) and their current values for an instance.

Example

local part = Instance.new("Part")
local properties = getproperties(part)

for property, value in pairs(properties) do
    print(property, "=", tostring(value))
end

On this page