|
| 13 May 2014 04:58 PM |
| I keep seeing how people check for "creator" inside a humanoid that just died, can someone explain what this is and how it can be used? |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 May 2014 05:05 PM |
| I don't use anything like that... I create my own objectvalue that I place in the character model then when the player dies I can do stuff with the value (which I set to the killers player in Players service) |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:06 PM |
| Well, I was asking about creator.. |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:08 PM |
| And I stated a proper solution that is essentially the same. Sorry it's too much work for you... |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:09 PM |
"Sorry it's too much work for you"
I asked for creator, not an alternative. |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 13 May 2014 05:15 PM |
| I'm pretty sure that IS what creator is, an ObjectValue inside the humanoid where the "value" property is equal to the player object. I definitely don't see any object or prperty named that by default... |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:16 PM |
| Magical thing called linkedsword that is a Roblox model. It uses the creator tag. Look into the models script for a reference. |
|
|
| Report Abuse |
|
|
Vuva
|
  |
| Joined: 22 Jan 2010 |
| Total Posts: 1102 |
|
|
| 13 May 2014 05:22 PM |
I found this function in the script
function tagHumanoid(humanoid, player) local creator_tag = Instance.new("ObjectValue") creator_tag.Value = player creator_tag.Name = "creator" creator_tag.Parent = humanoid end
which means that function is createing an ObjectValue inside of the humanoid, and is access by doing FindFirstChild on the humanoid. |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:27 PM |
| I never even knew what creator tag was... I just always used that except in the character model. |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:31 PM |
| Oh, I thought it was something that appeared inside a humanoid when something died and had the name of what killed it.. :l |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:37 PM |
| Nope, it isn't an automatic function... |
|
|
| Report Abuse |
|
|
travddm
|
  |
| Joined: 29 Mar 2012 |
| Total Posts: 926 |
|
|
| 13 May 2014 05:40 PM |
| This is used for counting KOs. The creator tag holds a Value containing the last attacker's Name(Or Player Instance, idk). When a player is hit by a linked sword, it will insert the tag into the Player's character humanoid and delete any older creator tags. If the player dies, Roblox checks for the creator tag to give the proper player the proper KOs. |
|
|
| Report Abuse |
|
|
|
| 13 May 2014 05:49 PM |
| The creator tag simply contains the Player that killed/attacked a player. |
|
|
| Report Abuse |
|
|