Is there a way to get if WHICH parts a ray intersects?

I want to do this for a melee system, my problem is that it’s only detecting one. With a magnitude, is there any way I can detect multiple parts (character parts)?

EDIT: I don’t care if there’s a hacky solution, but if there is, then I’ll gladly use it.

1 Like

What u can technically do is raycast a ray with no blacklisted items. And when it hits an object, add it to the blacklisted table, and another table which will hold the parts it collided with, and raycast once again. So basiaclly repeat this process until the ray doesnt hit anything.

2 Likes

You can make multiple raycasts and every time add raycast part to blacklist.