Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Problem with Camera script?

Asked by
Relatch 550 Moderation Voter
9 years ago
cam = workspace.CurrentCamera
cam.CameraType = "Scriptable"
focus = Vector3.new(0, 15.8, 0)
zoom = 70
zoomin = true

for i = 1, 200, 1 do
    if zoom == 20 then
        zoomin = false
    end
    if zoomin then
        zoom = zoom - 1 
    else
        zoom = zoom + 1
    end
    cam.FeildOfView = zoom
    pos = focus + Vector3.new(-50 + i/2, 20, -50)
    cam.CoordinateFrame = CFrame.new(pos, focus)
    wait()
end

wait(1)
cam.CameraType = "Custom"

Error: FeildOfView is not a valid member of Camera Script 'Workspace.Script', Line 16

1 answer

Log in to vote
1
Answered by 9 years ago

Lol, it's FieldOfView, not FeildOfView. Just a simple spelling error.

1
Oh, lol. Relatch 550 — 9y
Ad

Answer this question