Can somebody tell me why my code quit working for no reason?

I have this code that is a rudimentary construction over time. And for some reason it has quit working. I’m not sure when it did cause I’ve been working on other things, but nothing I’ve changed should have anything to do with this. (Skyspheres and clouds, moon and such.) So basically I click a hud button to spawn a building that follows the cursor that is the “display mesh” after you click to place the building it will then switch to the 25% complete mesh and slowly tick up to the 100% mesh switching when necessary. It was working fine a while ago changed nothing around with this code and now it doesn’t work for some reason.

Just realized I didn’t actually say what it’s doing wrong. It’s placing the building but only the display mesh and not cycling through it’s code at all now.

so how exactly is it not working? meaning what is it meant to be doing but isnt. you explain what the script is meant to do but never actually say what its not doing.

Oof, my bad so. It’s just placing the display mesh and not even going through it’s code now. Where a before it would cycle through them all as time passes.