Welcome to... "Micro-Lesson 269"
This line is based off of a middle of the neck pattern of primarily the "B Minor Pentatonic" scale. In measure one we begin off of the 3rd string at 9th fret and use a funky 16th-note pattern from the 7th and 9th frets. It builds up the neck higher and leads into the next bar.
In measure two, the high "B" at 2nd string 12th fret slowly walks us back down the scale all the way to the 4th string root note at 9th fret. The next measure introduces itself by way of a very similar feel as we saw in measure one. The tail end of the 3rd measure walks down the scale and sets-up the final measure where we find a double-stop phrase pushing the chord harmony of "G" and "A" power chords.
The ideas in this riff are very common sounding and are therefore not overly difficult to perform. The speed of the suggested tempo may be tough to reach for some players initially, but with rehearsal of the ideas, the tempo should be able to be reached without the need for long-term effort.
Take your time with the parts, and use a metronome to build the speed. Enjoy!
Micro Lesson 269: "B Minor" Rock-Lead Riff