HitboxHandler for Fighting Style games.
Can be used for things like Projectiles, but may work wonky.
This HitboxHandler requires you quite of things to use:
- hitbox (Part, you want to specify that will be your hitbox, doesn’t includes models)
- SelfCharacter (Your character. Not really requires your character but well you can even add this hitbox to someone else lol)
- Cifreimi (CFrame you need to specify here. Ex: HumanoidRootPart.CFrame)
- Duration
- Damage
- StunDuration (This box is empty, until you use something as StunHandler and add-on this inside your HitboxHandler)
- Debounced (Quite a thing of a cooldown that the module will have as true and false, you can find yourself how to use it because i indeed know that this will help in some situations)
Uses Region3 Tech. to detect enemy.
RealHitboxHandler.rbxm (1.1 KB)
Credits are not required, because script is simplistic and may be bad as you can try by yourself.
Forgot to mention, you wont be able to see the hitbox as i remember right because it holds it inside yourself, so thats pretty much good so there will be no hitbox exteders.
Also put it inside ServerScriptService for functionality