Sully came up with the original melody for "I Don't Do Drugs" when he was at a ramen shop with some friends. The whole time he was eating ramen, Sully was singing the melody in his head. "That's how I usually work, I'll hear a full melody or full beat in my head, then it's just a matter of let's lay it down as accurately as I heard it," he told Genius
. "Sometimes it's frustrating because I can't get it to that specific sound but generally, I'm able to figure it out."
Sully sent his melody idea to his friend Y2K, who was working on Planet Her
. When Y2K returned Sully a version with Doja's hook on it, the beatmaker was immediately struck by her concept. Sully commented: "It's unique in the sense that everybody is so on drugs that she's like, 'I'm off drugs but I need your love.' I love that concept."