When the morning starts off with Marge finding remnants of pizza boxes scattered around the living room, she hopes that a bear was the culprit. Instead, Homer's groans lead Marge to find her husband on top of the kitchen table. In nothing but his underwear, Homer receives advice from Marge on his health. Just when Homer seems to be taking Marge's words to heart, he marches upstairs to tell his wife that he will take his health seriously only to fall down the stairs because he's out of shape. Cut to Homer's funeral at the church, where everyone in town grieves for the Simpson patriarch. Suddenly, Professor Frink interrupts the proceedings to announce that he has made a clone of Homer. Frink reasoned that he wanted to start out with a sheep first but decided he wanted to experiment with a simpler subject. Marge warns Homer to take this second chance seriously to which Homer asks if she made potato salad for the wake.
Fast forward to Homer's clone's funeral the next day. The third Homer comes in only to die. The fourth Homer falls into the open grave of the third Homer. The fifth Homer electrocutes himself with the toaster. No one knows what happens to the sixth Homer. The seventh Homer lands in the hospital before pulling the plug on himself when he hears that he can't eat solid foods for two weeks. A montage begins showing Homer wasting new chance after new chance, treating death like it's cheap. At one point even going through a dozen clones just to reach a tub of ice cream on a high shelf only for that Homer to die.Thirty years into the future, the Simpsons mourn another Homer except that this time Frink cannot bring Homer back much to the surprise of the family since Homer used up all of clones from brazen stupidity. Frink did store Homer's memory in a flash drive, which he plugs into a television screen conveniently in the church. When Marge realizes that her husband is just a face on a screen and that he wasted countless other chances, she is fed up with him when Homer asks that she reboot the screen. Marge ejects the flash drive to give to Bart, so that Homer can reside with him.
Bart shows Homer his new digs, an abandoned classroom at Springfield Elementary. As soon as a glum Bart sends his two sons to his ex-wife's house, he needs advice more than ever now. Homer is of no use when the monitor freezes. Working at a Cretaceous Park, a dino amusement park, Bart laments that he misses his kids despite Nelson telling him that he should be happy that he's free. Elsewhere at a zombie soup kitchen, as Lisa feeds the undead with synthetic vegan “brain” food, husband Milhouse comes looking for her. A zombie attacks Milhouse, while Lisa's brother continues to hit the melancholy train with Nelson dragging him to a club. Unable to move on from his ex, Bart sees a targeted billboard telling him to move on using shock therapy that makes him forget about his ex. After the procedure, Bart sleeps with one woman after another, during which time Homer stops freezing up and is back to normal. However, it's his ex wife who still catches Bart's eyes. During one visit, Jenda is in tears revealing to Bart she was a fool for buying her new alien boyfriend, Jerry, a shedding tank he wanted. Only for Jerry to humiliate her by ending their relationship and finding someone else. Bart calms her down by reminding her that her crying reminds him of what he lost and he's really trying to get his life back on track. Jenda is impressed with Bart and invites him for dinner out.
Meanwhile, Lisa and zombie Milhouse are attacked by Jimbo, Kearney and Dolph but Milhouse fights back by using Ralph Wiggum to knock them out and later cooks their brains. Even though Dr. Hibbert can reverse Milhouse, Lisa doesn't want to go through with reversal process because she actually finds the zombified Milhouse more attractive after seeing him attack the bullies because a normal Milhouse would not have had the guts to fight them off. Bart heads to Moe's for a drink. And Lisa has already beat him there. She is drinking away her dilemma of trying to decide whether to make Milhouse human again or not. She even prefers his rotting meat smell. Marge is there too hidden conveniently behind a shrub as tall as her hair on the table. She points out they have no idea what a rough marriage is. They want to know her secret of how she stayed with Homer for so long. She says when you make a decision with your heart, you stick with it. Even Moe is taking care of Duff Man in his old age. Lisa asks if this means she is going to take Homer back. She states that she is in fact going to join him forever…as she electrocutes herself and transfers into the TV screen with him.
Back at Dr. Hibbert’s, Milhouse is now just fine. No zombie left in him whatsoever. Lisa seems quite disappointed by that. To test it out, Dr. Hibbert even waves a juicy brain in front of him causing Milhouse to faint. Back at the house, Bart is explaining to Jenda, on the TV screen, that it just isn't working out. She agrees. That’s why she started to see Jerry again without telling him. Bart is back in the chair at Moving On. Everything he just experienced was just a neural implant she put in his temporal lobe. It was all a dream and now he can go home. He just wants to make sure he is cured. She explains they treat a lot of people with obsessions…like Disco Stu, who is now "Nothing Stu". Bart tells Lisa that in case her and Milhouse don’t work out he knows a place that can help her. He points out Milhouse was cured in his dream, but Lisa reveals that there is no cure for zombie-ism, so things are great. Marge and Homer finally got it right and she is happy with him in his robotic body.