Choosing the most efficient way to make a hitbox system

Hello, I’m a (not so) newbie.

I want to make a hitbox system by myself and I have a problem. I have many ways to detect if a character is in a hitbox.

1. Touched Event: BasePart | Roblox Creator Documentation

2. Region3: Region3 | Roblox Creator Documentation

3. Raycast Params: Raycasting | Roblox Creator Documentation

4. Overlap Params: OverlapParams | Roblox Creator Documentation

What is the best way to do hitbox system?

(If you don’t mind, please give me some reason)
(I tried touched, but it kind of delays)
(I know some people have asked before, but all of the answers say to use the RaycastV4 module and I don’t want another people module…)

1 Like
  1. Touched event:
    I dont recommend using this one, as it is really unreliable
  2. Region3:
    An okay choice to use for hitboxes
  3. Raycasting:
    The most efficient and most reliable method in my opinion, i pretty much always use it for hitboxes
  4. Overlap params:
    Does anyone even use this for hitboxes??
5 Likes

I have seen someone use Overlap Params, but… ok I’ll use Raycast Params thank you for the answer!

Edit: I’m waiting for more people to comment.

Region3 is pretty good. I use it and all i can say it just helps.

3 Likes

I personally use and recommend Region3, it makes everything so simple with a module.

2 Likes

It depends on what youre basing it on.
For swords and stuff that has to actually touch the hitbox, I would recommend using OverlapParams
If its a ranged weapon you should use raycasting

2 Likes

Thank you everyone for the answers. I decided to use Raycast Params! :pray:

1 Like