Variable out of scope in blueprint variable

I have a variable array that’s a blueprint. (The blueprint class has two vector variables) When I loop through that array, I’m trying to access the vector variables in each index. I have a function that returns the vectors. That’s out of scope. So I tried just directly accessing the vectors and that’s also out of scope. Why can’t I get those vectors?

In the first image I’m directly accessing a vector.

In the second image I’m using the function that returns a vector.