on death:
if {speed::victim's uuid} is greater than 1:
subtract 1 from {speed::victim's uuid}
if {speed::attacker's uuid} is less than 10:
add 1 to {speed::attacker's uuid}
else:
give attacker {cooldowntoken}
set attacker's attack speed attribute to {speed::attacker's uuid}
set victim's attack speed attribute to {speed::victim's uuid}
when I player dies I'm trying to give them a reduced attack speed but for some reason wired stuff happens, for example sometimes the player attack speed seems to be 0 after a player dies even tho they have an Speed varible of 9. Other times people who die actually gain attack speed