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

Whats wrong with my hitbox?

Asked by
neoG457 315 Moderation Voter
8 years ago
local dmg = false

DMGPart.Touched:connect(function(Hit)
    if not dmg then
        dmg = true
local human = Hit.Parent:findFirstChild("Humanoid")
        if (human ~= nil) then

   human.Health = human.Health - 15 

 wait(1)
           dmg = false

PunchPart:Destroy()

     end
    end
end)

This damage script rarely works please Improve it.

Answer this question