Well there's definitely nothing wrong with the script once it does detect those pixels, so the only area of fault is the color you are trying to detect. For some reason you changed the color code on the rare function, so I'm quite sure if you go back to my code or choose a better pixel, it will stop having problems