In original series, after Madara created Infinite Tsukuyomi, Black Zetsu interfered and summoned Kaguya with the help of the Divine Tree as it planned all along.
The Infinite Tsukuyomi is a genjutsu that traps the entire world in an illusion, enslaving them in a dream so that their chakra may be drawn upon. To cast a genjutsu of this scale, the user's Rinne Sharingan must be reflected off of the moon. The exact method of achieving this varies from user to user: in the original series Kaguya Ōtsutsuki uses Yomotsu Hirasaka to create a portal to a dimension containing a moon; Obito Uchiha produces the Ten-Tails and transforms it into a construct of the God Tree, which has a Rinne Sharingan within the blooming flower at its top; Madara Uchiha, per his Eye of the Moon Plan, flies into the sky and reflects his own Rinne Sharingan off of the moon.
Once cast, the penetrating light of the Infinite Tsukuyomi shines across the world, bright enough to dispel the night for as long as it is active. All those who fall under its gaze are trapped in the genjutsu, with the Rinnegan's design reflecting in their eyes to represent its influence. Victims of the Infinite Tsukuyomi are rendered immobile so long as they are under its effects, allowing them to easily be wrapped by the Divine Tree's roots.
Over the course of years, those connected to the tree in this manner are gradually drained of their life energy, personalities and defining features, reducing them to shells of their former selves and ultimately converting them into White Zetsu, while at the same time, producing a new Chakra Fruit in the process. The user can also draw upon the chakra of those bound to the tree, causing it to erupt from the ground and enter their own body. In the original series, the technique seemed to need perfecting as Kaguya discovered in her first usage: most of those trapped in Infinite Tsukuyomi such as Haori died after being trapped in the genjutsu instead of being converted into White Zetsu.
Certain individuals are immune to the Infinite Tsukuyomi. The dead, such as those brought back with the Impure World Reincarnation are impervious to the Infinite Tsukuyomi. White Zetsu, Black Zetsu, and those whose body Black Zetsu coats are also unaffected. A Rinnegan user can block the light of the Infinite Tsukuyomi, saving themselves and those within their range from its control. In fact, Rinnegan users, through combination with the chakra of the nine tailed beasts, are the only ones capable of ending the Infinite Tsukuyomi and releasing those trapped within its dreams. Should these be possessed by two different people, they must form the rat hand seal together in order to release the technique.
The narrative has been stolen; if detected on Amazon, report the infringement.
I didn't want to use this method and trap every single living being to Divine Tree. But, there weren't many other ways to bring Kaguya out.
"Why are we bringing Kaguya out?" asked Crow.
"Idiot! You are hovering outside at the moment, come back inside or use Telepathy!" Because Crow wasn't used to being outside of my body, he talked to me normally and almost all battlefield heard of him.
"Right, sorry brother, I forget the fact I was outside," he said as he put his wing behind his head made him fall to the ground, creating a cloud of dust.
This brother of mine was truly stupid.
"What were you saying?" I asked as I walked towards to Crow, where he was lying with the shame.
"Why are we bringing Kaguya out?" he asked again, but this time with the telepathy.
"I thought this was all point of this. Bringing out that evil woman and kill her." I asked. Wasn't that the point all along? As long as I could bring her out and kill her, all would be finished.
"Kaguya currently unable to do anything, and the one can cause her revival is Black Zetsu. Black Zetsu created as Kaguya's will just before she has been sealed to the moon. Now all you have to do is, destroy the Black Zetsu and be done with it." Crow said.
"So that is how it is. If I seal Black Zetsu, then there is no way Kaguya can return to this world?" I asked. Earlier I thought I had to bring Kaguya out from the shadows and kill her, but now Crow told me so long as Black Zetsu was dealt with, there was no way Kaguya could return.
"Well, there are some others from the same clan with her, but those are fillers, so I didn't watch them. I mean I don't know. Probably not." Crow said.
What?!
"No worries. Just do as I said, and destroy the Black Zetsu."
How am I going to find that bastard? He can move in the earth as he wishes.
"Did you give the thing to Jon?" asked Crow.
"I did. It has only been a few minutes, can he use it already?" I asked.
"Of course I can! I am awesome!" a boy's voice rang in my ears.
'Very well then. Come out Jon, find me that bastard.' I said as I let Jon out from the Pendant.
Now he had a Sharingan on his right eye. This was the Sharingan I took from the Orochijosei, originally belonged to the Obito Uchiha.
Jon dived through to the ground and I started to wait.
After 15 minutes, Jon came back. He had black blood around his mouth, obviously devoured the bastard.
'Is it done?' I asked. This fella was always hungry.
"Of course. I am awesome! I finished him in mere a second. You should have seen his face when I caught him in the underground..." Jon started to summarize the things. Turned out Black Zetsu heard Crow earlier and decided to hide, and when Jon caught it thousands of meters beneath the ground, it surprised beyond belief. But since it was dead, now there was nothing else for me to worry.
I looked at the Tobirama and took away his eyes from him. Then turned to the Hashirama and Madara, and said "The war is over. You can deal with him however you like." after I said that I flashed to the Itachi's side to tell him the good news.