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?
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.