Offers numerous properties and methods for working with
GuiObjects, player preferences, and other UI‑related tasks.- Memory category
- Instances
- Own members
- 112
- Inherited members
- 75
- Subclasses
- 0
- Siblings
- 608
Properties48
Property categoryBehavior
- Determines if an
Instanceand its descendants can be cloned usingInstance:Clone(), and can be saved/published. - Deprecated: This deprecated property is a variant of
Instance.Archivablewhich should be used instead.Use Archivable instead.
Property categoryData
Property categoryPermissions
- The set of capabilities allowed to be used for scripts inside this container.
- Indicates whether the instance is inside a sandboxed container.
- When enabled, the instance can only access abilities in its
Capabilitieslist.
Defined byGuiService25
Property categoryData
GuiService.AutoSelectGuiEnabled: boolean If activated, the Select button on a gamepad or Backslash will automatically set a GUI as the selected object.GuiService.CoreEffectFolder: Folder GuiService.CoreGuiFolder: Folder GuiService.CoreUISafeAreaInsetBottomRight: Vector2 GuiService.CoreUISafeAreaInsetTopLeft: Vector2 GuiService.DisplayScalingMode: Enum.DisplayScalingMode GuiService.FullscreenViewport: Rect GuiService.HardwareSafeAreaInsetBottomRight: Vector2 GuiService.HardwareSafeAreaInsetTopLeft: Vector2 GuiService.MenuIsOpen: boolean Returnstrueif any menu ofCoreGuiis open.GuiService.PreferredTextSize: Enum.PreferredTextSize Gets the player's preferred text size as anPreferredTextSizevalue.GuiService.PreferredTransparency: number Gets the player's preferred transparency as a number between0and1.GuiService.ReducedMotionEnabled: boolean Returnstrueif the player has enabled reduced motion.GuiService.ScreenContextRawScreenScale: number GuiService.ScreenContextTopbarInset: Rect GuiService.SelectedCoreObject: GuiObject GuiService.SelectedObject: GuiObject Sets theGuiObjectcurrently being focused on by the GUI navigator.GuiService.TopbarInset: Rect Used to determine the absolute size and position of unobstructed area within top bar space.GuiService.TouchControlsEnabled: boolean Used to enable and disable touch controls and touch control display UI. Defaults totrue.GuiService.ViewportDisplaySize: Enum.DisplaySize Read-only property which represents the physical rendering size of the viewport.GuiService.ViewportSizeInMM: Vector2 GuiService.IsModalDialog: boolean Deprecated: This item is deprecated. Do not use it for new work.
Indicates whether a modal dialog is visible.GuiService.IsWindows: boolean Deprecated: This item is deprecated. Do not use it for new work.
Indicates whether the user is playing on a computer running Windows.
No properties match the filters.
Methods106
Object:GetPropertyChangedSignal( property: string): RBXScriptSignal Get an event that fires when a given property of the object changes.Parameters Parameter Description property: stringThe property to connect to.Returns Type Description RBXScriptSignalA signal that fires whenever the property changes.- Returns true if an object's class matches or inherits from a given class.
Parameters Parameter Description className: stringThe class against which the Object's class will be checked. Case-sensitive.Returns Type Description booleanDescribes whether the Object's class matched or is a subclass of the given class. - Deprecated: This deprecated function is a variant of
Object:IsA()which should be used instead.Parameters Parameter className: stringReturns Type booleanUse IsA instead.
- Applies a tag to the instance.
Parameters Parameter Description tag: stringThe tag to apply to the instance. - This method destroys all of an instance's children.
- Create a copy of an instance and all its descendants, ignoring instances that are not
Archivable.Returns Type Description InstanceA copy of the instance, ornilif the instance is notArchivable. - Sets the
Instance.Parentproperty tonil, locks theInstance.Parentproperty, disconnects all connections, and callsDestroy()on all children. Instance:FindFirstAncestor( name: string): Instance Returns the first ancestor of theInstancewhoseInstance.Nameis equal to the given name.Parameters Parameter Description name: stringTheInstance.Nameto be looked for.Instance:FindFirstAncestorOfClass( className: string): Instance Returns the first ancestor of theInstancewhoseObject.ClassNameis equal to the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstAncestorWhichIsA( className: string): Instance Returns the first ancestor of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChild( name: string, recursive: boolean? = false): Instance Returns the first child of theInstancefound with the given name.Parameters Parameter Description name: stringTheInstance.Nameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstChildOfClass( className: string): Instance Parameters Parameter Description className: stringTheObject.ClassNameto be looked for.Instance:FindFirstChildWhichIsA(className: string,recursive: boolean? = false,): Instance Returns the first child of theInstancefor whomObject:IsA()returns true for the given className.Parameters Parameter Description className: stringTheObject.ClassNameto be searched for.recursive: boolean? = falseWhether or not the search should be conducted recursively.Instance:FindFirstDescendant( name: string): Instance Returns the first descendant found with the givenInstance.Name.Parameters Parameter Description name: stringTheInstance.Nameto search for.- Returns the
Actorassociated with the Instance, if any. Instance:GetAttribute( attribute: string): any Returns the value which has been assigned to the given attribute name.Parameters Parameter Description attribute: stringThe name of the attribute being retrieved.Returns Type Description anyThe value which has been assigned to the given attribute name. If no attribute has been assigned,nilis returned.Instance:GetAttributeChangedSignal( attribute: string): RBXScriptSignal Returns an event that fires when the given attribute changes.Parameters Parameter Description attribute: stringThe name of the specified attribute for which the change signal is being returned.Returns Type Description RBXScriptSignalAn event that fires when the given attribute changes.- Returns a dictionary of the instance's attributes.
Returns Type Description { [string]: any }A dictionary of string → variant pairs for each attribute where the string is the name of the attribute and the variant is a non-nil value. - Returns an array containing all of the instance's children.
Returns Type Description { Instance }An array containing the instance's children. Instance:GetDebugId( scopeLength: number? = 4): string Returns a coded string of the debug ID used internally by Roblox.Parameters Parameter Description scopeLength: number? = 4The scope length.Returns Type Description stringThe Debug ID string.- Returns an array containing all of the descendants of the instance.
Returns Type Description { Instance }An array containing the instance's descendants. - Returns a string describing the instance's ancestry.
- Returns the styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified.
Parameters Parameter Description name: stringName of the property to query.selector: string?Optional selector for the pseudo instance you are targeting on the instance.Returns Type Description anyThe styled or explicitly modified value of the specified property, or else the default property value if it hasn't been styled/modified. Instance:GetStyledPropertyChangedSignal( property: string): RBXScriptSignal Returns an event that fires when the given style property changes on the instance.Parameters Parameter Description property: stringName of the style property for which to listen for changes.Returns Type Description RBXScriptSignalEvent that fires when the given style property changes.- Gets an array of all tags applied to the instance.
Returns Type Description { any }An array of strings, each representing a tag applied to the instance. - Check whether the instance has a given tag.
Parameters Parameter Description tag: stringThe tag to check for on the instance.Returns Type Description booleantrueif the instance has the given tag,falseotherwise. Instance:IsAncestorOf( descendant: Instance): boolean Returns true if anInstanceis an ancestor of the given descendant.Instance:IsDescendantOf( ancestor: Instance): boolean Returnstrueif anInstanceis a descendant of the given ancestor.Instance:IsPropertyModified( property: string): boolean Returnstrueif the value stored in the specified property is not equal to the code-instantiated default.Parameters Parameter Description property: stringName of the property to query.Returns Type Description booleanBoolean indicating whether the property is modified from its code‑instantiated default.Instance:QueryDescendants( selector: string): { Instance } Returns an array containing all descendants of the instance that match theselectorstring.Parameters Parameter Description selector: stringSelector string used to filter elements.Returns Type Description { Instance }An array of instances (empty if nothing matched the selector).- Removes a tag from the instance.
Parameters Parameter Description tag: stringThe tag to remove from the instance. Instance:ResetPropertyToDefault( property: string) Resets a property to its default value.Parameters Parameter Description property: stringName of the property to reset.Instance:SetAttribute( attribute: string, value: any) Sets the attribute with the given name to the given value.Instance:WaitForChild( childName: string, timeOut: number): Instance Returns the child of theInstancewith the given name. If the child does not exist, it will yield the current thread until it does.Parameters Parameter Description childName: stringTheInstance.Nameto be looked for.timeOut: numberAn optional time out parameter.- Deprecated: This item is deprecated in favor of
Instance:Destroy()andInstance:ClearAllChildren(). If you must remove an object from the game, and wish to use the object later, set itsParentproperty tonilinstead of using this method.
Sets the object'sParenttonil, and does the same for all its descendants. - Deprecated: This item has been superseded by
Instance:GetChildren()which should be used in all new work.
Returns an array of the object's children.Returns Type Description { Instance }Array of child objects/instances.Use GetChildren instead.
- Deprecated: This deprecated function is a variant of
Instance:Clone()which should be used instead.Returns Type InstanceUse Clone instead.
- Deprecated: This deprecated function is a variant of
Instance:Destroy()which should be used instead.Use Destroy instead.
Instance:findFirstChild( name: string, recursive: boolean? = false): Instance Deprecated: This deprecated function is a variant ofInstance:FindFirstChild()which should be used instead.Returns Type InstanceUse FindFirstChild instead.
- Deprecated: This deprecated function is a variant of
Instance:GetChildren()which should be used instead.Returns Type { Instance }Use GetChildren instead.
Instance:isDescendantOf( ancestor: Instance): boolean Deprecated: This deprecated function is a variant ofInstance:IsDescendantOf()which should be used instead.Parameters Parameter ancestor: InstanceReturns Type booleanUse IsDescendantOf instead.
- Deprecated: This deprecated function is a variant of
Instance:Remove()which has also been deprecated. Neither function should be used in new work.Use Remove instead.
Defined byGuiService64
GuiService:AddCenterDialog(dialog: Instance,centerDialogType: Enum.CenterDialogType,showFunction: (...any) -> ...any,hideFunction: (...any) -> ...any,) Parameters Parameter dialog: InstancecenterDialogType: Enum.CenterDialogTypeshowFunction: (...any) -> ...anyhideFunction: (...any) -> ...anyGuiService:AddKey( key: string) Parameters Parameter key: stringGuiService:AddSpecialKey( key: Enum.SpecialKey) Parameters Parameter key: Enum.SpecialKey- Closes the avatar inspection menu, if open.
Parameters Parameter input: stringReturns Type boolean- Dismisses a notification previously shown by
SendNotification().Parameters Parameter Description notificationId: stringThe identifier returned bySendNotification()for the notification to dismiss.Returns Type Description booleantrueif a matching notification was found and dismissed;falseif no active notification has the givennotificationId. GuiService:ForceTenFootInterface( isForced: boolean) Parameters Parameter isForced: booleanGuiService:GetAutoUIScaleHundredths( ): number Returns Type numberGuiService:GetBrickCount( ): number Returns Type numberParameters Parameter position: Vector3Returns Type InstanceParameters Parameter position: Vector3Returns Type DialogGuiService:GetEffectiveUIScaleHundredths( ): number Returns Type numberGuiService:GetEmotesMenuOpen( ): boolean Checks if the player emotes menu is open.Returns Type Description booleanWhether the emotes menu is open.GuiService:GetErrorCode( ): Enum.ConnectionError Returns Type Enum.ConnectionErrorGuiService:GetErrorDetails( ): { [string]: any } Returns Type { [string]: any }GuiService:GetErrorType( ): Enum.ConnectionError Returns Type Enum.ConnectionErrorGuiService:GetGameplayPausedNotificationEnabled( ): boolean Returns whether or not thePlayer.GameplayPausednotification has been disabled.Returns Type Description booleanWhether or not thePlayer.GameplayPausednotification has been disabled.GuiService:GetGuiInset( ): ...any Returns twoVector2values representing the inset of user GUIs in pixels, from the top‑left corner of the screen and the bottom‑right corner of the screen respectively.GuiService:GetGuiIsVisible( guiType: Enum.GuiType): boolean Parameters Parameter guiType: Enum.GuiTypeReturns Type booleanGuiService:GetHardwareSafeViewport( ): Vector2 Returns Type Vector2GuiService:GetInsetArea( screenInsets: Enum.ScreenInsets): Rect Takes anScreenInsetsvalue and returns aRectdescribing the inset region, relative to theCoreUISafeInsetsarea.Parameters Parameter Description screenInsets: Enum.ScreenInsetsTheScreenInsetsvalue indicating which inset area to query.GuiService:GetInspectMenuEnabled( ): boolean Returns whether the avatar inspection menu is enabled.Returns Type Description booleanWhether the avatar inspection menu is enabled.GuiService:GetNotificationTypeList( ): { [string]: any } Returns Type { [string]: any }GuiService:GetRawScreenScale( ): number Returns Type numberGuiService:GetResolutionScale( ): number Returns Type numberGuiService:GetSafeZoneOffsets( ): { [string]: any } Returns Type { [string]: any }GuiService:GetScreenResolution( ): Vector2 Returns Type Vector2GuiService:GetUiMessage( ): string Returns Type string- Allows the avatar inspection menu to appear showing the assets listed in a
HumanoidDescriptionobject.Parameters Parameter Description humanoidDescription: InstanceAHumanoidDescriptionobject that contains the assets to show in the inspection menu.name: stringThe name of the player being inspected to show in the menu. GuiService:InspectPlayerFromUserId( userId: User) Allows the avatar inspection menu to appear showing the user that has the givenUserId.Parameters Parameter Description userId: UserTheUserIdof the player to inspect.GuiService:IsMemoryTrackerEnabled( ): boolean Returns Type booleanGuiService:IsTenFootInterface( ): boolean Returnstrueif the client is using the ten foot interface, a special version of Roblox's UI exclusive to consoles.Returns Type Description booleantrueif the client is using the ten foot interface (console UI mode);falseotherwise.GuiService:OnNotificationDisplayed( notificationId: string) Parameters Parameter notificationId: stringGuiService:RemoveCenterDialog( dialog: Instance) Parameters Parameter dialog: InstanceGuiService:RemoveKey( key: string) Parameters Parameter key: stringGuiService:RemoveSpecialKey( key: Enum.SpecialKey) Parameters Parameter key: Enum.SpecialKeyGuiService:Select( selectionParent: Instance) SetsGuiService.SelectedObjectto a child of a provided instance that is thePlayerGuior its descendants.Parameters Parameter Description selectionParent: InstanceThe parent of selection whose descendants are searched.GuiService:SendNotification( notificationInfo: { [string]: any }): string Displays a notification described bynotificationInfoand returns a unique identifier for it.Parameters Parameter Description notificationInfo: { [string]: any }A dictionary describing the notification. Recognized fields areTitle(string),Text(string),Icon(string),Buttons(an array of button tables, each with aTextstring, aButtonTypeNotificationButtonTypevalue, and anOnActivatedcallback), andOnDisplay/OnDismisscallback functions.Returns Type Description stringA unique identifier string for the notification, which can be passed toDismissNotification(). Returns an empty string if the notification could not be queued.GuiService:SetEmotesMenuOpen( isOpen: boolean) Opens or closes the player emotes menu.Parameters Parameter Description isOpen: booleanWhether to open (true) or close (false) the emotes menu.GuiService:SetGameplayPausedNotificationEnabled( enabled: boolean) Lets you disable the built-in notification when a player's gameplay is paused.Parameters Parameter Description enabled: booleanWhether or not the built-in notification GUI is disabled.GuiService:SetInspectMenuEnabled( enabled: boolean) Allows you to enable or disable the avatar inspection menu.Parameters Parameter Description enabled: booleanA boolean indicating whether to enable or disable the menu.GuiService:SetPurchasePromptIsShown( isShown: boolean) Parameters Parameter isShown: booleanGuiService:SetTopbarInset( topbarInset: Rect) Parameters Parameter topbarInset: RectGuiService:SetUiMessage(msgType: Enum.UiMessageType,uiMessage: string? = "errorCode",) Parameters Parameter msgType: Enum.UiMessageTypeuiMessage: string? = "errorCode"GuiService:SetUIScaleMultiplier( multiplierHundredths: number) Parameters Parameter multiplierHundredths: numberParameters Parameter input: stringReturns Type booleanGuiService:ToggleGuiIsVisibleForCaptures( guiType: Enum.GuiType) Parameters Parameter guiType: Enum.GuiTypeGuiService:ToggleGuiIsVisibleIfAllowed( guiType: Enum.GuiType) Parameters Parameter guiType: Enum.GuiType- Deprecated:
Creates a selection group where gamepad GUI navigation will only consider selectable objects that are within the group.Parameters Parameter Description selectionName: stringA unique name identifying this selection group.selectionParent: InstanceTheGuiObjectwhose selectable descendants form the navigation group.Use SelectionGroup instead.
- Deprecated:
AddSelectionTuple works similarly toGuiService:AddSelectionParent(), but you can give it a tuple ofGuiObjectthat you want to be contained in the group. Beware that the second argument is not a table, but rather the first of severalGuiObjectin the tuple. To pass the contents of a table, useunpack/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))Parameters Parameter Description selectionName: stringThe name of the added selection....: anyThe selection(s) added.Use SelectionGroup instead.
GuiService:GetErrorMessage( ): string Returns Type stringUse GetUiMessage instead.
GuiService:OpenBrowserWindow( url: string) Parameters Parameter url: stringGuiService:RemoveSelectionGroup( selectionName: string) Parameters Parameter Description selectionName: stringThe name of the selection group to remove.Use SelectionGroup instead.
No methods match the filters.
Events32
Object.Changed: RBXScriptSignal<( property: string)> Fires immediately after a property of the object changes, with some limitations.Parameters Parameter property: string
Instance.AncestryChanged: RBXScriptSignal<( child: Instance, parent: Instance)> Fires when theInstance.Parentproperty of this object or one of its ancestors is changed.Instance.AttributeChanged: RBXScriptSignal<( attribute: string)> Fires whenever an attribute is changed on theInstance.Parameters Parameter attribute: stringInstance.ChildAdded: RBXScriptSignal<( child: Instance)> Fires after an object is parented to thisInstance.Parameters Parameter child: InstanceInstance.ChildRemoved: RBXScriptSignal<( child: Instance)> Fires after a child is removed from thisInstance.Parameters Parameter child: InstanceInstance.DescendantAdded: RBXScriptSignal<( descendant: Instance)> Fires after a descendant is added to theInstance.Parameters Parameter descendant: InstanceInstance.DescendantRemoving: RBXScriptSignal<( descendant: Instance)> Fires immediately before a descendant of theInstanceis removed.Parameters Parameter descendant: Instance- Fires immediately before (or is deferred until after) the instance is destroyed via
Instance:Destroy(). - Fires whenever any style property is changed on the instance, including when a property is set to
nil. Instance.childAdded: RBXScriptSignal<( child: Instance)> Deprecated: This deprecated event is a variant ofInstance.ChildAddedwhich should be used instead.Parameters Parameter child: InstanceUse ChildAdded instead.
Defined byGuiService22
GuiService.CloseInspectMenuRequest: RBXScriptSignal<( )> GuiService.CoreGuiRenderOverflowed: RBXScriptSignal<( )> GuiService.EmotesMenuOpenChanged: RBXScriptSignal<( isOpen: boolean)> Parameters Parameter isOpen: booleanGuiService.GuiVisibilityChangedSignal: RBXScriptSignal<(guiType: Enum.GuiType,visible: boolean,)> Parameters Parameter guiType: Enum.GuiTypevisible: booleanGuiService.InspectMenuEnabledChangedSignal: RBXScriptSignal<( enabled: boolean)> Parameters Parameter enabled: booleanGuiService.InspectPlayerFromHumanoidDescriptionRequest: RBXScriptSignal<(humanoidDescription: Instance,name: string,)> GuiService.InspectPlayerFromUserIdWithCtxRequest: RBXScriptSignal<(userId: number,ctx: string,)> GuiService.KeyPressed: RBXScriptSignal<( key: string, modifiers: string)> GuiService.MenuClosed: RBXScriptSignal<( )> Fires when the user closes the RobloxCoreGuiescape menu.GuiService.MenuOpened: RBXScriptSignal<( )> Fires when the user opens the RobloxCoreGuiescape menu.GuiService.NativeClose: RBXScriptSignal<( )> GuiService.NetworkPausedEnabledChanged: RBXScriptSignal<( enabled: boolean)> Parameters Parameter enabled: booleanGuiService.Open9SliceEditor: RBXScriptSignal<( selectedImageObject: Instance)> Parameters Parameter selectedImageObject: InstanceGuiService.OpenStyleEditor: RBXScriptSignal<( styleBase: Instance)> Parameters Parameter styleBase: InstanceGuiService.PurchasePromptShown: RBXScriptSignal<( )> GuiService.SafeZoneOffsetsChanged: RBXScriptSignal<( )> GuiService.ScrollStateChanged: RBXScriptSignal<(scrollingFrame: Instance,newState: Enum.ScrollState,)> Parameters Parameter scrollingFrame: InstancenewState: Enum.ScrollStateGuiService.ShowLeaveConfirmation: RBXScriptSignal<( )> GuiService.SpecialKeyPressed: RBXScriptSignal<(key: Enum.SpecialKey,modifiers: string,)> Parameters Parameter key: Enum.SpecialKeymodifiers: stringGuiService.UiMessageChanged: RBXScriptSignal<(msgType: Enum.UiMessageType,newUiMessage: string,)> Parameters Parameter msgType: Enum.UiMessageTypenewUiMessage: stringGuiService.BrowserWindowClosed: RBXScriptSignal<( )> GuiService.ErrorMessageChanged: RBXScriptSignal<( newErrorMessage: string)> Parameters Parameter newErrorMessage: stringUse UiMessageChanged instead.
No events match the filters.
Callbacks1
Defined byGuiService1
No callbacks match the filters.