Class · inherits Instance
BasePlayerGui
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 allGuiObjectinstances occupying the givenTakes a screen position and returns a list of all the
GuiObjectinstances 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
BasePlayerGuiinherit this function, it can be fired by container classes such asPlayerGuiandStarterGui.
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.