---
title: "sethiddenproperty"
description: "Writes through the reflected setter and returns didSet AND previouslyHidden."
---

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

---

## Aliases

None.

---

## Arguments

<ParamField body="instance" type="Instance" required>
  The Roblox Instance to operate on.
</ParamField>

<ParamField body="property" type="string" required>
  The case-sensitive property name.
</ParamField>

<ParamField body="value" type="any" required>
  The new value, matching the reflected property's type.
</ParamField>

---

## Returns

<ResponseField name="hiddenWrite" type="boolean">
  True only when the value was set and the property was previously non-scriptable.
</ResponseField>

False does not necessarily mean failure: a successful write to an already scriptable property also returns false. Read back when checking the result.

---

## Example

```lua
local part = Instance.new("Part")
local hiddenWrite = sethiddenproperty(part, "Name", "DocsExample")
print(part.Name, hiddenWrite)
part:Destroy()
```
