<P> While Lockdown's large prison spacecraft hovers over Chicago to hand over the Seed, Cade, Shane, and the Autobots use this opportunity to sneak on board and rescue Optimus and Tessa . They hijack a smaller ship, containing a number of other Autobots called the Dinobots, just before Lockdown leaves Earth . The Autobots reveal to Cade that Galvatron is, in fact, Megatron, who gave K.S.I. the data to build the Transformer drones so that he could transfer his consciousness into the Galvatron drone, after K.S.I. officials unknowingly revived him, and is plotting to use the Seed and the K.S.I. drones to conquer the world by detonating the Seed in Hong Kong, as K.S.I. has brought it there to use it in the remote Mongolian desert to create vast amounts of usable Transformium . Cade contacts Joshua to inform him of Megatron's presence, causing him to have a change of heart and agreeing to hand over the Seed with help from Darcy and his Chinese business associate Su Yueming . Meanwhile, Lockdown finds out about Optimus's escape with the Dinobots and returns to Earth to retrieve them . </P> <P> Optimus decides the Autobots should no longer help humans since they revived Megatron, but Cade convinces Optimus to not lose faith in them . Back at the facility, Galvatron reactivates himself and takes control of the K.S.I. drones . A battle breaks out in Hong Kong's streets between Cade's group, the Autobots, Cemetery Wind, Galvatron, and his drones . During the fight, Optimus forms an alliance with the Dinobots, while Bumblebee kills Stinger . Lockdown returns to recapture Optimus and the Dinobots, first by using a large magnet in his ship that picks up and drops metal objects, causing destruction to the city . After disabling the magnet, Optimus fights Lockdown at an abandoned factory . In the ensuing duel, Optimus kills Attinger (who still believes all Transformers are a threat) to save Cade before being impaled with his own sword by Lockdown . Cade and Bumblebee fight Lockdown while Tessa and Shane use a tow truck to free Optimus, who kills Lockdown before using one of his grenades to finish off the remaining drones . Now the only surviving drone, Galvatron retreats, vowing to return . </P> <P> As Lockdown's ship leaves Earth, Optimus tells the Autobots to protect the Yeagers and lets the Dinobots go . Joshua also offers to help the Yeagers build a new home . Optimus then flies away into space with the Seed to hide it away, while sending a message to the Creators that he is coming for them . </P> <Ul> <Li> Mark Wahlberg as Cade Yeager A single father and struggling inventor . </Li> <Li> Stanley Tucci as Joshua Joyce The ambitiously arrogant head of KSI who wants to build his own Transformers . </Li> <Li> Kelsey Grammer as Harold Attinger A paranoid CIA operative and government official who created the CIA black - ops unit, Cemetery Wind to eliminate all Transformers, Autobot or Decepticon, from Earth . </Li> <Li> Nicola Peltz as Tessa Yeager Cade's daughter who is secretly dating Shane . </Li> <Li> Jack Reynor as Shane Dyson Tessa's boyfriend and an Irish rally car driver . </Li> <Li> Titus Welliver as James Savoy A ruthless CIA Agent and second - in command of the Cemetery Wind working for Attinger . </Li> <Li> Sophia Myles as Darcy Tirrel Joshua's geologist assistant and ex-girlfriend . </Li> <Li> Li Bingbing as Su Yueming (苏月明 Sū Yuèmíng) The owner of the Chinese factory used by KSI to build their artificial Transformers . </Li> <Li> T.J. Miller as Lucas Flannery Cade's best friend and a mechanic . </Li> <Li> James Bachman as Gill Wembley A scientist working with Joshua Joyce at KSI . </Li> <Li> Thomas Lennon as the Chief of Staff . </Li> </Ul>

What happens at the end of transformers age of extinction
find me the text answering this question