How would I make a recoil system like CSGO or CBRO?

I’ve been trying to make recoil for a while now. I’ve tried before but it just didn’t work.

I also want it to go back down after you stop shooting

You can change the Y (vertical recoil) cframe of the camera like:

Camera.CFrame = Camera.CFrame * CFrame.Angles(0,math.rad(1),0)

Or you can even do math.random if you want a randomized recoil

Forgot to add this on: I also want it to go back down too.

You can copy the same line, just set every number you typed to negative after a wait():

Camera.CFrame = Camera.CFrame * CFrame.Angles(0,math.rad(1),0)
wait(1)
Camera.CFrame = Camera.CFrame * CFrame.Angles(0,math.rad(-1),0)

You can also use tweens if those are not smooth

Found a solution already. Sorry!

1 Like

You might want to post the solution instead of just saying you found the solution.

8 Likes