GetPartsObscuringTarget can't detect humanoids

Hello!

I’m not really sure if this is intended or not, but :GetPartsObscuringTarget() can’t detect any part within a model that has a humanoid descendant.
I did some more research on devforum about this and there was a thread which didn’t get answered, I assume it didn’t get enough attention.
I am mainly using GetPartsObscuringTarget as a ray that can pierce through parts to detect NPCs, making them take damage.

What can I possibly to do detect humanoids using GetPartsObscuringTarget? Should I use another method to detect NPCs?

Maybe check every model that the ray pierces for a child Humanoid?

if ModelPierced:IsA("Model") then
    if ModelPierced:FindFirstChildOfClass("Humanoid") then
        -- Do stuff like :TakeDamage()
    end
end

This thread might be useful (if I understand your question correctly):

Sorry for responding after a few hours, it was quite late over here.
Basically, the GetPartsObscuringTarget function will only detect parts of a model that do not have a humanoid descendant regardless of what I do.
If I were to use raycasting, my problem would be fixed but raycasting cannot pierce through parts like GetPartsObscuringTarget.

I am not trying to ignore certain parts, I’m trying to detect them.