MouseButton1Click (Event)

From Legacy Roblox Wiki
Jump to navigationJump to search
MouseButton1Click ( )
Description Fired when the mouse has fully left clicked the GUI object.
Member of: GuiButton


Example
The function connected to the MouseButton1Click event is fired when the player clicks the GuiButton.
gui.MouseButton1Click:connect(function()
  print("Button1 click.")
end)