Skip to content

GuiService

Supported Class Services NotCreatable NotReplicated Service

Offers numerous properties and methods for working with GuiObjects, player preferences, and other UI‑related tasks.

40 Nova members · 62 modern Roblox members not implemented yet

Description

GuiService offers numerous properties and methods for working with GuiObjects, player preferences, and other UI‑related tasks.

Inheritance

Object → Instance → GuiService

Nova inheritance: Instance → GuiService

Properties

AutoSelectGuiEnabled Supported Property If activated, the Select button on a gamepad or Backslash will automatically set a GUI as the selected object.
AutoSelectGuiEnabled: bool

If activated, the Select button on a gamepad or Backslash will automatically set a GUI as the selected object. Disabling this means that GUI navigation will still work if GuiNavigationEnabled is enabled, but you will have to set SelectedObject manually to start navigation.

Roblox documentation

CoreGuiNavigationEnabled Supported Property Toggles whether or not objects in the CoreGui can be navigated using a gamepad.
CoreGuiNavigationEnabled: bool

Toggles whether or not objects in the CoreGui can be navigated using a gamepad.

Roblox documentation

GuiNavigationEnabled Supported Property Used to enable and disable the default controller GUI navigation.
GuiNavigationEnabled: bool

Used to enable and disable the default controller GUI navigation.

Roblox documentation

IsModalDialog Supported Property Deprecated Indicates whether a modal dialog is visible.
IsModalDialog: bool

Indicates whether a modal dialog is visible.

This property tells whether or not a modal dialog is visible, such as the game menu or a purchase prompt.

Nova behaviour: Nova keeps this legacy member for compatibility. Roblox's modern deprecation wording may describe later Roblox behaviour; verify it against Nova before relying on the copied text.

Roblox documentation

IsWindows Supported Property Deprecated Indicates whether the user is playing on a computer running Windows.
IsWindows: bool

Indicates whether the user is playing on a computer running Windows.

The IsWindows property defines if the user is playing on a computer running Windows.

Nova behaviour: Nova keeps this legacy member for compatibility. Roblox's modern deprecation wording may describe later Roblox behaviour; verify it against Nova before relying on the copied text.

Roblox documentation

SelectedCoreObject Supported Property
SelectedCoreObject: Object

No description available.

Roblox reference signature
SelectedCoreObject: GuiObject
Security: RobloxScriptSecurity

Roblox documentation

SelectedObject Supported Property Sets the GuiObject currently being focused on by the GUI navigator.
SelectedObject: Object

Sets the GuiObject currently being focused on by the GUI navigator. This may reset to nil if the object is off screen.

This property is changed by the SelectionGained and SelectionLost events. If you would like to determine when this property changes without tracking these events for all GUI elements, you can use the Changed event.

Roblox reference signature
SelectedObject: GuiObject

Roblox documentation

Methods

AddCenterDialog Supported Function
GuiService:AddCenterDialog(Instance dialog, CenterDialogType centerDialogType, Function showFunction, Function hideFunction)

No description available.

Roblox reference signature
GuiService:AddCenterDialog(dialog: Instance, centerDialogType: CenterDialogType, showFunction: Function, hideFunction: Function): null
Security: RobloxScriptSecurity

Roblox documentation

AddKey Supported Function
GuiService:AddKey(string key)

No description available.

Roblox reference signature
GuiService:AddKey(key: string): null
Security: RobloxScriptSecurity

Roblox documentation

AddSelectionParent Supported Function Deprecated Creates a selection group where gamepad GUI navigation will only consider selectable objects that are within the group.
GuiService:AddSelectionParent(string selectionName, Instance selectionParent)

Creates a selection group where gamepad GUI navigation will only consider selectable objects that are within the group (children of selectionParent). An example is when you have a menu pop open and there are other selectable objects on the screen, possibly from previous menus, but you want the user to only be able to select GUI objects in the new menu.

Roblox reference signature
GuiService:AddSelectionParent(selectionName: string, selectionParent: Instance): null

Roblox documentation

AddSelectionTuple Supported Function Deprecated AddSelectionTuple works similarly to GuiService.AddSelectionParent(), but you can give it a tuple of GuiObject that you want to be contained in the g…
GuiService:AddSelectionTuple(string selectionName, Tuple selections)

**AddSelectionTuple works similarly to GuiService.AddSelectionParent(), but you can give it a tuple of GuiObject that you want to be contained in the group.

