How would you make it so that something is done when the right mouse button is clicked? [Also, it has to be compatible with this:
if key == "(right mouse button)" then
-- code
end
How would you make it so that something is done when the right mouse button is clicked? [Also, it has to be compatible with this:
if key == "(right mouse button)" then
-- code
end
Well, It's MouseButton2Down. So...
mouse = game.Players.LocalMouse:GetMouse()
mouse.Button2Down:connect(function()
print("Right click!")
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thanks.
Thank me by Accepting this answer!