Skip to content
EnvironmentOverview

gethui

Represents access to the module's UI container.

Aliasesget_hidden_guiget_hidden_ui

Details#

Returns the local UI container provided by the module. Parent UI objects to this container and destroy them when no longer needed. This does not create a ScreenGui for you.

Examples#

Example

Luau
local gui = Instance.new("ScreenGui")
gui.Name = "DocsExample"
gui.Parent = gethui()
gui:Destroy()