Raycast blacklist not working

the script is supposed to makes 5 clones of itself through a loop but all 5 hit each other. I’ve tried by using other sorts of rays for example ignoring the part but it won’t work. The ray here also doesn’t seem to work

	
	local Charcacter = Player.Character
	local Humanoid = Charcacter:WaitForChild("Humanoid")
	local Humrp = Charcacter:WaitForChild("HumanoidRootPart")
	
	local effectsFold = Instance.new("Folder",workspace)
	effectsFold.Name = Player.Name.." Effects"
	Debris:AddItem(effectsFold,2) 
	
	local dvm3ball = Meshes:WaitForChild("DWm3ball"):Clone()
	dvm3ball.CFrame = Humrp.CFrame * CFrame.new(0, 0, -3)
	dvm3ball.Parent = effectsFold
	
	local dvm3frame1 = Meshes:WaitForChild("DWm3frame1"):Clone()
	dvm3frame1.CFrame = dvm3ball.CFrame
	dvm3frame1.Parent = effectsFold

	local dvm3frame2 = Meshes:WaitForChild("DWm3frame2"):Clone()
	dvm3frame2.CFrame = dvm3ball.CFrame
	dvm3frame2.Orientation = Vector3.new(0, -90, 0)
	dvm3frame2.Parent = effectsFold
	
		local tbtable = {dvm3ball,dvm3frame2,dvm3frame1}
		local tbrayparams = RaycastParams.new()
		tbrayparams.FilterType = Enum.RaycastFilterType.Blacklist
		tbrayparams.FilterDescendantsInstances = tbtable

		local tbrayresult = workspace:Raycast(dvm3ball.Position, dvm3ball.CFrame.LookVector * speed, tbrayparams)
1 Like

Have you tried setting the FilterType after setting the FilterDescendantsInstances?

Yea I have and it is still the same outcome.

Have you tried to do it directly? You are setting a variable to the FilterDescendantsInstances, you could try to set it directly.

		local tbrayparams = RaycastParams.new()
		tbrayparams.FilterType = Enum.RaycastFilterType.Blacklist
		tbrayparams.FilterDescendantsInstances = {dvm3ball,dvm3frame2,dvm3frame1}```

I’ve tried that too but the outcome is still the same should i show the full script?

FilterType is automatically set to ‘Blacklist’.