Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

LocalScript

c = workspace.CurrentCamera

1 comment

0

Thx Dude

This discussion is preserved as it was. New answers, comments, and votes are closed.