gethui Synchronous
get_hidden_guiget_hidden_uigethiddenguigethiddenui
Get Kawaii’s protected GUI container for script interfaces. Parent a ScreenGui there when the interface should live outside the ordinary PlayerGui tree.
Luau
gethui() -> InstanceParameters
This function takes no arguments.
Returns
InstanceThe 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
Luau
local gui = Instance.new("ScreenGui")
gui.Name = "ExamplePanel"
gui.Parent = gethui()
print(gui.Parent.Name)
gui:Destroy()