Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

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. NoahsRebels 99 — 4y
0
Noah is correct Thetacah 712 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

0
Ah, okay; thank you cooldeath49 37 — 4y
Ad

Answer this question