The script NEVER misses the 5. Not unless you increment the variable with 2 instead of 1.
like i said, my script increased the variable to a 5, i had a flood protection script to work when it became a 5 and it missed it, there were no errors in the script because the exact same code worked a couple of hours later. (i think it was lag)