My young brother, you need to get yourself immersed in some classic blues guitar.
That's all that riff is.
Learn your minor pentatonic scales, your major pentatonic scales, your blues scales and maybe your major and minor diatonic scales. Practice them, over and over and over again.
While you're doing that, keep listening to the kind of licks in the song that you posted, get REALLY familiar with it and then try to hum it out or try to vocalize it.
That will get you used to both the note pitches and the timing of the notes.
If you can, get some headphones on and listen that way. Block out the noise of the world so that you just hear the music. Then try and speak the notes out.