At a young age, Flint Lockwood (Bill Hader) has always wanted to invent something awesome; however, every one of his inventions fell into disaster, such as the Remote Control Television, Hair Un-Balder, The Flying Car, Ratbird hybrids, and his Spray-On Shoes that are trapped in his feet in a solid sealant for life. He grew up misunderstood by his father Tim (James Caan). His mother, Fran (Lauren Graham), always believed he could succeed, however she passed away 10 years before the story, leaving Flint with his father. Flint lives in Swallow Falls, a town located on an island under the "A" in Atlantic. Since the Baby Brent Sardine cannery closed down, the economy fell and left Swallow Falls with sardines as their one and only source of food. Flint, along with the assistance of his pet monkey, Steve (Neil Patrick Harris), who speaks through a thought translator invents a machine that uses microwave radiation to mutate water into food. The machine requires a lot of electricity to work, so Flint sneaks out of his father's tackle shop while he's watching Mayor Shelbourne (Bruce Campbell) and "Baby" Brent McHale (Andy Samberg) unveiling a new tourist attraction, Sardine Land. Flint goes to the power plant and hooks up the machine. The machine absorbs millions of megawatts of electricity and ends up rocketing through town and shooting up into the stratosphere, destroying Sardine Land. While sulking at the docks over his failure, he meets Samantha Sparks (Anna Faris), a weather intern for the Weather News Network in New York whose big break was foiled by Flint's actions while reporting the events about Sardine Land. The two witness purple clouds floating over the town that rains cheeseburgers, much to everyone's surprise and joy.Realizing his achievement, Flint invents a communication device to send orders to the machine which is resting in the stratosphere. He starts working for Mayor Shelbourne, and Sam broadcasts Swallow Falls (now renamed Chewandswallow) attracting tourists. Everyone is going well until Tim fails to show appreciation for his son, and worst of all, more and more people (including the Mayor) start greedily requesting food for Flint to rain. The more food that is ordered will require more clouds for the machine to collect and make the food. Flint notices that the food is beginning to rain in massive quantities, but the Mayor sees it as a better outcome, and Flint is forced to agree. He orders spaghetti and meatballs for the grand re-opening ceremony. The next day citizens and worldly tourists crowd Chewandswallow and cheer on Flint who cuts the ribbon. Suddenly, a large destructive tornado formed of spaghetti threatens the town. Flint rushes to the lab to turn the machine off, but finds the Mayor ordering a Vegas-style-all-you-can-eat buffet. Flint attempts to send a kill code behind the order to stop the machine; however, the Mayor destroys the communication device.A massive food storm threatens the world and Flint loses hope. However, his father encourages him to fix the mess and hands him his lab coat that he lost in the recent disaster. Flint gains confidence and places the kill code in a USB drive and invents the Flying Car 2. Flint, Sam, her cameraman, Manny (Benjamin Bratt), and Brent set out to save the world while the citizens and remaining tourists work together to escape Chewandswallow. Entering the stratosphere, they find that the machine is the sole core of a giant meatball and that it is aware of the heroes so it sends sentient food to attack them. In the chaos, Flint loses the kill code. Flint calls his father who instructs him to enter his lab and send the kill code to his cell phone. Flint, Sam, and Brent enter the meatball but Flint is forced to carry on to the machine solo since Brent must fight off sentient roasted chickens and Sam faces an alergic reaction to peanut brittle. Meanwhile in Chewandswallow, the Mayor arrogantly escapes, and while the citizens and tourists escape on boats made of peanut butter and jelly sandwiches, Mt. Leftovers collapses and destroys the entire town. The avalanche covers Flint's Lab with Tim still trying to send Flint the kill code. However he survives and he successfully clicks send. Flint encounters the machine and jams the phone into the USB port. However, Tim had sent him the wrong document, but Flint still triumphs as he sprays his Spray-On Shoes formula into the food extraction hole, destroying it. Sam and Brent escape the meatball before it explodes. They return to Chewandswallow (now covered in nothing but food). Flint returns safe and alive carried by his Ratbirds. Tim finally shows his appreciation for Flint and the film ends with Flint and Sam embracing with their first kiss.