of     1   

alextomcool
#1140286Thursday, May 29, 2008 2:43 AM GMT

i need it for my project im working on. and will it work if the Humanoid isn't called Humanoid?
Kaze
#1140293Thursday, May 29, 2008 2:44 AM GMT

No clue. Check the Wiki. The almighty wiki knows all :D
alextomcool
#1140303Thursday, May 29, 2008 2:45 AM GMT

unfortueitly i have. couldn't find a trace of it. but thx for posting. it say's you care. even a little bit.
Zacechawa
#1141080Thursday, May 29, 2008 4:40 AM GMT

well, if u look at a leaderboard, you find this somewhere in it humanoid.Died:connect(function() onHumanoidDied(humanoid, newPlayer) end ) which calls the function on humanoid died, as well as sending that function information so it can update stats. anyhow, the connection to call your function everytime you die would be: humanoid.died:connect([your function here]) humanoid happens to be the path: newPlayer.Character.Humanoid where newPlayer is: game.Players.ChildAdded which happens to call a function... anyways, you probably want the path: x.Character.Humanoid.Died([function(x)]) somewhere in your script and at the end: game.Players.ChildAdded:connect([mainfunction]) and pass x on in your function: function function(x) and function mainfunction(x) i think, maybe you understand it batter....
chris1989
#1141405Thursday, May 29, 2008 5:49 AM GMT

if you define the humanoids name in a onDeath script it will work and it pretty much works the same way as onEnterd scripts like message player has died and such
alextomcool
#1145512Thursday, May 29, 2008 7:34 PM GMT

so if i8 did something like this for a humanoid named Car, would it work? function onDeath(died) if died.Name == Car then script.Parent.Parent.Parent:remove() end end script.Parent.Car.Died:connect(onDeath)
chris1989
#1145817Thursday, May 29, 2008 7:56 PM GMT

lol no clue if this will work i was just typing away function onDeath(died) car = game.Workspace:GetChildren() for 1 = 1, #car do if Name == "Car" then local hum = car[i]:GetChildren() hum:findFirstChild("Humanoid") if hum.Health == 0 then car:Remove() end end end script.Parent.Car.Died:connect(onDeath)
chris1989
#1145836Thursday, May 29, 2008 7:57 PM GMT

saw 1 lil mistake lol still duno if it will work function onDeath(died) car = game.Workspace:GetChildren() for 1 = 1, #car do if Name == "Car" then local hum = car[i]:GetChildren() hum:findFirstChild("Humanoid") if hum.Health == 0 then car:Remove() end end end script.Parent.car.Died:connect(onDeath)

    of     1