Maybe you use FindPartsInRegion3WithIgnoreList but I don't know how to use it :/
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