Spring Module Help

Hello Developers,
I currently want to make a Camera Recoil using Spring module. But I don’t know where to start.
I have this camera recoil script but I don’t like it. Shaking with Spring module would be easier and smoother
(Something like in the game Weaponry by @Headstackk).
Code :

local RecoilAmount = 0.075
 function Fire()
  for i = 1,5 do
   workspace.Camera.CFrame = workspace.Camera.CFrame * CFrame.Angles(0,0,RecoilAmount )
   RunService.Heartbeat:Wait()
  end
  for i = 1,10 do
   workspace.Camera.CFrame = workspace.Camera.CFrame * CFrame.Angles(0,0,RecoilAmount/2)
   RunService.Heartbeat:Wait()
  end
end)

Thanks !

Here’s my implementation:

8 Likes

How do I destroy the spring module objects? There isn’t a :Destroy() function…