Cant table.insert accessories into the params.FilterDescendentsInstances?

Just why wouldn’t this work?

		local params = RaycastParams.new()
		params.FilterType = Enum.RaycastFilterType.Exclude
		params.FilterDescendantsInstances = {char}
		
		for _, v in char:GetChildren() do
			if v:IsA("Accessory") then
				table.insert(params.FilterDescendantsInstances, v)
			end
		end
		print(params.FilterDescendantsInstances)

The only thing it just prints is [1] j_91, because char is already inserted in the table.
and I’ve already checked if v is correct, and yeah it is, if i print(v) it shows all my accesories.

1 Like
                local params = RaycastParams.new()
local filter = {}
		params.FilterType = Enum.RaycastFilterType.Exclude
	
		
		for _, v in char:GetChildren() do
			if v:IsA("Accessory") then
				table.insert(filter, v)
			end
		end
	params.FilterDescendantsInstances = filter 
		print(params.FilterDescendantsInstances)

this somehow worked? i dont see why though lol