Raycast HitBox Module not filtering through Character

Hello, I’m having a problem with the raycast module:

Whenever I’m jumping around randomly it damages myself even though I set it to ignore myself. Any help is appreciated.
Script:

-- Raycast Params
local raycastParams = RaycastParams.new()
raycastParams.FilterDescendantsInstances = {Tool.Parent.Parent.Character or Tool.Parent.Parent.Parent.Character}
raycastParams.FilterType = Enum.RaycastFilterType.Blacklist

-- Settings
local newHitbox = RaycastHitbox.new(Tool)
newHitbox.RaycastPrams = raycastParams

I also tried printing newHitbox and this is what is printed

RaycastParams{IgnoreWater=false, BruteForceAllSlow=false, RespectCanCollide=false, CollisionGroup=Default, FilterDescendantsInstances={SilentSuprion}}

So it does say that I’m ignored so what’s the issue?
Thank you.

This could be an issue with the module itself. I’d try adding your own filter in the OnHit event

newHitBox.OnHit:Connect(function(hit,humanoid,results)
	if humanoid ~= player.Character.Humanoid then
		--damage the humanoid
	end
end)

This is what I do in my RaycastHitbox implementation and it works fine.

1 Like

That’s what I was thinking too. I’ll mark you as solution, but I’d still like to figure out why it isn’t working.