Camera Help please

local i = 0
local ti 
local cti 
local l = {}
local c = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
local c = workspace.CurrentCamera
c.CameraType = Enum.CameraType.Fixed
c.CFrame = CFrame.new(Vector3.new(100, -35.8367958, 1005),Vector3.new(0, -35.8367958, 1005))
while true do
	if i == 0 then
		cti = tick()
	end
	ti = tick()
	i += 1
	local p = Instance.new("Part")
	p.Position = Vector3.new(0,math.sin(math.rad(i)) * 100,i * 5)
	p.Color = Color3.fromHSV((tick() * 100 % 255),1,0.5)
	p.Anchored = true
	p.Material = Enum.Material.Neon
	p.Parent = workspace
	table.insert(l,p)
	if cti + 10  < ti then
		break
	end
	game["Run Service"].Heartbeat:Wait()
end
print(l[math.floor(#l/2)].Position)
game:GetService("TweenService"):Create(script.Parent.TextLabel,TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0),{
	TextTransparency = 0
}):Play()
wait(2)
game:GetService("TweenService"):Create(script.Parent.TextButton,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0),{
	TextTransparency = 0,
	BackgroundTransparency = 0
}):Play()
script.Parent.TextButton.MouseButton1Click:Connect(function()
	workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
	for i,v in pairs(l) do
		v:Destroy()
	end
	script.Parent:Destroy()
end)

everything works except the cameras CFrame doesn’t change to what I want it too be, no errors.

Change the camera type from fixed to scriptable.

Its not changing because the camera type needs to be scriptable

I already tried that. random stuff so it lets me type.

Try adding in the script c.CameraType = Scriptable

That would fail, it needs to be Enum.CamereType.Scriptable or “Scriptable”
but, I’ve already tried doing that, no different result.

already tried :confused: :heart: :pleading_face: