PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

MouseButton2Down

Fired when the mouse is in the right mouse down state on the GUI object.

Parameters

Name Type Default Description

x

int

y

int

Code Samples


GuiButton.MouseButton2Down

The below example assumes that ‘GUI’ has previously been defined, and will print “Button2 down.” each time the event fires.

GUI.MouseButton2Down:Connect(function()
   print("Button2 down.")
end)