generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: simple script no error [help]

Previous Thread :: Next Thread 
025110 is not online. 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
MrNoobe123 is not online. MrNoobe123
Joined: 14 Nov 2014
Total Posts: 153
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 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
13 Jan 2015 03:11 PM
no nothing happens


R$6,526
Report Abuse
chimmihc is not online. 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 is not online. 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
MrNoobe123 is not online. MrNoobe123
Joined: 14 Nov 2014
Total Posts: 153
13 Jan 2015 03:17 PM
You did not check,

~Do not be confident unless you know whats under the hood.~
Report Abuse
025110 is not online. 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
FadedExistence is not online. FadedExistence
Joined: 28 Jun 2011
Total Posts: 818
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 is not online. 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 is not online. 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
MrNoobe123 is not online. MrNoobe123
Joined: 14 Nov 2014
Total Posts: 153
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 is not online. 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 is not online. 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 is not online. 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 is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
13 Jan 2015 03:29 PM
also change p to char
Report Abuse
robotmega is not online. robotmega
Joined: 16 May 2009
Total Posts: 14084
13 Jan 2015 03:30 PM
nvm dont ur script was confusing
Report Abuse
025110 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image