I can’t figure out how I could make the hitbox deal damage to several players but not multiply the damage, if I remove ‘Disconnect’ then it will cause damage to all those who are inside the hitbox while multiplying the damage or something else (in short, the hitbox touches more than 1 time)
local connection
connection = hitbox.Touched:Connect(function(hit)
local hit_player = game.Players:GetPlayerFromCharacter(hit.Parent)
local hit_humanoid = hit.Parent:FindFirstChild('Humanoid')
if not (hit_player and hit_player == localplayer) and hit_humanoid and punchType == 'NormalPunch' then
punchFunc(hit_humanoid, HumRP)
connection:Disconnect()
elseif not (hit_player and hit_player == localplayer) and hit_humanoid and punchType == 'LastPunch' then
punchFunc(hit_humanoid, HumRP)
connection:Disconnect()
end
end)