|
| 29 Mar 2014 05:33 AM |
Hello world!
Please give me a script that removes all your gear when you die.
thank you. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
compy111
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 583 |
|
|
| 29 Mar 2014 05:42 AM |
When you die all the items in your backpack get removed automaticly.
But I think I might know your problem. You placed your tools into StarterPack and you want them to stop getting those, isnt it?
You can remove them from that but then nowone who joins will get the weapons anymore.
Put all your tools in one model, call the model 'Tools' and put that in Lighting.
Now add this script to Workspace:
Tools = game.Lighting.Tools:GetChildren()
game.Player.PlayerAdded:connect(function(player) for i=1 , #Tools do newTool = Tools[i]:Clone() newTool.Parent = player.Backpack end end)
I think this should do it. |
|
|
| Report Abuse |
|
|
compy111
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 583 |
|
|
| 29 Mar 2014 05:43 AM |
Made a one letter mistake:
Tools = game.Lighting.Tools:GetChildren()
game.Players.PlayerAdded:connect(function(player) for i=1 , #Tools do newTool = Tools[i]:Clone() newTool.Parent = player.Backpack end end) |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2014 05:44 AM |
thank you. Il try this script. :) |
|
|
| Report Abuse |
|
|
compy111
|
  |
| Joined: 02 Apr 2009 |
| Total Posts: 583 |
|
|
| 29 Mar 2014 05:46 AM |
Another update lol, this time I tested it myself and it works:
Tools = game.Lighting.Tools:GetChildren()
game.Players.PlayerAdded:connect(function(player) wait(1) for i=1 , #Tools do newTool = Tools[i]:Clone() newTool.Parent = player.Backpack end end) |
|
|
| Report Abuse |
|
|
|
| 29 Mar 2014 05:54 AM |
great. Im gonna try it later. Im making a rifle first.
thank you so much. |
|
|
| Report Abuse |
|
|