Hello! It's more of a question than scripting help, but anyway. I have thought of doing a PvP game lately, at least a basic one, but I've never made a Hitbox system with attacks, so the question is what's the general and best way to do hitboxes? Creating a part that searchs for a humanoid within itself and damages them? Or it's better to do Regions for hitboxes?
#General Way to do Hitboxes
10 messages · Page 1 of 1 (latest)
No idea if regions are useful in this specific objetive
But any help is appreciated
i usually use the GetPartsInBoundBox when making hitboxes for combat stuff works great
make part name it hitbox use function game.workspace.hitbox.touched:connect(function(player) ---line of code end)
use denounce so it doesn't just damages you multiple times
You could look into using raycasts, I'm pretty sure a lot of the best fighting games on Roblox use raycasts for hit detection.
idk mane 💀
i add like attack hitbox on a npc and then with a debounce or i say attack cooldown
thank you all