I came up with this bass line in five minutes. You can do similar if you learn scales and modes, some technique, and how to apply them to different styles of music. Pro tip: that last point is achieved by listening to lots of styles of music and figuring out the best bits (by ear).
I take you through some slap technique plus power chords and strumming in this video lesson: