So basically, I was making a field of view changer that is smooth, and I made it using repeat wait(). Whenever I go test it, it goes over the targeted value and it won’t stop!
I’ve tested this script on my own and it doesn’t work for me too. I printed the values in the output, and noticed that sometimes floats (decimal numbers) will appear and it’s not an integer anymore. Your computer tries to return approximate values at a point because of floating point imprecision. The solution would be to use the >= operator instead of the assigned to operator ==