Arrays Not Keeping Values in different functions

I’m working on a pcg book spawner, using the base code of the “create Point Grid” pcg code. However, I am having a problem getting values in functions. In one function I create an array of all the positions the objects need to be at, I then have a function that reads this data and makes the pcg points. However, it doesn’t look like any of the data from the array is being kept in the other function. Why is this and is there any way to get this working?


The array in question is “Recorded Book Locations”