[Out of registers when trying to allocate 4 registers: exceeded limit 255] is the error I am getting.
This is for a personal practice project of mine. I am designing a program in visual studio that converts an image into a script, which recreates that image with frames. Here is the script my program creates.
I think I might of spotted a typo. Gonna see if that was the problem. If so, I’m dumb lol. Thought the error was something to do with Instance.new being called too many times.
Edit: Nope, was not problem. Wasn’t sure how that didn’t cause an error in the first place though. Weird…
Wait there is a problem. I need to create a new frame for every pixel in the image… I don’t see how I can dynamically change the position and color when it’s in a for loop like posted above.
If the positions just make a shape you can use math to get rid of that issue or use a UIGridLayout and number the order they go in based off the key of the main array; however, the gridlayout can mess up the image.