Beware that the second argument is not a table, but rather the first of several GuiObject in the tuple. To pass the contents of a table, use unpack/table.unpack:

local frame = script.Parent
-- Passing various GuiObject individually
GuiService:AddSelectionTuple("InventoryButtons", frame.Sort, frame.Trash, frame.Drop)
-- Unpacking a table of GuiObject (unpack/table.unpack are equivalent)
local inventoryButtons = { frame.Sort, frame.Trash, frame.Drop }
GuiService:AddSelectionTuple("InventoryButtons", unpack(inventoryButtons))
```**

Functions similarly to [GuiService.AddSelectionParent](GuiService.md#addselectionparent)(), but you
can give it a tuple of [GuiObject](GuiObject.md) that you want to be contained in
the group.

<details>
<summary>Roblox reference signature</summary>

```lua
GuiService:AddSelectionTuple(selectionName: string, selections: Tuple): null

Roblox documentation

AddSpecialKey Supported Function
GuiService:AddSpecialKey(SpecialKey key)

No description available.

Roblox reference signature
GuiService:AddSpecialKey(key: SpecialKey): null
Security: RobloxScriptSecurity

Roblox documentation

GetBrickCount Supported Function
GuiService:GetBrickCount(): int

No description available.

Security: RobloxScriptSecurity

Roblox documentation

GetClosestDialogToPosition Supported Function
GuiService:GetClosestDialogToPosition(Vector3 position): Instance

No description available.

Roblox reference signature
GuiService:GetClosestDialogToPosition(position: Vector3): Instance
Security: RobloxScriptSecurity

Roblox documentation

GetErrorMessage Supported Function Deprecated
GuiService:GetErrorMessage(): string

No description available.

Nova behaviour: Nova keeps this legacy member for compatibility. Roblox's modern deprecation wording may describe later Roblox behaviour; verify it against Nova before relying on the copied text.
Security: RobloxScriptSecurity

Roblox documentation

GetScreenResolution Supported Function
GuiService:GetScreenResolution(): Vector2

No description available.

Security: RobloxScriptSecurity

Roblox documentation

GetUiMessage Supported Function
GuiService:GetUiMessage(): string

No description available.

Security: RobloxScriptSecurity

Roblox documentation

IsTenFootInterface Supported Function Deprecated Returns true if the client is using the ten foot interface, a special version of Roblox's UI exclusive to consoles.
GuiService:IsTenFootInterface(): bool

Returns true if the client is using the ten foot interface, a special version of Roblox's UI exclusive to consoles.

Note that you should not use this property in an attempt to verify if the player is on a console or not. Instead, consider reading ViewportDisplaySize. This method is hardcoded to return true whenever the client runs on a console, regardless of how the player is actually interacting with the device, making it an unreliable proxy for rendering context.

Security: RobloxScriptSecurity

Roblox documentation

OpenBrowserWindow Supported Function
GuiService:OpenBrowserWindow(string url)

No description available.

Roblox reference signature
GuiService:OpenBrowserWindow(url: string): null
Security: RobloxScriptSecurity

Roblox documentation

RemoveCenterDialog Supported Function
GuiService:RemoveCenterDialog(Instance dialog)

No description available.

Roblox reference signature
GuiService:RemoveCenterDialog(dialog: Instance): null
Security: RobloxScriptSecurity

Roblox documentation

RemoveKey Supported Function
GuiService:RemoveKey(string key)

No description available.

Roblox reference signature
GuiService:RemoveKey(key: string): null
Security: RobloxScriptSecurity

Roblox documentation

RemoveSelectionGroup Supported Function Deprecated Removes a group that was created with AddSelectionParent() or AddSelectionTuple().
GuiService:RemoveSelectionGroup(string selectionName)

Removes a group that was created with AddSelectionParent() or AddSelectionTuple().

Roblox reference signature
GuiService:RemoveSelectionGroup(selectionName: string): null

Roblox documentation

RemoveSpecialKey Supported Function
GuiService:RemoveSpecialKey(SpecialKey key)

No description available.

Roblox reference signature
GuiService:RemoveSpecialKey(key: SpecialKey): null
Security: RobloxScriptSecurity

Roblox documentation

SetErrorMessage Supported Function Deprecated
GuiService:SetErrorMessage(string errorMessage)

