GuiButton

GuiButton : GuiObject

Properties

Methods

Events

Activated

The Activated event is triggered when the GuiButton is clicked or tapped by the user. This event allows developers to define custom behavior when a button is activated, enabling interactivity in the interface. You can connect this event to a function to execute specific actions upon user interaction.

Parameters

Code Samples

local ScreenGui = script.Parent
local GuiButton = ScreenGui.GuiButton

local function OnActivated()
    print("Activated!")
end
GuiButton.Activated:Connect(OnActivated)

Last updated