I’m making a 3D imager and I need some help

Hello! I’ve been making a 3D script that plugs into a ray caster the draws the rays. But my script has a bug I don’t really know how to fix without rewriting the entire script.

Here’s the link to the project Snap! Build Your Own Blocks

Here’s the script:

Here’s the block:

I’m not sure, maybe check that MAP X or MAP Y are valid list ranges:

untitled script pic - 2026-03-04T204717.980

Fixed it!


It needed “max” blocks