How do I get the Name of an NPC with the NPC class?

I’m just starting to leard GLUA (I’ve coded in LUA and many other programming languages before) and I want it to display the name of the NPC you killed in the chat but I can’t find a NPC:GetName() or anything like that. How would I go about doing this? Thanks in advance.

What do you expect to obtain with this function? The internal name of the entity?

For example, if I killed a crow, how could I make it print, (username) killed a Crow?

Try to get the translation of the NPC name from its class like this: language.GetPhrase("#" .. npc:GetClass()). I hope you get the expected result.