No description available.

Nova behaviour: Nova keeps this legacy member for compatibility. Roblox's modern deprecation wording may describe later Roblox behaviour; verify it against Nova before relying on the copied text.
Security: LocalUserSecurity

Roblox documentation

SetGlobalGuiInset Supported Function
GuiService:SetGlobalGuiInset(int x1, int y1, int x2, int y2)

No description available.

Roblox reference signature
GuiService:SetGlobalGuiInset(x1: int, y1: int, x2: int, y2: int): null
Security: RobloxScriptSecurity

Roblox documentation

SetMenuIsOpen Supported Function
GuiService:SetMenuIsOpen(bool open)

No description available.

Roblox reference signature
GuiService:SetMenuIsOpen(open: bool, menuName: string = default): null
Security: RobloxScriptSecurity

Roblox documentation

SetUiMessage Supported Function
GuiService:SetUiMessage(UiMessageType msgType, string uiMessage)

No description available.

Roblox reference signature
GuiService:SetUiMessage(msgType: UiMessageType, uiMessage: string = errorCode): null
Security: LocalUserSecurity

Roblox documentation

ShowStatsBasedOnInputString Supported Function
GuiService:ShowStatsBasedOnInputString(string input): bool

No description available.

Roblox reference signature
GuiService:ShowStatsBasedOnInputString(input: string): bool
Security: RobloxScriptSecurity

Roblox documentation

ToggleFullscreen Supported Function
GuiService:ToggleFullscreen()

No description available.

Roblox reference signature
GuiService:ToggleFullscreen(): null
Security: RobloxScriptSecurity

Roblox documentation

Events

BrowserWindowClosed Supported Event
BrowserWindowClosed()

No description available.

Security: RobloxScriptSecurity

Roblox documentation

ErrorMessageChanged Supported Event Deprecated
ErrorMessageChanged(string newErrorMessage)

No description available.

Roblox reference signature
ErrorMessageChanged(newErrorMessage: string)
Nova behaviour: Nova keeps this legacy member for compatibility. Roblox's modern deprecation wording may describe later Roblox behaviour; verify it against Nova before relying on the copied text.
Security: RobloxScriptSecurity

Roblox documentation

EscapeKeyPressed Supported Event
EscapeKeyPressed()

No description available.

Security: RobloxScriptSecurity

Roblox documentation

KeyPressed Supported Event
KeyPressed(string key, string modifiers)

No description available.

Roblox reference signature
KeyPressed(key: string, modifiers: string)
Security: RobloxScriptSecurity

Roblox documentation

ShowLeaveConfirmation Supported Event
ShowLeaveConfirmation()

No description available.

Security: RobloxScriptSecurity

Roblox documentation

SpecialKeyPressed Supported Event
SpecialKeyPressed(SpecialKey key, string modifiers)

No description available.

Roblox reference signature
SpecialKeyPressed(key: SpecialKey, modifiers: string)
Security: RobloxScriptSecurity

Roblox documentation

UiMessageChanged Supported Event
UiMessageChanged(UiMessageType msgType, string newUiMessage)

No description available.

Roblox reference signature
UiMessageChanged(msgType: UiMessageType, newUiMessage: string)
Security: RobloxScriptSecurity

Roblox documentation

Callbacks

SendCoreUiNotification Supported Callback
SendCoreUiNotification(string title, string text) -> void

No description available.

Roblox reference signature
SendCoreUiNotification(title: string, text: string) -> null
Security: RobloxScriptSecurity

Roblox documentation

Inherited members

Inherited from Instance: 8 properties, 36 methods, 7 events. They are documented on the base class page.

62 modern Roblox member(s) are not implemented yet — expand to inspect

Members declared by Roblox's GuiService class (or by a missing base class) that Nova does not expose. Use this list to scope a migration; the compatibility guide has the recommended workaround.

Properties

Member Signature Status Notes Flags
PreferredTextSize PreferredTextSize: PreferredTextSize Not yet Gets the player's preferred text size as an PreferredTextSize value. ReadOnly, NotReplicated
TopbarInset TopbarInset: Rect Not yet Used to determine the absolute size and position of unobstructed area within top bar space. ReadOnly, NotReplicated
TouchControlsEnabled TouchControlsEnabled: bool Not yet Used to enable and disable touch controls and touch control display UI. Defaults to true. —
ViewportDisplaySize ViewportDisplaySize: DisplaySize Not yet Read-only property which represents the physical rendering size of the viewport. ReadOnly, NotReplicated
ViewportSizeInMM ViewportSizeInMM: Vector2 Not yet — ReadOnly, NotReplicated, RobloxScriptSecurity

