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.
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.