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)