I'm trying to make my camera's FOV go backwards using for loops, but it seems that I can't make it go backwards. I'm trying to make the FOV go from 60 to 50, but I don't know how you can do that. I'm pretty new to for loops, as I have learned about how to use them about 2 weeks ago. Here is my script:
script.Parent.Equipped:Connect(function(mouse) mouse.Button2Down:Connect(function() local cam = workspace.CurrentCamera for f = 60, 50, 1 do cam.FieldOfView = f wait() end end) end)
Instead of 1, you would use -1!
script.Parent.Equipped:Connect(function(mouse) mouse.Button2Down:Connect(function() local cam = workspace.CurrentCamera for f = 60, 50, -1 do cam.FieldOfView = f wait() end end) end)