Need help with bullet hitboxes

I am planning on making an fps game shotgun. Is it a good option to add hitboxes on the barrel of the gun? Cause I’m not really good with velocity-based guns or ray cast.

I am a new member so if this is in the wrong category I can repost.
If I am unclear I can explain in a better way.

2 Likes

I’m not exactly sure what you mean by adding hit boxes on the barrel of the gun (if a bullet hits your gun you get damaged ??)

A tip I can give is that you use the FastCast module, I haven’t used it myself but I’ve heard good things about it

Kinda like a ray cast but much easier / A long invisible part that when activated it while detect if anything touches it and lowers the NPC’s Health by the damage variable.

Having a long invisible part from the barrel of your gun could lead to damaging through walls etc. I recommend learning how raycasts work and using those to detect when a bullet hits a humanoid, and take it from there. The comment about using the Fastcast module is probably the best advice you could get when starting out since it’s easy to use/learn.