Get all parts through what raycast went

Hello there! I use raycast with collision groups. But result contains only part that raycast touched. I want to get all parts through what raycast went.

Hey, is this what you’re looking for?

this checks parts in radius. But raycast is a line

i suggest the following:

  1. launch a raycast
  2. write down the hit part in a list
  3. repeat, and exclude by blacklist the parts you hit each time
  4. finish the loop when a raycast hits nothing
  5. return the list
    i’m not entirely sure how lists in lists behave so you might need a bit of research on this point