CharacterHitbox Module

Welcome To CharacterHitbox.
create easily hitboxes.

How to create hitbox?

local module = require(game:GetService("ServerScriptService").CharacterHitbox)
local npc = game.Workspace.NPC
local hitbox = module.CreateHitbox(npc, 5, {
  ["Transparency"] = 0.3,
})

--module.CreateHitbox(model, size, options)
--Options = Transparency, PrimaryPart

What is the hitbox functions?

hitbox:TouchDamageStart(1, 0.5)
--hitbox:TouchDamageStart(damage, debounce)
hitbox:TouchDamageStop()
--stops the above function
hitbox.Touched:Connect(function(hit)
end)
--default touched event of hitbox
hitbox:Destroy()
--destroys hitbox

if you found a bug or you have suggestion please reply this post.

Repository Github
for install Library

11 Likes

Keep going on. Your projects are impressive.

2 Likes

Will be useful for future projects, thanks for sharing this!

1 Like