Help with Raycast

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.