Volt

sethiddenproperty

Sets the value of a hidden property.

Syntax

sethiddenproperty(instance: Instance, property: string, value: any) -> boolean

Parameters

ParameterTypeDescription
instanceInstanceThe instance
propertystringThe hidden property name
valueanyThe value to set

Returns

TypeDescription
booleanWhether 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.

On this page