|
| 05 Aug 2012 07:25 PM |
| How would I remove a script inside a Tool OnDeath()? |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2012 07:27 PM |
| By a script I mean the Camera which is inside the script I want to Destroy() |
|
|
| Report Abuse |
|
|
josh50000
|
  |
| Joined: 29 Nov 2009 |
| Total Posts: 697 |
|
|
| 05 Aug 2012 07:34 PM |
game.Players.PlayerAdded:connect(function(p) p.Character.Humanoid.Died:connect(function() -- stuff u want to do end) end)
i think thats what u ment :/ |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2012 07:36 PM |
Yeah so it would be:
game.Players.PlayerAdded:connect(function(p) p.Character.Humanoid.Died:connect(function() wait() MySCRIPT:Destroy() end) end)
|
|
|
| Report Abuse |
|
|
josh50000
|
  |
| Joined: 29 Nov 2009 |
| Total Posts: 697 |
|
| |
|
|
| 05 Aug 2012 07:49 PM |
| Wait but I want it to destroy a script inside a tool inside th StarterPack |
|
|
| Report Abuse |
|
|
| |
|