Camera shake/jerk when shooting

I would like to create a camera system where when you shoot it jerks the camera up then back down all smoothly so not just setting a position of the camera but a nice lerp up then back down fast. I have the system done I just don’t use cameras how would I do this?

You should use:
https://developer.roblox.com/en-us/api-reference/property/Humanoid/CameraOffset
This will allow you to move the players camera up when they shoot, and back down smoothly.

I think you mean recoil

Anyways, I suggest using spring.

Here’s psuedo code of how mine is set up:

CameraSpring:shove(Vector3.new()) -- shove the spring (spring is CameraSpring)
task.delay(Settings.RecoverAfter, CameraSpring.shove, CameraSpring, Vector3.new()) -- After a bit do the opposite

I am a bit confused what are the variables for these?