Hey, I’m currently writing a script to insert in a model into my workspace from my replicated storage.
For the sake of simplification, say I have an array of 1000 baseparts that I am inserting into my workspace one by one. This ends up lagging the server so I decided to add a “wait()” inside the array’s insertion loop. This did solve the lag dilemma but it takes a ridiculous amount of time to load the parts in.
A solution I’ve come up with is to “wait()” on a 50 part insertion increment but I was wondering if there was a more efficient way to “load” all the parts.
Any advice is helpful, thanks.