gain point when npc is damage by player HELP!!

can i get some help with figuring out how to make it when a player damages a nextbot they again 10 points

i thought it would have some thing to do with the function ENT:OnInjured with a AddMoney(10) command but that got me no ware as i dont know how to call the player who injured it

could i please get some help from you lovely people who are smarter at this than me

function ENT:OnInjured(info)
    local attacker = info:GetAttacker()
    if(IsValid(attacker) and attacker:IsPlayer()) then

thank you man