I am trying to implement ROBLOX’s ‘humanoid tagging’ into my game.
My problem here is that, when the humanoid is tagged, I check when it dies and have it print “died” upon so. For some reason, it prints 7 times, even though it died one time and there is only one tag.
Here is some server code:
if HitPart.Name == "Head" then
UntagHumanoid(HitHumanoid)
TagHumanoid(HitHumanoid)
Damge = FoundModule.HeadDamage
else
UntagHumanoid(HitHumanoid)
TagHumanoid(HitHumanoid)
Damge = FoundModule.Damage
end
--//
if Globals.UseDamageDropOff then
local PercentDamage = math.clamp(165/Distance, 0, 1)
FinalDamge = math.round(PercentDamage * Damge)
else
FinalDamge = Damge
end
HitHumanoid:TakeDamage(FinalDamge) -- delete this line bruv
if Enemy and Player then
if Enemy.Team ~= Player.Team then
HitHumanoid:TakeDamage(FinalDamge)
end
end
HitHumanoid.Died:Connect(function()
local Tag = HitHumanoid:FindFirstChild("creator")
if Tag then
print('died')
end
end)
and here is whats coming out of the console.
![]()
from what im aware of, no one else has had this issue.