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

sorry for bump, but I cannot find any resources on raycast hitboxes as they all tell me to use a module. How do you make it from scratch? I know you have to fire rays at a weapon’s location continuously, but how much raycasts do you need to send and how often do you send them. Will this lag my game?

I’ve got a guide that covers how to make your own raycast hitbox here (along with other types as well). Also, the preformance impact of raycast hitboxes are small as long as you do them on the client, which you should do to have that precision in the first place.