nate9790
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 67 |
|
|
| 23 Sep 2013 08:59 PM |
| How do i make a drop tool on death or if there is one i could use? :)? Thanks for your time. |
|
|
| Report Abuse |
|
|
XAXA
|
  |
| Joined: 10 Aug 2008 |
| Total Posts: 6315 |
|
|
| 23 Sep 2013 09:07 PM |
http://wiki.roblox.com/index.php/Died_(Event)
Pair this with Clone() |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2013 09:14 PM |
tool=script.Parent tool.Equipped:connect(function(mouse) Character=tool.Parent end) Character.Humanoid.Died:connect(function() tool:Destroy() end) |
|
|
| Report Abuse |
|
|
Landin
|
  |
| Joined: 04 Mar 2008 |
| Total Posts: 156 |
|
|
| 23 Sep 2013 09:17 PM |
| Is there a way to do this for certain tools? |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2013 09:54 PM |
| Yeah put my script in each one u want it to happen on. |
|
|
| Report Abuse |
|
|
Landin
|
  |
| Joined: 04 Mar 2008 |
| Total Posts: 156 |
|
|
| 23 Sep 2013 10:00 PM |
| Alright thanks for clarifying |
|
|
| Report Abuse |
|
|
nate9790
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 67 |
|
| |
|
nate9790
|
  |
| Joined: 11 Sep 2010 |
| Total Posts: 67 |
|
| |
|
|
| 27 Sep 2013 08:36 PM |
Here's an untested, but most likely working snippet you could prefix your tool script with:
local tool=script.Parent tool.Equipped:connect(function() local h=tool.Parent:FindFirstChild'Humanoid' if h and h.ClassName=="Humanoid" then h.Died:connect(function() tool.Parent=workspace end) end end) |
|
|
| Report Abuse |
|
|