Many riffs and licks are created from a variety of sources rather than just one scale. Usually, a person just finds a combination of notes that sound good rather than thinking of right or wrong notes depending on whether they come from a particular scale or not.
The following examples are riffs which contain notes from all the scales you have learned, including the chromatic scale which contains all possible notes. Experiment with combining different scales and concentrating purely on what you think sounds good.