Camera shake script offsets my camera transform values

Okay so I set up a camera shake with a script I found online. I really like the shake effect. I have it set up to enable the shake script when the enemy jumps down from a ledge and then it deactivates shortly after… The only problem is that it offsets my camera position values, it’s mostly the Y value screwing things up. I need the camera to go back to following the cameras transform values from right before the shake is applied… I am totally stumped on this, if anyone could give me some tips as to why it’s not working I would be very grateful.

camera shake (broken) · GitHub (this is the shake script)

gist:17c172dba11ce83d611b · GitHub (this one is the camera follow script)

This new one works, I used OnEnable for when the script is activated over and over with spawned enemies :wink:

Seen this before. You can simply store the Vector3 before the shake and assign it back when finished the shake to ensure that it goes back to EXACTLY where it was.