Simplest things first. Have you tried lubing the cable? Is the mounts loose? Does it follow the bike speed or the engine rpm? Bike speed speedo an associated parts. Engine rpm something else entirely. Go back and recheck all bolts and other parts that you removed or messed with, maybe something is loose.
Hope this helps. and good luck
Live to Ride, Ride to Live, Work to support Life