For Each Loop in Function | Construction Script Bug

You need to break the struct from here