In a building based game that I am working on, I need to check surrounding bricks to remove unnecessary textures. I am currently using FindPartsInRegion3WithWhitelist to accomplish this, but with a high quantity of bricks, it is too slow to keep up with what I need. I have been wanting to represent the bricks in arrays to see if it could be a more viable option, but I have run into a problem of not knowing how to implement what I need, pushing dictionaries into an array.
I’ve looked on the wiki and all they don’t have anything on pushing dictionaries into arrays, so I’m not sure if it is even possible. Any response would be helpful.