How do I do this?

I got one lick from some blues scale i don't remember.
it went something like this


And I got some form of


Any idea's of how to do this more often?

I only got one lick just one time and others get like 5 licks out of 1 scale or something so I need to know how to do this.
Turtles R awesome. dont agree? YOU GO TO HELL, YOU GO TO HELL AND YOU DIE!

PSN: Purple-munky

Ion - acoustic guitar.
Cort KX1Q - i smashed it
Fender Super Champ XD 15w
Stagg G-310 - i smashed it.
^ get licks from music. music utilizes scales.

try learning some solos. Make the connection between what your playing/hearing & what scales you are utilizing.
shred is gaudy music
Do what Munky says, but if you want pure scale based licks then check out Paul Gilbert - the master at making a decent riff out of a scale 'box'.