Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Should I be using WorldRoot:GetPartsInPart() for hitboxes?

Asked by
d3nton 19
2 years ago

I'm working on a game with hitboxes. I tried Region3, but I'd been told many times that it's deprecated and also expensive. So I decided to use WorldRoot:GetPartsInPart() with OverlapParams, but people say that using actual parts for hitboxes is expensive. I'm not sure if I should keep using WorldRoot:GetPartsInPart() or switch to another method; at the moment, I can't really show my code, but hopefully, you understand what I'm trying to say. Thank you.

1 answer

Log in to vote
0
Answered by 2 years ago

I recommend welding the Hitbox part and the HumanoidRootPart of a player/npc. Make sure that the Hitbox part is inside the character model itself.

0
Thank you! I will consider doing that d3nton 19 — 2y
Ad

Answer this question