Help on this overflow

Getting this:
image
Through this:
image

Any ideas on how to fix it?

3 Likes

it works in studio but not ingame

2 Likes

You are calling the function again in the loop, which will call itself again and so on

2 Likes

the function getMap() is being called in the for loop repeatedly*

i didn’t realize it but… why are you calling it like that?

2 Likes

Not a loop but I think this might be the problem
image

1 Like

are you sure it isn’t where you return getmap() constantly in the original code provided?

3 Likes

Okay okay I changed it and it works now.