Studio is crashing when I try to :ReadVoxels()

Hello everyone!

I am trying to do a 2D terrain generation script, and, to get a matrix of what the coordinates I want to use for randomization, I was planning on making some maps with blocks, generating terrain on top of said blocks, and read the voxels.

When I run the game, however, my studio crashes. I do not think this is a hardware problem, as my PC is pretty decent, and so I am confused as to what is causing this issue.

Place file:
terrain.rbxl (36.5 KB)

Thanks for reading!