I've been scripting around for a bit and messing around with some weapon code, and I'm trying to make a kill/death leaderboard. I have the death part down, that one is fairly easy to do but I'm struggling rather hard over the "kill" portion (adding kills to a player when they actually kill someone) and the weapon code is interfering (if anyone wants to know, I'm using thepoopxd's weaponry). I want to figure out how to code the killing portion myself, but I keep stumbling upon this "creator" thing. Apparently it's rather significant in coding the killing portion. Usually it'd be in the context of:
Humanoid:findFirstChild('creator')
I've googled and looked in roblox dev forums but they all don't show any actual answers. Could someone possibly explain? Thank you! -cooldeath49
Creator is a way for Roblox to figure out who created the tag. If a humanoid dies, Roblox will search for a Creator string value and if it's found, the value of the creator should be the one who gets a KO.
An example would be like laser tag. If you tag someone, your username is put inside a string value named creator. If and when the player who got hit dies, Roblox will find creator and award a kill to whoever put the creator on the tagged player.
However creator does not automagically create. You have to create a string value, name it creator and put the attacker's username in it.