MouseButton2Up (Event)

From Legacy Roblox Wiki
Jump to navigationJump to search
MouseButton2Up ( int x, int y )
Description Fired when the right mouse button has been released on a GUI Object.
Member of: GuiButton


Example
The function that is connected to the MouseButton2Up event is fired when the player releases their right mouse button after clicking the TextButton or ImageButton.
gui.MouseButton2Up:connect(function()
  print("Button2 up.")
end)