Methods

Member Signature Status Notes Flags
BroadcastNotification GuiService:BroadcastNotification(data: string, notificationType: int): null Not yet — RobloxScriptSecurity
ClearError GuiService:ClearError(): null Not yet — RobloxScriptSecurity
CloseInspectMenu GuiService:CloseInspectMenu(): null Not yet Closes the avatar inspection menu, if open. —
CloseStatsBasedOnInputString GuiService:CloseStatsBasedOnInputString(input: string): bool Not yet — RobloxScriptSecurity
DismissNotification GuiService:DismissNotification(notificationId: string): bool Not yet Dismisses a notification previously shown by SendNotification(). —
ForceTenFootInterface GuiService:ForceTenFootInterface(isForced: bool): null Not yet — RobloxScriptSecurity
GetAutoUIScaleHundredths GuiService:GetAutoUIScaleHundredths(): int Not yet — RobloxScriptSecurity
GetClosestVisibleDialogToPosition GuiService:GetClosestVisibleDialogToPosition(position: Vector3): Dialog Not yet — RobloxScriptSecurity
GetEffectiveUIScaleHundredths GuiService:GetEffectiveUIScaleHundredths(): int Not yet — RobloxScriptSecurity
GetEmotesMenuOpen GuiService:GetEmotesMenuOpen(): bool Not yet Checks if the player emotes menu is open. —
GetErrorCode GuiService:GetErrorCode(): ConnectionError Not yet — RobloxScriptSecurity
GetErrorDetails GuiService:GetErrorDetails(): Dictionary Not yet — RobloxScriptSecurity
GetErrorType GuiService:GetErrorType(): ConnectionError Not yet — RobloxScriptSecurity
GetGameplayPausedNotificationEnabled GuiService:GetGameplayPausedNotificationEnabled(): bool Not yet Returns whether or not the Player.GameplayPaused notification has been disabled. —
GetGuiInset GuiService:GetGuiInset(): Tuple Not yet Returns two Vector2 values representing the inset of user GUIs in pixels, from the top‑left corner of the screen and the bottom‑right corner o… —
GetGuiIsVisible GuiService:GetGuiIsVisible(guiType: GuiType): bool Not yet — RobloxScriptSecurity
GetHardwareSafeViewport GuiService:GetHardwareSafeViewport(): Vector2 Not yet — RobloxScriptSecurity
GetInsetArea GuiService:GetInsetArea(screenInsets: ScreenInsets): Rect Not yet Takes an ScreenInsets value and returns a Rect describing the inset region, relative to the [CoreUISafeInsets](../enu… —
GetInspectMenuEnabled GuiService:GetInspectMenuEnabled(): bool Not yet Returns whether the avatar inspection menu is enabled. —
GetNotificationTypeList GuiService:GetNotificationTypeList(): Dictionary Not yet — RobloxScriptSecurity
GetRawScreenScale GuiService:GetRawScreenScale(): float Not yet — RobloxScriptSecurity
GetResolutionScale GuiService:GetResolutionScale(): int Not yet — RobloxScriptSecurity
GetSafeZoneOffsets GuiService:GetSafeZoneOffsets(): Dictionary Not yet — RobloxScriptSecurity
InspectPlayerFromHumanoidDescription GuiService:InspectPlayerFromHumanoidDescription(humanoidDescription: Instance, name: string): null Not yet Allows the avatar inspection menu to appear showing the assets listed in a HumanoidDescription object. —
InspectPlayerFromUserId GuiService:InspectPlayerFromUserId(userId: User): null Not yet Allows the avatar inspection menu to appear showing the user that has the given UserId. —
InspectPlayerFromUserIdWithCtx GuiService:InspectPlayerFromUserIdWithCtx(userId: User, ctx: string): null Not yet — RobloxScriptSecurity
IsMemoryTrackerEnabled GuiService:IsMemoryTrackerEnabled(): bool Not yet — RobloxScriptSecurity
OnNotificationDisplayed GuiService:OnNotificationDisplayed(notificationId: string): null Not yet — RobloxScriptSecurity
OnNotificationInteraction GuiService:OnNotificationInteraction(notificationId: string, buttonIndex: int): null Not yet — RobloxScriptSecurity
OpenNativeOverlay GuiService:OpenNativeOverlay(title: string, url: string): null Not yet — RobloxScriptSecurity
Select GuiService:Select(selectionParent: Instance): null Not yet Sets GuiService.SelectedObject to a child of a provided instance that is the PlayerGui or its descendants. —
SendNotification GuiService:SendNotification(notificationInfo: Dictionary): string Not yet Displays a notification described by notificationInfo and returns a unique identifier for it. —
SendUIOcclusionMetricsForQueryRegion GuiService:SendUIOcclusionMetricsForQueryRegion(position: UDim2, size: UDim2, regionName: string): null Not yet — RobloxScriptSecurity
SetEmotesMenuOpen GuiService:SetEmotesMenuOpen(isOpen: bool): null Not yet Opens or closes the player emotes menu. —
SetGameplayPausedNotificationEnabled GuiService:SetGameplayPausedNotificationEnabled(enabled: bool): null Not yet Lets you disable the built-in notification when a player's gameplay is paused. —
SetHardwareSafeAreaInsets GuiService:SetHardwareSafeAreaInsets(left: float, top: float, right: float, bottom: float): null Not yet — RobloxScriptSecurity
SetInspectMenuEnabled GuiService:SetInspectMenuEnabled(enabled: bool): null Not yet Allows you to enable or disable the avatar inspection menu. —
SetPurchasePromptIsShown GuiService:SetPurchasePromptIsShown(isShown: bool): null Not yet — RobloxScriptSecurity
SetSafeZoneOffsets GuiService:SetSafeZoneOffsets(top: float, bottom: float, left: float, right: float): null Not yet — RobloxScriptSecurity
SetTopbarInset GuiService:SetTopbarInset(topbarInset: Rect): null Not yet — RobloxScriptSecurity
SetUIScaleMultiplier GuiService:SetUIScaleMultiplier(multiplierHundredths: int): null Not yet — RobloxScriptSecurity
ToggleGuiIsVisibleForCaptures GuiService:ToggleGuiIsVisibleForCaptures(guiType: GuiType): null Not yet — RobloxScriptSecurity
ToggleGuiIsVisibleIfAllowed GuiService:ToggleGuiIsVisibleIfAllowed(guiType: GuiType): null Not yet — RobloxScriptSecurity

Events

Member Signature Status Notes Flags
CloseInspectMenuRequest CloseInspectMenuRequest() Not yet — RobloxScriptSecurity
CoreGuiRenderOverflowed CoreGuiRenderOverflowed() Not yet — RobloxScriptSecurity
EmotesMenuOpenChanged EmotesMenuOpenChanged(isOpen: bool) Not yet — RobloxScriptSecurity
GuiVisibilityChangedSignal GuiVisibilityChangedSignal(guiType: GuiType, visible: bool) Not yet — RobloxScriptSecurity
InspectMenuEnabledChangedSignal InspectMenuEnabledChangedSignal(enabled: bool) Not yet — RobloxScriptSecurity
InspectPlayerFromHumanoidDescriptionRequest InspectPlayerFromHumanoidDescriptionRequest(humanoidDescription: Instance, name: string) Not yet — RobloxScriptSecurity
InspectPlayerFromUserIdWithCtxRequest InspectPlayerFromUserIdWithCtxRequest(userId: int64, ctx: string) Not yet — RobloxScriptSecurity
NativeClose NativeClose() Not yet — RobloxScriptSecurity
NetworkPausedEnabledChanged NetworkPausedEnabledChanged(enabled: bool) Not yet — RobloxScriptSecurity
Open9SliceEditor Open9SliceEditor(selectedImageObject: Instance) Not yet — RobloxScriptSecurity
OpenStyleEditor OpenStyleEditor(styleBase: Instance) Not yet — RobloxScriptSecurity
PurchasePromptShown PurchasePromptShown() Not yet — RobloxScriptSecurity
SafeZoneOffsetsChanged SafeZoneOffsetsChanged() Not yet — RobloxScriptSecurity
ScrollStateChanged ScrollStateChanged(scrollingFrame: Instance, newState: ScrollState) Not yet — RobloxScriptSecurity

Roblox reference: GuiService

Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.