What are the best ways to detect a hitbox?

I’m looking for a more accurate way to detect hitboxes… the only way I know how to do this is with the .Touched Event. What are other ways to detect hitboxes?

Personally I like using RaycastHitbox, but spatial queries also work well.

2 Likes

Give raycasting a try. The ray will return the hitbox it ‘sees’.
There are a lot of posts about this on the forums. Try using the Search tool up top.

1 Like

If your detecting hitbox for melees, use RaycastHitbox. There’s also a less known one for other stuff called ZonePlus.

1 Like

ZonePlus is mainly for making like safezones, but it can also be used as a sort of hitbox for like detecting if a hotdog is colliding with a grill.

1 Like

ZonePlus is relatively slow to update since it’s made for having a lot of active at once, so I wouldn’t recommend it for accuracy

2 Likes