generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: 'creator'

Previous Thread :: Next Thread 
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 May 2014 05:01 PM
bump
i know its simple ._.
Report Abuse
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
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
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 May 2014 05:06 PM
Well, I was asking about creator..
Report Abuse
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
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
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 May 2014 05:09 PM
"Sorry it's too much work for you"

I asked for creator, not an alternative.
Report Abuse
Vuva is not online. 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
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
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 is not online. 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
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
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
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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
AetherShotgun is not online. AetherShotgun
Joined: 17 Mar 2014
Total Posts: 656
13 May 2014 05:37 PM
Nope, it isn't an automatic function...
Report Abuse
travddm is not online. 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
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
13 May 2014 05:49 PM
The creator tag simply contains the Player that killed/attacked a player.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image