Skip to content

Class · inherits Instance

BasePlayerGui

Official docs ↗

BasePlayerGui is an abstract class which the GUI drawing storage classes inherit from.

About BasePlayerGui

BasePlayerGui is an abstract class that all GUI drawing storage classes inherit from.

Methods 1

  • GetGuiObjectsAtPosition(x: int, y: int) → InstancesReturns a list of all GuiObject instances occupying the given

    Takes a screen position and returns a list of all the GuiObject instances which are occupying that screen position, sorted in the order they appear on screen from top to bottom as the first and last index, respectively. The main use case is to get GUI objects under the player's mouse or touch inputs to allow for selection or highlighting.

    Since the child classes of BasePlayerGui inherit this function, it can be fired by container classes such as PlayerGui and StarterGui.

BasePlayerGui also has every member of Instance. Deprecated and Roblox-only members are hidden.

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.