What’s the best way to do hit detection for melee combat such as punching, sword slashing, etc.? Right now I’m creating a Region3 every frame and checking if anything is in the Region3 as a way of hit detection but I don’t think it’s very efficient due to the performance cost of the method. I also don’t really want to use .Touched since it’s not very reliable and sometimes just doesn’t fire.
2 Likes
I answered a similar post to this here:
I hope that helps!
9 Likes
What I do for lightsabers in my Star Wars game involves firing a ray up and down the length of the blade and checking for intersecting parts. When you connect a system like this to RunService.Stepped, it becomes extremely accurate.
8 Likes