getproperties

Gets the readable properties of an object.

Syntax

getproperties(object: Object) -> table

Parameters

ParameterTypeDescription
objectObjectThe object to inspect

Returns

TypeDescription
tableDictionary of property values that Volt could read

Description

getproperties returns the readable properties of an Object, including hidden properties. Properties that cannot be read are omitted.

Example

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

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