Tween not working

I have two tweens and I’m trying to make second one run after the first one runs but it’s giving me an error saying " TweenService:Create property named 'CFrame' cannot be tweened due to type mismatch (property is a 'CoordinateFrame', but given type is 'Instance') "

    local targetCFrame = workspace.CamAnimPart.CFrame 
	local camTweenInfo = TweenInfo.new(
		1.5, 
		Enum.EasingStyle.Sine,
		Enum.EasingDirection.Out,
		0,
		false,
		0
	)
	local CamTween = TweenService:Create(camera, camTweenInfo, {CFrame = targetCFrame}) 
	CamTween:Play()
	wait(1.6)
	targetCFrame = workspace.CamAnimPart2
	local camTweenInfo2 = TweenInfo.new(
		0.2, 
		Enum.EasingStyle.Sine,
		Enum.EasingDirection.Out,
		0,
		false,
		0
	)
	CamTween = TweenService:Create(camera, camTweenInfo2, {CFrame = targetCFrame}) 
	CamTween:Play()

What line is the error at? Thanks.

On the line where it says

CamTween = TweenService:Create(camera, camTweenInfo2, {CFrame = targetCFrame})

the second last line

The error is self explanatory, you are trying to use an instance value when a CoordinateFrame value is needed.

But the variable targetCFrame is a cframe, not an instance

You are referencing an instance

You’re changing it here which overrides it after the first tween. Add CFrame to the end of this if you want it to work.

Oh I didn’t see that, my bad. a careless mistake

CamAnimPart2 Is an instance not a CFrame

Please set one of the posts as a solution.

Edit: Great, man set the solution to something that was posted later when I already gave a solution. :moyai: