GuiButton : GuiObject
GuiObject
GuiButton is an abstract class that inherits from GuiObject, defining shared functionality for clickable UI elements like TextButton and ImageButton
The event triggers when the button is pressed.
It fires when a button is clicked or touched and released over the UI element, executing at the inputโs release (Up) rather than its start.
For this event to fire correctly, the buttonโs Active property must be set to true.
Last updated 4 months ago
local ScreenGui = script.Parent local ImageButton = ScreenGui.ImageButton local function OnActivated() print("Activated!") end ImageButton.Activated:Connect(OnActivated)