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:
1 | if key = = "(right mouse button)" then |
2 | -- code |
3 | end |
Well, It's MouseButton2Down. So...
1 | mouse = game.Players.LocalMouse:GetMouse() |
2 | mouse.Button 2 Down:connect( function () |
3 | print ( "Right click!" ) |
4 | end ) |