Skip to content
Roblox API Reference

GuiButton

An abstract class for interactive 2D user interface elements.
  • Not browsable
  • Not creatable
Memory category
Gui
Own members
20
Inherited members
156
Subclasses
2
Siblings
12

Properties91

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Inherited fromGuiBase2d17

Property categoryData

Property categoryDebugging

Property categoryLocalization

Property categorySelection

Inherited fromGuiObject39

Property categoryAppearance

Property categoryBehavior

  • Determines if descendant GuiObjects outside of the bounds of a parent GUI element should render.
    • Read capabilities: UI
  • Deprecated: This property is deprecated. Use UIDragDetector instead, as it supports more input types and can be better customized.
    Determines whether a GuiObject (and its descendants) can be dragged around the screen.
    • Deprecated
    • Read capabilities: UI

Property categoryData

Property categoryEventReplicator

Property categorySelection

Property categoryState

Defined byGuiButton12

Property categoryData

  • GuiButton.AutoButtonColor: boolean
    Determines whether the button automatically changes color when the mouse hovers over or clicks on it.
    • Read capabilities: UI
  • GuiButton.Modal: boolean
    If true while the GUI element is visible, the mouse will not be locked unless the right mouse button is down.
    • Read capabilities: UI
  • GuiButton.Style: Enum.ButtonStyle
    Sets the style of the GuiButton based on a list of pre-determined styles.
    • Read capabilities: UI

Property categoryEventReplicator

  • GuiButton.MouseButton1ClickConnectionCount: number
    • Hidden
    • Not scriptable
    • Read capabilities: UI
  • GuiButton.MouseButton1DownConnectionCount: number
    • Hidden
    • Not scriptable
    • Read capabilities: UI
  • GuiButton.MouseButton1UpConnectionCount: number
    • Hidden
    • Not scriptable
    • Read capabilities: UI
  • GuiButton.MouseButton2ClickConnectionCount: number
    • Hidden
    • Not scriptable
    • Read capabilities: UI
  • GuiButton.MouseButton2DownConnectionCount: number
    • Hidden
    • Not scriptable
    • Read capabilities: UI
  • GuiButton.MouseButton2UpConnectionCount: number
    • Hidden
    • Not scriptable
    • Read capabilities: UI

Property categoryHaptic

Property categorySelection

  • GuiButton.Selected: boolean
    A boolean property which indicates whether the object has been selected.
    • Read capabilities: UI

Methods48

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Inherited fromGuiObject6

Events37

Inherited fromObject1
Inherited fromInstance9
Inherited fromGuiBase2d1
Inherited fromGuiObject18
Defined byGuiButton8