Supernatural horror guru M. Night Shyamalan is taking a stab at comedy.

Fox has bought a script for “Eleven Little Indians,” an animated comedy series, hailing from Shyamalan and scribe Alex Carter, a writer/producer from “Family Guy,” Variety has learned exclusively.

“Eleven Little Indians” examines three branches of a large Indian family — one has achieved the American dream; another has just arrived in the U.S. wide-eyed; and the third has gone off the rails.

Both Shyamalan and Carter will serve as executive producers, along with Ashwin Rajan, who run’s Shyamalan’s Blinding Edge Pictures. 20th Century Fox Television is the studio.

For Shyamalan, the project marks a break into comedy. Largely known for supernatural films, such as “The Sixth Sense,” “Signs” and “The Village,” one of his first screenplays was the family comedy “Stuart Little.” In more recent years, Shyamalan has turned to television, and “Eleven Little Indians” is his second Fox project, following the network’s summer drama “Wayward Pines” on which he’s an executive producer. He’s also producing TNT’s revamped “Tales From the Crypt” series and is curating the cabler’s upcoming 2017 horror programming block.

For Carter, “Eleven Little Indians” marks his second sale to Fox this development season. Earlier today, Variety broke the news that Carter is penning the script for “My Bad Parent,” a live-action family comedy, hailing from exec producer John Krasinski.

Shyamalan and Carter are both repped by WME.