How could I make a click to aim?

So I’m trying to make my weapon aim with just clicking the right mouse button because I know Mouse.Button2Down is a thing but not Mouse.Button2Click. Is there any way to create a right mouse click function?

1 Like

So you would do something like if a player clicks there mouse (MouseButton1 or 2 Click) the players camera zooms in on the scope

1 Like

You should use ContextActionService for this , you can bind functions to any keys or inputs.

Sample Code :

function Aim()
--Aim 
end

game:GetService("ContextActionService"):BindAction("Aim", Aim , false , Enum.UserInputType.MouseButton2)