Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the most efficient way to create multiple of the same thing?

What is the most lag resistant and micro-optimization when creating multiple of the same thing? I assume it would be to copy a pre-made version, but it could also be to loop and use instance.new(). Unless there is another way I am unsure of.

1 answer

✓ Accepted answer

If you mean making a copy of an object, then use Instance:Clone().

But if you mean copying code, use a linked-source or a module-script.

3 comments

0

I mean an object, is it better to do instance.new and create the object that way. Or copy a premade

0

Copy a premade if you want it to be faster, than you dont have to set the values and all the engine has to do is create a copy.

0

Thats what I expected.

This discussion is preserved as it was. New answers, comments, and votes are closed.