Resalth
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 14215 |
|
|
| 05 Oct 2014 06:36 PM |
make a script that removes all your weapons after your humanoid health hits 0
|
|
|
| Report Abuse |
|
|
|
| 05 Oct 2014 06:37 PM |
if health=0 then something
Chancellor of IC | hi im a joe | got a mind of my own |
|
|
| Report Abuse |
|
|
Resalth
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 14215 |
|
| |
|
Resalth
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 14215 |
|
|
| 05 Oct 2014 06:38 PM |
| meant scripting helpers not S&I |
|
|
| Report Abuse |
|
|
|
| 05 Oct 2014 06:39 PM |
if player.Character.Humanoid.Health == 0 then player.Backpack:ClearAllChildren() end
something like that
~the black cowboy |
|
|
| Report Abuse |
|
|
Obscuriti
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 15354 |
|
| |
|
Resalth
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 14215 |
|
|
| 05 Oct 2014 06:45 PM |
@black i fixed that
it's game.Players
XDD |
|
|
| Report Abuse |
|
|
Obscuriti
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 15354 |
|
|
| 05 Oct 2014 06:45 PM |
| is this for the snow base yo? |
|
|
| Report Abuse |
|
|
Resalth
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 14215 |
|
| |
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 05 Oct 2014 06:51 PM |
player = LocalPlayer char = player.Character
char.Humanoid.Changed:connect(function()
if char.Humanoid.Health <=0 then -- Clear the backpack of player player.Backpack:ClearAllChildren() -- Clear the character of tools and hopperbins charStuff =char:GetChildren() for i=1, # charStuff do if charStuff[i].ClassName == "Tool" or charStuff[i].ClassName == "HopperBin" then charStuff[i]:Destroy() end end end end) |
|
|
| Report Abuse |
|
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 05 Oct 2014 06:52 PM |
i didnt test that
hopefully it works alright
place it in a local script in your player GUI
must be local script or it wont work because it uses LocalPlayer |
|
|
| Report Abuse |
|
|
Resalth
|
  |
| Joined: 14 Jun 2014 |
| Total Posts: 14215 |
|
|
| 05 Oct 2014 06:54 PM |
| the 'charstuff' is blue underlined |
|
|
| Report Abuse |
|
|
thea96
|
  |
| Joined: 09 Feb 2011 |
| Total Posts: 37634 |
|
|
| 05 Oct 2014 06:54 PM |
im not sure what the blue underline is
i get it alot and my scripts work fine
|
|
|
| Report Abuse |
|
|