Supernatural-mystery filmmaker M. Night Shyamalan is venturing into comedy with an animated television series.

Variety reports Fox has purchased a script for "Eleven Little Indians" from Shyamalan and "Family Guy" writer Alex Carter. The project will revolve around three branches of a large Indian family who are at very different stages in their lives: One is a successful example of the American dream, another is comprised of impressionable newcomers to the United States, and the third seems to be falling apart.

RELATED: M. Night Shyamalan's "Tales from the Crypt" Receives 10-Episode Order From TNT

Shyamalan is primarily known for his films with twist endings, including "The Sixth Sense," "Signs," and "Unbreakable," although he has been active in television for the past couple of years. He's an executive producer for Fox's summer thriller series "Wayward Pines," and will produce TNT's upcoming "Tails from the Crypt" remake as well as curate the cable network's 2017 horror block of programming.

Although "Eleven Little Indians" would technically mark Shyamalan's first foray into comedy, Variety points out one of his early screenplays was the family comedy "Stuart Little."

Carter is already working with Fox as the writer of the John Krasinski-produced family comedy "My Bad Parent."

Shyamalan's Blinding Edge Pictures will produce "Eleven Little Indians" with Shyamalan, Carter and Blinding Edge's Ashwin Rajan at the helm.