getproperties
Gets all properties of an instance.
Syntax
getproperties(instance: Instance) -> tableParameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | The instance to check |
Returns
| Type | Description |
|---|---|
table | Dictionary 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))
endRelated Functions
gethiddenproperties- Get hidden onlygethiddenproperty- Get single hidden property