Better way to do hitboxing?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    i want to find out if there is a better way to create hitboxs
  2. What is the issue? Include screenshots / videos if possible!
    i am currently using raycasts for hitboxs however they are too accurate which results in hits missing when i wouldnt want them to
  3. What solutions have you tried so far? Did you look for solutions on the
    Developer Hub?
    ive went on discords but people always say that raycasting is the best option however i want something as performant as raycasts while also being able to work
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- This is an example Lua code block

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

You didn’t added any files, or edit text. Please delete this post and redo it.


Because i dont want my code edited or a piece of code i just want information on better ways to handle hitboxing?

Either you create an invisible part welded to the character’s HumanoidRootPart (torso) or check the distance between two humanoids.


Maybe use spatial query? A lot of more casual games use box hitboxes instead of raycasting. Introducing OverlapParams - New Spatial Query API

Have you tried shapecast? They are like raycasting, but instead of a line, it casts out a sphere or block (depending on what you choose), which increases the surface area of the ray, which means that you dont have to be very accurate. You can also change the size of the block or sphere.

Here’s the forum post from Roblox, they explain it pretty good.