"Attach" CameraType jittery while repeatedly rotating the character

I’m making a target lock-on system for my game using a RenderStepped loop to rotate the character towards the target along with the Attach CameraType to keep the camera attached to behind the player, but it instead results in this:

Script:
local HumanoidRootPart = Character.HumanoidRootPart
local hrp = lockedCharacter.HumanoidRootPart

Camera.CameraType = Enum.CameraType.Attach
		
RunService.RenderStepped:Connect(function()
	HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.CFrame.Position, hrp.Position)		
end)

try setting your Humanoid’s .AutoRotate property to false

1 Like

Have you tried Heartbeat or Stepped instead of RenderStepped?

Works perfectly, thank you so much!