Hello everyone, so I am trying to make a camera recoil using CFrame.Angles and TweenService, however it works fine when youre standing still, but when youre moving the camera starts to glitch. Heres a video:
And here is the recoil part on the script:
local function RecoilCam()
TS:Create(Camera, TweenInfo.new(0.075), {CFrame = Camera.CFrame * CFrame.Angles(math.rad(math.random(-1.25,1.25)), math.rad(math.random(-1.75,1.75)), math.rad(math.random(-0.45,0.45)))}):Play()
end
spawn(RecoilCam)
I don’t know how to fix this or a better way to do this