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)

4 comments
change 1 to -1, simple as that :D
To explain it, the first number will always be the starting number, the second number will always be the end goal, and the third number is always the increment it counts by
Beat me to it
@mybituploads lol yeah but you got an answer so he can still accept it, just make sure to add an explanation in case he only reads the answer