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

How To Make A Click To Zoom Script? Zoom Not Working

Asked by 4 years ago

Like The Title, I Am Making A Click To Zoom Script And It Does Not Work, Can Someone Help Me?

c = workspace.Camera
c.CameraType = "Scriptable"
script.Parent.Equipped:connect(function(mouse)
mouse.Button2Down:connect(function()
    Zoom = 20
    c.FieldOfView = Zoom
end)
mouse.Button2Up:connect(function()
    Zoom = 70
    c.FieldOfView = Zoom
end)
end)

1 answer

Log in to vote
1
Answered by 4 years ago

LocalScript

c = workspace.CurrentCamera
0
Thx Dude ricelicker 52 — 4y
Ad

Answer this question