So to just begin, I've been looking into the development of making guns. However whenever I see guns that are actually decently scripted, I always wonder how they added that little sway effect when you move the camera left to right. After doing something research of my own, I came across "lerp" and how you can use this get that sway effect. I was reading the Wiki, but it just hasn't seemed to click yet.
How would I go about adding the sway to my gun?