StephenD420:
yea but I have no idea why when I connect the potentiometer to the 5v pin the Arduino shuts off. I got my Arduino already put together from SainSmart.
Get a multimeter and measure the resistances. See if they're what they're supposed to be. You should have 10k between the two outside pins (which are the ones you connect to +5V and ground).