GuiButton
GuiButton : GuiObject
Overview
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 ImageButton = ScreenGui.ImageButton
local function OnActivated()
print("Activated!")
end
ImageButton.Activated:Connect(OnActivated)
Last updated