These parts do nothing
The first time around your loop, you set your valid bool to false, even though it did spawn ok. Then the loop doesn’t spawn any more.
What are you trying to do exactly?