|
| 18 Jan 2016 10:00 AM |
Can you help me make a script so that when a humanoid's HP=0 it drops a tool.
Thx if you can help. |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 10:20 AM |
| You want a script to drop a tool when the player dies? |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 10:37 AM |
make this clone it into the character every time it joins/respawns
while wait() do if script.Parent.Humanoid.Health < 1 then for i,v in pairs(script.Parent:GetChildren()) do if v:IsA("Tool") or v:IsA("HopperBin") then v.Parent = game.Workspace end end end end
probably wont work lmao test it in studio by pasting that into a script inside your character and resetting if it breaks im probably not gonna fix it |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 12:53 PM |
| Derpy it doesn't work. Also I mean for an NPC to drop a tool when it dies. |
|
|
| Report Abuse |
|
|
|
| 18 Jan 2016 06:30 PM |
tool = game.{Where tool is stored/ lighting serverstorage}.TOOLNAME if {npc path} .Health < 1 then tool:Clone().Parent = game.Workspace |
|
|
| Report Abuse |
|
|