getproperties
Reads accessible current property values for an Instance’s class and inherited classes.
Syntax
getproperties(object: Instance) -> {[string]: any}
Also available as
get_properties
Parameters
| Parameter | Type | Description |
|---|---|---|
object | Instance | Object to inspect. |
Returns
| Type | Description |
|---|---|
table | Property names mapped to current values. |
Description
The result includes scriptable and supported hidden properties. Read failures can prevent particular values from being represented. This returns a snapshot, not a live proxy; editing the result does not write properties back. See gethiddenproperties for hidden properties only.
Example
local part = Instance.new("Part")
local values = getproperties(part)
print(values.Name, values.Position)
part:Destroy()
These are Game executor contracts. Check build requirements and session lifetimes before using them.
