sethiddenproperty
Sets the value of a hidden property.
Syntax
sethiddenproperty(instance: Instance, property: string, value: any) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
instance | Instance | The instance |
property | string | The hidden property name |
value | any | The value to set |
Returns
| Type | Description |
|---|---|
boolean | Whether the property was hidden |
Description
sethiddenproperty sets the value of a property that isn't normally accessible through scripts.
Example
local part = Instance.new("Part")
-- Set a hidden property
local wasHidden = sethiddenproperty(part, "size_xml", "1, 1, 1")
print("Was hidden:", wasHidden)Caution
Modifying hidden properties can cause unexpected behavior or break instances. Only modify properties you understand.
Related Functions
gethiddenproperty- Get a hidden propertysetscriptable- Make properties scriptable