Camera reseting to character

so I made an intro screen that is supposed to travel in a circle, but it resets back to the camera back to the character in between tweens.
https://gyazo.com/066f26b8c1012c8e2a38c011e27f59a5

here’s the script.

local count = 1
local inmenu = true

function Next()
	local newspot = camparts:FindFirstChild('Cam' .. count)
	if newspot then
		tweenservice:Create(camera,TI, {CFrame = newspot.CFrame}):Play()
		count += 1
		wait(2)
	else
		count = 1
	end
end

while inmenu == true do
	Next()
end

how can I make the camera tween from CamPart 1, to CamPart 2, and so on, instead of back to the character?

Set the cam.CameraSubject to nil then cam.CameraType to Scriptable
and afterwards change
cam.CameraSubject back to the players humanoid
cam.CameraType to Custom

1 Like

Sorry, Got a bit confused, Where do I do that?

I set the cameratype to scriptable and camerasubject to nil at the start of thet script.

local count = 1
local inmenu = true

function Next()
	local newspot = camparts:FindFirstChild('Cam' .. count)
	if newspot then
		tweenservice:Create(camera,TI, {CFrame = newspot.CFrame}):Play()
		count += 1
		wait(2)
	else
		count = 1
	end
end
cam.CameraType = Enum.CameraType.Scriptable
cam.CameraSubject = nil
while inmenu == true do
	Next()
end
cam.CameraType = Enum.CameraType.Custom
cam.CameraSubject = game.Players.LocalPlayer.Charater.Humanoid