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

# gethui

Returns the hidden CoreGui container as a [`Folder`](https://create.roblox.com/docs/reference/engine/classes/Folder) Instance.

```luau theme={null}
gethui(): Folder
```

GUI objects parented to this `Folder` are protected from common detection methods.

Repeated calls return the same Instance, so caching the result yourself is unnecessary.

## Returns

[`Folder`](https://create.roblox.com/docs/reference/engine/classes/Folder) - a single Folder Instance parented under CoreGui, kept out of reach of the game's own scans.

## Aliases

* `get_hidden_gui`

## Example

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  local hui = gethui()
  =======
  -- gethui(): Folder
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  local container = gethui()

  local screenGui = Instance.new("ScreenGui")
  screenGui.Name = "MyGui"
  screenGui.Parent = container
  ```
</CodeGroup>

<Tip>
  Use this container to hide cheat interfaces and overlay HUDs from game security scans.
</Tip>
