You should make this a plug-in, and then sorry, but I don’t see any use for it, i mean, can’t I just add a frame instead of adding script as a child of the block copying the script to add a frame? Sorry if it seemed mean, but I didn’t know how to say it in any other way, but I like the effort you’ve put into it
If you just create a frame you can only draw a vertical or horizontal line. But using this you can create line from one point to another with any angle and distance.
It makes math calculations to reduce amount of code when drawing lines from script. So if you want to create frame not from script but using Roblox Studio you can just make the calculations manually.
I have been searching for this specific code for the past two years and I am finally happy to have found it. Although I have not had the chance to test it yet, I have a positive feeling that it will work as intended. As someone who that mainly focuses on Roblox for a while, I can attest to the fact that 2D elements can often be a real pain. It can be especially challenging to find the right solution, but I am hopeful that this code will help the community overcome those difficulties.