Camera Manipulation not on the right direction

This is my script:

I used a proximity prompt to trigger it

	camera.CameraType = Enum.CameraType.Scriptable
		game.TweenService:Create(camera, TweenInfo.new(tweentime, Enum.EasingStyle.Sine, Enum.EasingDirection.Out,0,false,0), {CFrame = endCFrame}):Play()
		wait(tweentime+debouncetime)

The camera doesn’t face on the NPC even tho the indicator show its facing it