What is more optimizado part 2

the plan is this, to make a weapon that transpace 3 walls, my two beginner methods are; use 4 raycast beams and then you know the rest if you have common sense OOOO use a part and shoot it using a method similar to the fast Cast, moving it every HeartBearth, the question is; which one is more optimized?