Character Attribute System

Does anyone have an example of how to add exp when an AI dies? I have tried several different ways with no erros but im just not getting the exp when the AI dies