What Does The Second Argument Of FindPartsInRegion3 Mean?

Hello Developers! :wave:

I understand how Region3 works and all. But what’s really confusing me is the second argument of :FindPartsInRegion3 ignore. What does it mean by “ignore”? Any Help is Appreciated! :slightly_smiling_face:

ScreenShot:

Note: I didn’t use the third argument of the function because it was optional

The second argument is an instance (and its descendants) that will be ignored by the Region3 check. This means that if that instance (or any of its descendants) are inside the Region3 when you check it, it will ignore those parts and it will not insert them in the array that Region3 returns.

1 Like

Pretty sure it can also hold a table, can it not?

No, the parameter is an instance so you need to pass an instance.

Ah, you’re right, I was thinking of Instance:FindPartsInRegion3WithIgnoreList()

What a ridiculously long name lol

Cool, that made me understand better. But what’s the point of that argument and why can’t I just type nil instead. The script just works fine.

Well, you don’t really need to pass anything if you want it to be nil initially.

1 Like