10 servos, 10 potentiometers, issues

It won't matter what kind of resistance you're using, it will end up reading the same as long as it's a voltage divider (potentiometer).

potvals[x] = map(analogRead(potpins[x]), 0, 1023, 0, 179);

That's got to be inside the loop, replace:
potvals[x] = analogRead(potpins[x]); // remove completely

with:
potvals[x] = map(analogRead(potpins[x]), 0, 1023, 0, 179);

It needs to be the same position. Also, now when you want to write the values to a servo, you can use:

servo0.Write(potvals[0]);
servo1.Write(potvals[1]); // etc.

Hopefully this helps!:slight_smile: