(CNN) The company behind "Sesame Street" has lost its lawsuit against the makers of Melissa McCarthy's upcoming raunchy comedy, "The Happytime Murders," for referencing the popular kids show in its marketing campaign.

A New York judge ruled Wednesday that Sesame Workshop failed to demonstrate the movie's marketing tagline -- "No Sesame. All Street." -- might confuse moviegoers.

The R-rated film follows "two clashing detectives" -- Melissa McCarthy and her partner, a puppet named Phil Phillips -- in Los Angeles as they work together "to solve the brutal murders of the former cast of a beloved classic puppet television show," according to its website

Sesame Workship, the educational organization behind "Sesame Street," had sued over the tagline, which is used in the film's marketing campaign, including its trailer.

She's flesh. He's felt. Both are out for justice in #HappyTimeMurders. pic.twitter.com/yJgSnBEWo9 — Happytime Murders (@HappytimeMovie) May 23, 2018

The lawsuit argued that STX Entertainment does not have the right to use "Sesame Street" in its tagline.

Read More