Tyler Perry’s new comedy has beaten Tom Cruise’s latest Jack Reacher movie to the top of the US box office.
Boo! A Madea Halloween, which Perry directed, wrote, co-produced and stars in, took $27.6m (£22.6m) on its opening weekend.
Jack Reacher: Never Go Back, the second film in the franchise, debuted at number two with $23m (£18.8m).
Last week’s number one, The Accountant, dropped to number four after taking a further $14m (£11.4m).
The crime drama stars Anna Kendrick and Ben Affleck and tells the story of a man who uses his accountancy office as a front for his work for criminal organisations.
Supernatural horror film Ouija: Origin of Evil, a prequel to 2014 film Ouija, took $14.1m (£11.5m) to debut in third place.
The Girl on the Train, starring Emily Blunt, rounded off the top five, taking $7.3m (£6m) on its third weekend of release.
Further down the top 10, Keeping Up With the Joneses launched with a relatively disappointing $5.6m (£4.6m), landing at number seven.
The comedy, which stars Isla Fisher, Gal Gadot and Jon Hamm, received poor review from critics.
Coming-of-age drama Moonlight took $415,000 on its first weekend of release despite showing in only four cinemas – an strong result for a film with no big stars and a fairly unknown director, Barry Jenkins.
ComScore senior media analyst Paul Dergarabedian said the film, which will expand to further theatres in the coming weeks, “is going to be on everyone’s Oscar radar now”.