yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 02 Mar 2014 11:59 AM |
I got this simple bit of code but it fails to work. I can't see why.
Player = script.Parent.Parent.Parent Character = Player.Character
game.Players.PlayerAdded:connect(function(p) wait() local shirt = p.Character:FindFirstChild("Shirt") if shirt then shirt:Destroy() end p.CharacterAdded:connect(function(c) wait() local shirt = c:FindFirstChild("Shirt") if shirt then shirt:Destroy() end end) end) |
|
|
| Report Abuse |
|
|
|
| 02 Mar 2014 12:02 PM |
not even gonna start,ima just fix it:
Workspace -Script
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) for I,v in pairs(c:GetChildren()) do if v:IsA("Shirt") then v:destroy() end end end) end) |
|
|
| Report Abuse |
|
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 02 Mar 2014 12:21 PM |
| Well it doesn't appear to do the trick. |
|
|
| Report Abuse |
|
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
|
| 03 Mar 2014 11:27 AM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) wait(0) if char:FindFirstChild"Shirt" then char.Shirt:Destroy() end end) end) |
|
|
| Report Abuse |
|
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
| |
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 03 Mar 2014 03:00 PM |
I'm using Start Server and Start Player. I'm getting no output, is that normal? Probally not. :< |
|
|
| Report Abuse |
|
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 03 Mar 2014 03:07 PM |
| The one FreeScriptMaker made. |
|
|
| Report Abuse |
|
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 03 Mar 2014 03:18 PM |
I'm afraid that isn't working.
It's a normal script right? Not a localscript. |
|
|
| Report Abuse |
|
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 03 Mar 2014 03:25 PM |
| Nothing, I tried resetting but it still doesn't remove the bloody shirt. |
|
|
| Report Abuse |
|
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 03 Mar 2014 03:35 PM |
| function arguments expected near ')' |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2014 03:39 PM |
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) wait(2)--ive found ive needed to add a wait for characteradded recently.. for I,v in pairs(c:GetChildren()) do if v:IsA("Shirt") then v:destroy() end end end) end) |
|
|
| Report Abuse |
|
|
yelloball
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 2749 |
|
|
| 03 Mar 2014 03:44 PM |
| That did the trick, meric beaucoup. |
|
|
| Report Abuse |
|
|
| |
|
Vexedly
|
  |
| Joined: 15 Sep 2006 |
| Total Posts: 7011 |
|
| |
|