The Infinite Tsukuyomi does not affect Hashirama, Tobirama, Hiruzen and Minato because they are reanimated. Hagoromo, the Sage of the Six Paths, appears and explains to the four that Hashirama and Madara are the reincarnations of his sons Ashura and Indra. Hagoromo recounts the tale of how he founded Ninshu, the Ninja Creed, and about the lives of Ashura and Indra.
And Kaguya, the one who's
fighting right now, is my mother.
وكاغويا، الامرأة التي تقاتل الآن هي والدتي
Und Kaguya, gegen die die beiden
derzeit kämpfen, ist meine Mutter.
Y ahora, pelean contra Kaguya,
que es mi madre.
Y ahora, pelean contra Kaguya,
que es mi madre.
E Kaguya, colei che state combattendo, è mia madre.
E a mulher que estão lutando agora,
 a Kaguya, é minha mãe.