Hi, I’ve been trying to make a raycast fire until it hits a “valid” (occlusion) part, and I’m trying to wrap my head around how RaycastParams handles its FilterDescendantsInstances property.
local blacklist = {}
local params = RaycastParams.new()
params.FilterDescendantsInstances = blacklist
print( blacklist, params.FilterDescendantsInstances )
params.FilterDescendantsInstances = blacklist
print( blacklist, params.FilterDescendantsInstances )
![]()
The print here returns two different tables even though they’re set to the same table, when it’s much more convenient to set FilterDescendantsInstances once and be done with it.
Is this intended at all? Or do I just need to re-set the FilterDescendantsInstance table after I edit the blacklist table?
(And is it more efficient to just use FindPartOnRayWithIgnoreList?)
