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)