The camera recoil is being increased if the player has a higher FPS and if the player has a lower FPS then the camera recoil is reduced
In my FPS game I have 2 things that edits camera movement
- Viewmodel Camera Part
- Recoil Spring
I already tried using deltatime but couldn’t figure out how to get it to work
Code:
-- Set Recoil
springs.recoil:shove(recoil)
-- RenderStepped (Both lines has these issues)
camera.CFrame = camera.CFrame * CFrame.Angles(math.rad(recoil.x), math.rad(recoil.y), math.rad(recoil.z))
camera.CFrame = camera.CFrame * viewmodel.HumanoidRootPart.CFrame:ToObjectSpace(viewmodel.CameraPart.CFrame)