game.ReplicatedStorage.remotes.punch.OnServerEvent:Connect(function(player,damage)
local character = player.Character
local Hand1 = character:WaitForChild("LeftHand")
local Hand2 = character:WaitForChild("RightHand")
print("punch activated")
local function handTouched(hit)
local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
print("punch connected")
if humanoid and humanoid.Parent ~= character then
print("punch damage dealt")
humanoid:TakeDamage(damage)
end
Hand1.Touched:Connect(handTouched)
Hand2.Touched:Connect(handTouched)
end
end)
Trying to utilize the .touched event to deal damage to a player once my punch animation has ran and they’ve began punching, but it seems like no matter what the code won’t even break past the second print that I’ve set up. print("punch connected").
The code runs without any errors, but when I get up close to a dummy that I’ve set up its health doesn’t decrease at all like it’s supposed to. This code that I’m using is a bit modified; found within the forums on here, so I’d assume that it would work. Not so sure why it’s not , anyone give me some direction on what I’ve done wrong?

