Power failures and a secret agreement with billionaires drive the sixth and final episode of “South Park” Season 29, as residents of the town renamed South America demand their electricity back. In the episode’s storyline, “Grand Theft Auto VI” has finally arrived, making the outages particularly unwelcome for people trying to play on their Xboxes and PlayStations.

The disruption revives a conflict introduced in the season’s second episode: local officials have struck a deal allowing a group of billionaires to use the town’s energy for data centers. With residents eager to return to the game after waiting more than a decade, the politicians face pressure over an electricity problem tied to their own arrangement.

An alternative explanation gives the officials a way to deflect responsibility. Angry residents enter City Hall convinced that Chinese cyberattacks are causing the blackouts. Rather than correct them, the politicians endorse the accusation, allowing the townspeople to pursue the idea that a Chinese spy is living among them.

Butters, however, already knows the billionaires are responsible and shares that information with Stan, Kyle and Cartman. Their effort to uncover the truth also involves Kenny, who appears in zombie form after being blown up by an e-bike in the season premiere. His spirit cannot move on until the group exposes the corruption behind the town’s troubles.

Armed with their knowledge of the data centers, the children go to City Hall. The politicians trace the situation back to e-bikes while worrying that the group will reveal their secret deal. Randy, who remains shrunken, then arrives and challenges the explanation for Kenny’s death, arguing that responsibility extends to everyone who helped the town lose its way after its name changed.

Randy’s intervention shifts attention from the immediate cause of Kenny’s death to the community’s conduct. He points to the use of force, the acceptance of bribes and the willingness to ignore wrongdoing as shared failures that followed the transformation of South Park into South America.

The mayor subsequently addresses residents and acknowledges taking bribes, overlooking misconduct and making the agreement with billionaires. Her apology nevertheless includes a defense of building data centers, which she presents as necessary because of a Chinese threat in the artificial intelligence arms race. She says that effort should not alter the town’s identity.

The finale closes with the billionaires helping the town launch Mr. Kim into space, removing him from South America. The ending concludes Season 29 and the show’s first season in which the town has operated under its new name.