if attacker then
if attacker:GetAttribute("Venomous") == true then
if ignoredefense ~= true then
victim:SetAttribute("Venom", math.clamp(math.clamp(victim:GetAttribute("Venom")+5,0,victim.MaxHealth/2)-victim:GetAttribute("Defense"),0,victim.MaxHealth/2))
else
victim:SetAttribute("Venom", math.clamp(victim:GetAttribute("Venom")+5,0,victim.MaxHealth/2))
end
end
end
second block:
if venom == true then
victim:SetAttribute("Venom", math.clamp(victim:GetAttribute("Venom")+damage,0,victim.MaxHealth*0.75))
end
if the attacker has the “Venomous” attribute set to true then it will add 5 damage to whatever amount of normal damage they did, no problem. (the capping for it works too) and if the “venom” boolean is set to true in the function then the damage will be converted to venom damage. but if both are enabled at the same time the damage still works but it gets capped at 53 venom only, I’ve been trying to fix this for so long and I’ve tried a bunch of different things. help, please.