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

# gethui

> 返回 game:CoreGui lookup.RobloxGui。function 不接受 arguments。如果 CoreGui lookup 返回 nil，或该值上的 RobloxGui 为 nil，function 会返回 nil。function 不会创建 container，也不会使用 cached CoreGui 值。

<div className="real-function-page">
  ```lua theme={null}
  gethui(): Instance | nil
  ```

  ## 别名

  * `gethiddenui`
  * `gethiddengui`
  * `get_hidden_ui`
  * `get_hidden_gui`

  ## 返回值

  <ResponseField name={"robloxGui"} type={"Instance | nil"}>
    从 CoreGui 读取的 RobloxGui 值，或 CoreGui 或 RobloxGui 不可用时的 nil。
  </ResponseField>
</div>
