Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

In a kill/death leaderboard, what is "creator"?

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

2 comments

0

In short, I believe it's a string value used to identify who the killer of a player was, the value being the person's name who hit the other player.

0

Noah is correct

1 answer

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.

1 comment

0

Ah, okay; thank you

This discussion is preserved as it was. New answers, comments, and votes are closed.