If you've followed my last few lessons, you have linked different scales to famous bass lines:
11 Amazing Famous Bass Lines (Natural Minor)
9 Amazing Bass Lines (That Use Major Pentatonic)
Learn 11 Amazing MAJOR SCALE Bass Lines
Learn 11 Amazing Bass Lines (Minor Pentatonic)
8 Incredible Bass Riffs You NEED To Know (Mixolydian)
Once you link a sound (and that's all a scale is) to a piece of music you know, you understand how to hear that scale. Creating bass lines in that style becomes easier too.
This week, it's one of my favourites - the Dorian mode!
One Octave Dorian Mode
Here's a one octave Dorian mode. Notice the interval structure. Learn that inside out and figure it out in different parts of the bass.
By the way, this mode is used a lot in funk music. If you love funk then you'd learn a lot from my Funk Bass course.

Best online bass teacher
Thanks so much, Nick!