Why won't the For Each Loop work inside my Function Library

Hey Thank you Lukewade2!

I found this question when I search for my problem, I have a variable in struct, and I can see it exist when I look directly to the blueprint when I press f8, but my function cannot find that variable for each loop! Thank to you if I drag them all from the function and paste in event graph it works!