Most Efficient Way to Instance

So, I’ve recently read this mind-boggling piece of a thread:

And my mind was already blank before I read the comments.

I understand what the comment section was saying, how instancing in different orders can either increase the amount of time or decrease it.

My question is that in what order is the best way to instance? The thread is kind of hard to comprehend, even though I am very experienced with Instances

Explanation
3 Likes

Basically, set the parent of an instance AFTER changing the properties. That’s the most important thing to take away from that thread.

4 Likes

Applying this to a case where I want to make a noncollidable part with a Touched connection:

local part = Instance.new("Part")
part.CanCollide = false
part.Anchored = true
part.Parent = workspace
part.Touched:Connect(touched)
1 Like

thank you @ankurbohra04 @Lightlimn , I guess I was shocked by the sheer amount of things I had to change and didn’t see that(Im gonna cry)