| Name | LocalPlayerDeath |
| Arguments (in table) | Player attacker, DamageEntity type |
| Return option | None |
damageTypes = {
"Physics",
"Bullet",
"Explosion"
}
Foo = function(args)
local message = tostring(args.attacker).." killed you with damage type "..
tostring(damageTypes[args.type])
print(message)
Chat:Print(message, Color(255, 255, 255))
end
Events:Subscribe("LocalPlayerDeath", Foo)