So, I have a raycasting gun, and I want it to go through parts with Transparency as 1 and with CanCollide as false. Can't figure out how do to this with FindPartOnRayWithIgnoreList. Can I get some help?
--ray creation
local NewPos = mouse + Vector3.new(math.random(-spread,spread), math.random(-spread,spread), math.random(-spread, spread))
local ray = Ray.new(tool.firePart.CFrame.p, (NewPos - tool.firePart.CFrame.p).unit*300)
local part, position = game.Workspace:FindPartOnRay(ray, player.Character, false, true)

5 comments
http://wiki.roblox.com/index.php?title=API:Class/Workspace/FindPartOnRayWithIgnoreList , create a table then add them to the table
I don't want to add every single part that has a Transparency of 1 and CanCollide as false, it's a rather large map.
Well if you dont want to do it that way because of the number of parts in the workspace, you could creat a region centered at the player and make it as big as your gun's range then u can make a tabel by looking through all of the parts found in the region that are of transparency = 1
Not sure if this method is more 'efficient' but its diffrent :3
That sounds like it's gonna slow down the game a lot. Is there a way to just check when it hits?