Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 16 Jun 2014 11:54 PM |
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) c.ChildAdded:connect(function(child) if child:IsA("Shirt") then child:Destroy() end end) end) end)
|
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
| |
|
wetrel
|
  |
| Joined: 19 Jun 2009 |
| Total Posts: 919 |
|
|
| 17 Jun 2014 12:01 AM |
| Is there an error in the output? Does it try to remove the shirt before it is loaded (fix is adding wait)? Is shirt the class name? |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 17 Jun 2014 12:05 AM |
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) c.ChildAdded:connect(function(child) if child.Name == "Shirt" then child:Destroy() repeat child:Destroy() until child==nil end end) end) end) |
|
|
| Report Abuse |
|
|
Tynexx
|
  |
| Joined: 11 Jul 2012 |
| Total Posts: 1559 |
|
|
| 17 Jun 2014 12:10 AM |
| ^That code crashed my cmputer.. |
|
|
| Report Abuse |
|
|
wetrel
|
  |
| Joined: 19 Jun 2009 |
| Total Posts: 919 |
|
|
| 17 Jun 2014 12:12 AM |
If it gets the player and then it checks for the shirt when something is added, I dont think it will work.
game.Players.PlayerAdded:connect(function(p) repeat wait() until p.Character local children = p.Character:GetChildren() for i = 1, #children do if children[i]:IsA("Shirt") then children[i]:Remove() end end) |
|
|
| Report Abuse |
|
|