Clone presets or recreate them from scratch?

Hello,

I’ve been making a game and wondering: is it more efficient to make presets for certain things you will have to duplicate a lot throughout your game or recreate them from scratch using a script? Personally, I want all my scripts to have good optimization and overall work somewhat flawless. I have the suspicion that recreating each asset from scratch, like particles, etc., will slow the server down or make the assets not load in on time when using, for example, decals.

I appreciate all the help! Have a wonderful day.

What I usually do is create them in the script and then clone them as needed, so that I am not depending on some item existing in ServerStorage but is this the optimal way? I do not know. If the number of properties you change from the default is low, simply creating them when needed is probably faster. But for a large number of properties you need to change from the default, Clone() might be faster.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.