How to fix tween camera issue

Hello people of devforum, I am trying to make a 3rd person gun system and I have made it so whenever I fire a gun, the crosshair tweens up by a little bit to act as recoil. The issue is that whenever I move while firing, the camera tweens based on the last position of the camera, heres a video of said issue:

https://gyazo.com/e3db1b1238e3718899fce4494a6becc7.mp4

Here’s the script

		local dropoff = 1

		game:GetService("RunService").RenderStepped:Wait()
	
	
		local tweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0)
		local tween = tweenservice:Create(camera, tweenInfo, {CFrame = camera.CFrame * CFrame.Angles(amount/2,0.0001,0.0001)})
		tween:Play()
		amount = amount/dropoff```
1 Like

Did you start the run service?

1 Like

Whoops :smile: I forgot to start it, thanks for the help.

1 Like