Learning how to solo can be challenging. My approach is to first learn major scales. Then learn how to make small melodic ideas, build on those ideas and develop them. You want to use the notes of the scale but not play it like a scale. There are also many different styles of solos relevant to different styles of music such as Blues, Rock, Jazz, Country, Blue Grass, etc… but most of the time you can rely on using the major scales and developing small ideas over basic chord progressions. So don’t be afraid to experiment, keep working at it and have fun.