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 when we found a place
in those areas
،وعندما وجدنا مكانًا في تلك المناطق حيث بإمكننا أن نُحرّر البيجو
Und wenn wir irgendwo einen Ort fanden,
an dem wir einen Bijuu freilassen könnten,
Y entre tanto, encontré lugares
donde liberar a los Bijuu,
Y por el camino, encontré lugares
donde liberar a los Bijuu,
E quando trovammo un luogo adeguato
 ad accogliere un cercotero,
E quando encontrávamos 
um lugar nessas áreas