How to add debris to ray ignore list?

What I’m trying to do is add anything within the debris service to the FindPartOnRayWithIgnoreList. However, I can’t find a way to do this. I tried this, but it does not work:

local hit, position, normal = game.Workspace:FindPartOnRayWithIgnoreList(ray, Ignore, game:GetService("Debris"))

You’d need a table of all items added to debris. You’d also have to remove items from that table as debris destroys them. Unfortunately no such list exists by default so you’d have to create one. Easiest way would be to have a bindable event fired whenever you want to add any instance to debris. Inside of that, you add the instance to debris and to a table. And you can remove items from the table using

    -- Remove the part from the table if it exists within the table

You can utilize _G to globally access the table. Also, you’d have to do something like this:

-- combine Ignore and _G.DebrisItems or whatever you call it, 
-- you can just iterate over everything in _G.DebrisItems and add it to ignore,
-- which isn't particularly efficient, but you don't have many options
game.Workspace:FindPartOnRayWithIgnoreList(ray, Ignore})

Then just replace all your current Debris:AddItem(...) calls to firing the bindable.

Personally I just use collision groups, one for Debris part and another for the projectile.

Set it up like so using RaycastParams and it’s done.