gethui Synchronous

  • get_hidden_gui
  • get_hidden_ui
  • gethiddengui
  • gethiddenui

Get Kawaii’s protected GUI container for script interfaces. Parent a ScreenGui there when the interface should live outside the ordinary PlayerGui tree.

Syntax
Luau
gethui() -> Instance

Parameters

This function takes no arguments.

Returns

Instance

The hidden UI container Instance.

Usage notes

The protected root itself must remain nil-parented. Remove any child GUI that your script creates when it is no longer needed.

Example

Example
Luau
local gui = Instance.new("ScreenGui")
gui.Name = "ExamplePanel"
gui.Parent = gethui()
print(gui.Parent.Name)
  gui:Destroy()
Kawaii documentation