> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# makewritable

Unlocks a read-only table so its contents can be changed again.

```luau theme={null}
makewritable(t: table): ()
```

Acts as a shortcut for `setreadonly(t, false)`.

Most commonly used to lift a frozen table you can't otherwise write to.

## Parameters

| Parameter | Type    | Description          |
| --------- | ------- | -------------------- |
| `t`       | `table` | The table to unlock. |

## Returns

<code title="the function does not return a value.">void</code>

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  makewritable(getrawmetatable(game))
  =======
  -- makewritable(t: table): ()
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  local cfg = table.freeze({speed = 16})

  cfg.speed = 100 --> errors: attempt to modify a readonly table

  makewritable(cfg)
  cfg.speed = 100 --> works
  print(cfg.speed) --> 100
  ```
</CodeGroup>

<Tip>
  Necessary step before attempting to add or hook properties in a metatable.
</Tip>
