So after a while working a bit on a new game., about fighting, I had an idea to script a system that would give the player cash after each kill
I want to achieve the knowledge and the understanding of the idea of scripting a tag system, that would allow me to find the player that died and who killed it.
I’ve been looking forward on youtube and devforum for a solution to my problem, but haven’t found anything.
Usually, what people do is add an ObjectValue named ‘creator’ inside the Humanoid whenever their sword kills the enemy (where you deal damage, check if their Health is 0).
Then you’ll simply set the Value to the Player who killed, of course then anything can use that.