FindPartsInRegion supports tables?

FindPartsInRegion filter supports tables?
I want give an array of parts that FindPartsInRegion can’t get, so i’m using tables, but it gives the “Unable to cast to Object”, so what I have to do?

		local filter = {}
		
		for i,v in pairs(game.Workspace:GetDescendants()) do
			if v:IsA("BasePart") and not v:FindFirstChild("Placeable") and not filter[v.Name] then
				table.insert(filter,v);
			end
		end

	      local parts = game:GetService("Workspace"):FindPartsInRegion3(region,filter,1000)

FindPartsInRegion3 doesn’t but this does:

https://developer.roblox.com/en-us/api-reference/function/WorldRoot/FindPartsInRegion3WithIgnoreList

1 Like

thank you, i didn’t know that this function exists.

No problem, you can also find some more similar functions here:
https://developer.roblox.com/en-us/api-reference/class/WorldRoot