How to fix 557 is not a valid folder

how to fix 557 is not a valid folder , i made a camera script there.

local camera = game.Workspace.CurrentCamera

local player = game:GetService("Players").LocalPlayer
local rootpart = player.Character

local camers = script.Camera

for camerass=1, #camers:GetChildren() do
	camera.CFrame = rootpart.HumanoidRootPart.CFrame * (camers[camerass].Value)
end	 

image

for camerass=0, #camers:GetChildren() - 1

Because you start counting from 0.

so how should i change the script to make it work? idk why my camera is not working

Try this

local camera = workspace.CurrentCamera

local player = game:GetService("Players").LocalPlayer
local rootpart = player.Character or player.CharacterAdded:Wait()

local camers = script.Camera

for _, camerass in pairs(camers:GetChildren()) do
	camera.CFrame = rootpart:GetPivot() * camerass.Value
end