Scales are used when soloing, all you have to do is learn two or three of them,and then play them until you´ve memorized it!!
When soloing, you can play any note of the scale and in one way or another, it will fit, so, i suggest, you learn for example: Minor Pentatonic.
Once you know the scale by heart, start playing with it, try to mix the scale and play the notes in different order....
NOW YOU´RE SOLOING!!!!
Remember, this is not everything... but the beggining!!!