Hey, i would like to optimise my game and then i found this thread
Does this also count for when creating decals, meshes, sounds and welds ? ?
thats what i mostly use with instance.new()
i wasnt able to find it in the orginal post only abou the valuves that someone tried it with intvalue and string and seems like there wasnt issues however what about decals and meshes
i mean i have a gun script and if you shoot a player really often it creates everytime decals using instance.new() to make blood patterns on the player
That’s 1 case. Another case where you can use the second argument is when you are parenting it to part which either itself doesn’t have a parent or the has an ancestor that doesn’t have a parent (other than game), this is because you will still just be changing bytes inside the memory.
Long storys short meaning ive removed the second argument if there was one and then set it last to parent and also if a CFrame wasnt determined i used CFrame.new() and if a size wasnt determined i also did Vector3.new()