Today i decided to open-source of this Greedy Mesh module; a powerful resource that allows to improve performance by reducing the part count with a bit of math. This is mainly used for procedural generation, because in this process a lot of unnecessary parts are created resulting in frame drops and overall lag. However this can be used in others scenarios.
Instruction
1 : Insert the module in “Replicated Storage”.
2 : Add a script in “ServerScriptService” and type:
module.new(targetFolder, outputFolderName)
targetFolder = The folder that you want to greedy mesh: can also be a model i guess.
outputFolderName = Optional, the name of the folder the result of the greedy mesh will be parented to.
Everyone thanks for the feedbacks! I fixed every major bug. Now the module is fully working. Also if the color of parts is random, don’t worry: go to the line 157 and change v.BrickColor to any color you want.