025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 13 Jan 2015 03:04 PM |
game.Players.PlayerAdded:connect(function(char) char.CharacterAdded:connect(function(p) if p:FindFirstChild("Shirt") then p.Shirt:Destroy() if p:FindFirstChild("Pants") then p.Pants:Destroy() if p.Torso:FindFirstChild("roblox") then p.Torso.roblox:Destroy() end end end end) end)
R$6,526 |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:09 PM |
I just made a script like this. Is the shirt and pants going away?
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 13 Jan 2015 03:11 PM |
no nothing happens
R$6,526 |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Jan 2015 03:12 PM |
| I think is Pant not Pants and you are searching for something named Shirt or Pants, gear isnt named that |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 13 Jan 2015 03:13 PM |
I think my first issue was interlocked if statements: still doesn't work though game.Players.PlayerAdded:connect(function(char) char.CharacterAdded:connect(function(p) if p:FindFirstChild("Shirt") then p.Shirt:Destroy() end if p:FindFirstChild("Pants") then p.Pants:Destroy() end if p.Torso:FindFirstChild("roblox") then p.Torso.roblox:Destroy() end end) end)
R$6,526 |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:17 PM |
You did not check,
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 13 Jan 2015 03:20 PM |
"You did not check, "
who are you to say I didn't check [which I did]
R$6,526 |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:21 PM |
| I haven't looked over the script but you might wanna use print's to see if your script is actually even being ran correctly. |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 13 Jan 2015 03:22 PM |
I just did, everything prints
R$6,526 |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Jan 2015 03:24 PM |
| clothes gear is NOT named Shirt or Pants, they are named the name of the gear |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2015 03:25 PM |
You need to do p.Character, you are in the game.Players, not game.Workspace.
~Do not be confident unless you know whats under the hood.~ |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 13 Jan 2015 03:27 PM |
wrong @mrnoobe23
"Character is not a valid member of model"
R$6,526 |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Jan 2015 03:28 PM |
| are you joking me? I told you why it doesn't work |
|
|
| Report Abuse |
|
|
robotmega
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
|
| 13 Jan 2015 03:28 PM |
| add a wait(3) because it takes time for people clothes to load |
|
|
| Report Abuse |
|
|
robotmega
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
| |
|
robotmega
|
  |
| Joined: 16 May 2009 |
| Total Posts: 14084 |
|
|
| 13 Jan 2015 03:30 PM |
| nvm dont ur script was confusing |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 13 Jan 2015 03:35 PM |
thnx robot
game.Players.PlayerAdded:connect(function(char) char.CharacterAdded:connect(function(p) wait(1.5) if p:FindFirstChild("Shirt") then p.Shirt:Destroy() end if p:FindFirstChild("Pants") then p.Pants:Destroy() end if p.Torso:FindFirstChild("roblox") then p.Torso.roblox:Destroy() end end) end)
works
R$6,526 |
|
|
| Report Abuse |
|
|