Skip to content
Saiko

sethiddenproperty

Writes a property that Roblox hides from scripts, returning whether it was hidden.

Signature

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

Parameters

instanceInstance

The instance to write to.

propertystring

The property name.

valueany

The value to assign.

Returns

boolean

Example

luau
local hidden = sethiddenproperty(workspace, "PhysicsSteppingMethod", Enum.PhysicsSteppingMethod.Fixed)
print(hidden) --> true when the property was hidden