Time to get slap-happy! This is a typical slap line in E – you could play it over any funk vamp on a dominant chord (E7, E9, E11, E13). It mostly uses the blues scale, but with a few notes that suggest other scales – you can find some Mixolydian & Dorian modes in there too.
The fill is the trickiest part by far, but as with anything this fast, slow it down! After a while you should see some patterns.
Enjoy, and please don’t forget to have a look at the transcription if you need it! As always, I’ve supplied the backing track too.