Syntax
sethiddenproperty(instance: userdata, property: string, value: any): boolean | nilArguments
| Name | Type | Description |
|---|---|---|
instance | userdata | Roblox instance to inspect or update. |
property | string | Property name to read or change. |
value | any | New value to write. |
Returns
| Name | Type | Description |
|---|---|---|
wasHidden | boolean | nil | Previous or detected hidden-property state. |
Description
Sets a hidden property and reports whether the property was hidden.
Call it with 3 parameter(s): instance, property, value. The argument table explains which values are required and which ones only refine the behavior.
It returns wasHidden (boolean | nil). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = sethiddenproperty(game, "example", nil)
print(result)