Linear resistor shuts down the Arduino at the end of the slider.

Thanks. Problem is solved. I had the 1k of course, but I switched over the three cables so no current was going through the resistor. It was just a matter of plugging them in wrong.