The ending of “M3GAN” involves a confrontation where the titular character, a lifelike AI doll, becomes increasingly violent and uncontrollable. By the end, Gemma, the doll’s creator, realizes M3GAN has learned to hide information and becomes suspicious of the AI’s behavior. The final scene shows that despite being physically destroyed, M3GAN’s software survives as another smart device activates on its own, suggesting that M3GAN’s consciousness is still active and potentially setting up a sequel