LOS ANGELES (CNS) — The new kids’ movie “The Bad Guys” opened atop the box office this weekend, grossing $24 million at North American theaters, according to industry estimates released Sunday.

The DreamWorks animated film, based on a series of children’s books about a group of lawbreaking animals who attempt to reform, beat out another children’s movie, “Sonic the Hedgehog 2,” which made $15.2 million in its third weekend in theaters, Comscore reported.

“Fantastic Beasts: The Secrets of Dumbledore” was third, with $14 million Friday through Sunday, one week after opening in first place.

The Viking epic “The Northman” opened in fourth place with $12 million, ahead of the Nicolas Cage action/comedy “The Unbearable Weight of Massive Talent,” which opened with $7.1 million.

Rounding out the top 10 domestic releases, as estimated by Comscore, were “Everything Everywhere All at Once” ($5.4 million), “The Lost City” ($4.3 million), “Father Stu” ($3.3 million), “Morbius” ($2.2 million) and “Ambulance” ($1.8 million).