Camera Interpolate doesn't move its position, only aims the target

I want to create a function where the player camera will be moved to position “pos” and the camera will look at position “aim”, but the camera won’t move to “pos”, it only look at “aim” without moving to position “pos”. If I use Camera.Focus, It only moves the camera without looking at “aim”.

Here’s my code:

function moveCam(mcam,Px,Py,Pz,Fx,Fy,Fz)
	local pos =,Py,Pz);
	local aim =,Fy,Fz);
	local temp = TS:Create(camera,,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{
		CFrame =,aim);

I can’t find any topics about this.

What’s wrong with the code and how do I fix it?

Also, don’t forget to make your camera scriptable
If you made your camera scriptable, you have to set the Position and the Orientation.
If you have a part facing something, it will be easier to tween/setting the camera.

Here is my script. Hopefully, it may help you.

local startCFrame = startPart.CFrame
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = startCFrame
local TI =, Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0)
local tweening = tween:Create(camera,TI,{CFrame = endPart.CFrame})