How to make raycasting hitboxes

Okay, So i want to know how to make raycasting hitboxes.

For melee combat you have this module

that utilizes unit rays to create very precise hitboxes for weapons

for ranged combat you have

which utilizes raycasting to simulate projectiles that can curve, be influenced by gravity and even bounce

both are amazing modules i wholeheartedly recommend