MouseButton1Click (Event)

(Redirected from MouseButton1Click)
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)