> ## 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.

# oth.get_root_callback

Retrieves the original root callback function for a hooked function.

```luau theme={null}
oth.get_root_callback(target: function): function
```

## Parameters

| Parameter | Type       | Description          |
| --------- | ---------- | -------------------- |
| `target`  | `function` | The hooked function. |

## Returns

`function` - The original unhooked function.

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  local root = oth.get_root_callback(print)
  print("Original root: ", root)
  ```

  ```luau Example 2 theme={null}
  local root = oth.get_root_callback(workspace.Destroy)
  assert(root == game.Destroy, "Root callback should represent the unmodified method")
  ```
</CodeGroup>

<Tip>
  Allows bypassing intermediate hooks to execute the root implementation.
</Tip>
