How to do a right click and left click mouseclick?
COMMUNITY QUESTION
How do I use the mouse?
1 answer
To get the mouse use this in a localscript or do the normal tool way:
m = game.Players.LocalPlayer:GetMouse()
The way to use the left button is:
m.Button1Down:connect(function()
print("Left button was clicked")
end)
Right:
m.Button2Down:connect(function()
print("Right button was clicked")
end)
I hope this helped :)
This discussion is preserved as it was. New answers, comments, and votes are closed.
