Perpetrator Detector

So I’m try to make a code that will detect the enemy who killed the player for the text so players can know who killed them.

Have whatever enemy killed the player send a Message to whatever controls the text. You can add the name of the enemy that killed you like this


Something like this should be the setup

Thanks, at first the Global did not work for me because it just keeps spawning the name of the enemy and I like to use the Global more than the Mailbox 'cause you know, it sends the value to all the objects has that Global and after all, I still have to use the Mailbox to back up.