Better way to do hitboxing?

Have you tried shapecast? They are like raycasting, but instead of a line, it casts out a sphere or block (depending on what you choose), which increases the surface area of the ray, which means that you dont have to be very accurate. You can also change the size of the block or sphere.

Here’s the forum post from Roblox, they explain it pretty good.