My "Intro camera" is bugging

I want to make a Intro camera but it sadly is still kinda bugging and i got no idea why…
This is my current code:

local TweenService = game:GetService("TweenService")

local Camera = workspace.CurrentCamera
local CameraParts = workspace:WaitForChild("CameraParts")
local StartScreen = CameraParts:WaitForChild("StartScreen")

local Continue = false
local CurrentPart = 1

Camera.CameraType = Enum.CameraType.Scriptable
wait(1)
while Continue == false do
	local Part = StartScreen:FindFirstChild(CurrentPart)
	local NextPart = StartScreen:FindFirstChild(CurrentPart + 1)
	if not NextPart then
		CurrentPart = 1
		NextPart = StartScreen:FindFirstChild(CurrentPart)
	end
	
	Camera.CFrame = Part.CFrame

	local Info = TweenInfo.new(
		(Part.Position - NextPart.Position).Magnitude / 15,
		Enum.EasingStyle.Linear,
		Enum.EasingDirection.In
	)
	local Goal = {CFrame = NextPart.CFrame}

	local Tween = TweenService:Create(Camera, Info, Goal)

	Tween:Play()
	Tween.Completed:Wait()

	CurrentPart += 1
end

The camera is basicly just not going smooth and is teleporting…
Thanks four your Help :smiley:

I assume the issue is that the camera is being reset to Custom so try placing
Camera.CameraType = Enum.CameraType.Scriptable after the wait(1) line.

1 Like

how do you even know that lol XD

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.