Complex sentence: Maui in return is granted a new hook and flies off to meet with his villagers, not before saying goodbye to Moana and thanking her for all she has done.
Split into simpler sentences: Maui in return is granted a new hook and flies off to meet with his villagers. Before leaving, Maui says goodbye to Moana thanking her for all she has done.