Script: game.ReplicatedStorage:WaitForChild("Cutscene1").OnClientEvent:Connect(function() if script.Done.Value == false then script.Done.Value = true
local camera = game.Workspace.CurrentCamera camera.CameraType = "Scriptable" camera:Interpolate(game.Workspace.Part1.CFrame, game.Workspace.Part2.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.Part2.CFrame, game.Workspace.Part3.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.Part3.CFrame, game.Workspace.Part4.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.Part4.CFrame, game.Workspace.Part5.CFrame, 2) wait(2) camera:Interpolate(game.Workspace.Part5.CFrame, game.Workspace.Part6.CFrame, 2) wait(2) camera.CameraType = "Custom" end end)
Cant find Part1 in workspace when it is there
You need to wait for the part to load in. The scripts run instantly therefore use :WaitForChild()
local part 1 = game.Workspace:WaitForChild("Part1")
You could do it without making a variable.
local camera = game.Workspace.CurrentCamera camera.CameraType = "Scriptable" camera:Interpolate(game.Workspace:WaitForChild("Part1").CFrame, game.Workspace:WaitForChild("Part2").CFrame, 2) wait(2) camera:Interpolate(game.Workspace:WaitForChild("Part2").CFrame, game.Workspace:WaitForChild("Part3").CFrame, 2) wait(2) camera:Interpolate(game.Workspace:WaitForChild("Part3").CFrame, game.Workspace:WaitForChild("Part4").CFrame, 2) wait(2) camera:Interpolate(game.Workspace:WaitForChild("Part4").CFrame, game.Workspace:WaitForChild("Part5").CFrame, 2) wait(2) camera:Interpolate(game.Workspace:WaitForChild("Part5").CFrame, game.Workspace:WaitForChild("Part6").CFrame, 2) wait(2) camera.CameraType = "Custom" end end)