dart219
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 288 |
|
|
| 26 Dec 2011 02:24 PM |
| I am trying to make a change team gui where when you join spectators, then it removes the tools from your starterpack but I do not know how I could script the tool removing part. Ty if you can help! |
|
|
| Report Abuse |
|
|
dart219
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 288 |
|
| |
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 26 Dec 2011 03:27 PM |
| How much you know about GUIs? |
|
|
| Report Abuse |
|
|
dennisvdz
|
  |
| Joined: 14 Dec 2008 |
| Total Posts: 3710 |
|
|
| 26 Dec 2011 03:31 PM |
[LOCALSCRIPT!] script.Parent.MouseButton1Down:connect(function() for _,v in pairs(game.Players.LocalPlayer.StarterGear:GetChildren()) do v:remove() end end)
|
|
|
| Report Abuse |
|
|
dart219
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 288 |
|
|
| 26 Dec 2011 06:50 PM |
[LOCALSCRIPT!]
Do I remove that in the script? Or do I make the script a local script? |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 26 Dec 2011 06:53 PM |
Put this in a LocalScript;
script.Parent.MouseButton1Down:connect(function() game.Players.LocalPlayer.StarterGear:ClearAllChildren() end) |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 26 Dec 2011 06:54 PM |
| Remove "[LOCALSCRIPT!]" and put the rest in a Local Script. |
|
|
| Report Abuse |
|
|