I have a game, which requires lots of objects being cloned in and out of the game. I am very conscious of untracked-memory and optimisation techniques and was curious.
I was looking at this post earlier PSA: Don't use Instance.new() with parent argument and was wondering if this has the same effect? Which would be most efficient and possibly load the fastest?
1.
do
local Obj = replicatedstorage.Obj:Clone()
Obj.Parent = workspace
end
OR 2.
replicatedstorage.Obj:Clone().Parent = workspace
In my older games i used clone().parent = x, alot in fear of creating untracked memory due to assigning the cloned object as a variable.
Thank you!