|
| 02 Sep 2014 07:17 PM |
| How could i make it to where when you die an item pops up in that place, like a Brick or something. |
|
|
| Report Abuse |
|
|
ForceSky
|
  |
| Joined: 30 Jul 2012 |
| Total Posts: 2379 |
|
|
| 02 Sep 2014 07:21 PM |
Died event of a Humanoid. Fires whenever the indexed humanoid's health reaches 0.
function ondeath(hum) local p = Instance.new("Part", workspace) end
HUMANOID.Died:connect(ondeath) |
|
|
| Report Abuse |
|
|
Bobobob12
|
  |
| Joined: 23 Jan 2008 |
| Total Posts: 5350 |
|
|
| 02 Sep 2014 07:21 PM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) local humanoid = char:WaitForChild("Humanoid") humanoid.Died:connect(function() if char:findFirstChild("Torso") then Instance.new("Part", game.Workspace).Position = char.Torso.Position end end) end) end) |
|
|
| Report Abuse |
|
|