Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Region3 detected too many parts and didn't notice the part I want, how to ignore?

Asked by 6 years ago

Maybe you use FindPartsInRegion3WithIgnoreList but I don't know how to use it :/

0
Have you tried FindPartsInRegion3WithWhiteList? It uses a list of things you want found. UgOsMiLy 1074 — 6y
0
Is the white list supposed to be a table of object values? Konethorix 197 — 6y
0
yes, it is required to be an array of instances Rare_tendo 3000 — 6y

1 answer

Log in to vote
0
Answered by
Rare_tendo 3000 Moderation Voter Community Moderator
6 years ago

The best solution is to read the wiki.

http://wiki.roblox.com/index.php?title=API:Class/Workspace/FindPartOnRayWithIgnoreList

Parameters :

ray Type: Ray Required ignoreDescendantsTable Type: array<Instance> Required terrainCellsAreCubes Type: bool Defaults to: false ignoreWater Type: bool Defaults to: false

'IgnoreDescendantsTable' requires an array(table) of instances, which the function will use to ignore the parts found on the ray.

--Example:

local ray = Ray.new(
    -Vector3.new(1,1,1),
    Vector3.new(1,1,1)

)

local ignoreList = {workspace.Baseplate}

local foundparts = workspace:FindPartOnRayWithIgnoreList(ray,ignorelist,false,false)

for _,v in pairs(foundparts) do
    print(v.Name,v.Parent)
end
0
But I want Region3 not Ray Konethorix 197 — 6y
0
oh, sorry. That's when you don't read the whole thread. Rare_tendo 3000 — 6y
Ad

Answer this question