local replicated = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local ImpParts = workspace:WaitForChild("ImportantParts")
local ClientEvents = replicated:WaitForChild("ClientEvents")
local Gui = replicated:WaitForChild("Gui")
local ServerEvents = replicated:WaitForChild("ServerEvents")
local Values = replicated:WaitForChild("Values")
wait()
local Cam = workspace.CurrentCamera
Cam.CameraType = Enum.CameraType.Scriptable
local D1 = ImpParts:WaitForChild("CameraD1")
local D2 = ImpParts:WaitForChild("CameraD2")
local D3 = ImpParts:WaitForChild("CameraD3")
local D4 = ImpParts:WaitForChild("CameraD4")
local Spawn = ImpParts:WaitForChild("Spawn1")
Cam.CoordinateFrame = CFrame.new(D1.Position)
Cam.Focus = CFrame.new(Spawn.Position)
this wont return any errors and its in a local script(fe is on)

4 comments
didnt work
strange... did you try the other option, that I gave below? btw, are you sure the paths are ok?
yea btw check line 15;) and what do you mean with the path being ok?
like path to an object. for example instead of putting game.Workspace.Tool putting game.Workspace.Part.Tool (when the path to an object is wrong)