So basically heres how it works, it invokes the server when you press the punch key, and the server side script clones a dmg script inside it into the players Left hand,
J = false
local PlayerWhoPunched = script.Parent.Parent.Name
local LHand = script.Parent
local hurt = script.DMG
LHand.Touched:connect(function(Part)
if J == false then
J = true
if Part.Parent:FindFirstChild("Humanoid") then
local Human = Part.Parent:FindFirstChild("Humanoid")
Human.Health = Human.Health - hurt.Value
end
end
end)
Now it works perfectly sometimes but other times it just does not register the hit, is this because I do not have the script that does the dmg itself disabled before its cloned? Or could it be because of my animation? Because I swear I have landed so many hits on the head just for them to not register

5 comments
Oh man this indention. Please fix it.
punch better
get gud
oof tell that to my players rip
yea :p it's their fault