Help with Raycast

So, by default raycast is doing something like this

Instead, I want it to do something like this.

Like raycasting everything in front of the blade.

Is there any solution?

It looks like you’re trying to make a Raycast Hitbox, luckily @TeamSwordphin has already created one and it can be found here

But to answer your question you would need to do many raycasts along the sword (most likely using a for loop). The more raycasts you do the more accurate the hitbox would be.