I made a gun that shakes the camera but I don’t know how to reset it.
Here’s the code for shaking:
local now = tick()
local bobbleX = math.cos(now * 9) / 6
local bobbleY = math.cos(math.sin(now * 12)) / 3
local bobble = Vector3.new(bobbleX, bobbleY, 0) * 5
humanoid.CameraOffset = humanoid.CameraOffset:Lerp(bobble, 0.25)
So this works but how would I reset the camera again since the camera just stays in that new position