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
 

script to remove someone's t-shirt

Previous Thread :: Next Thread 
leo1457 is not online. leo1457
Joined: 01 May 2014
Total Posts: 6921
01 Jan 2017 11:32 AM
ive removed the shirt graphic and it's not working, how can i remove the t-shirt of a player?


r+://553352969r+://553353047 siggies r+://561265896
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
01 Jan 2017 11:34 AM
Check if they have a shirt by doing :FindFirstChild()


http://wiki.roblox.com r+://169950678
Report Abuse
leo1457 is not online. leo1457
Joined: 01 May 2014
Total Posts: 6921
01 Jan 2017 11:36 AM
ive done i,v in pairs to check if they have had a t-shirt and it still doesn't get removed


r+://553352969r+://553353047 siggies r+://561265896
Report Abuse
UltimateRaheem is not online. UltimateRaheem
Joined: 10 Nov 2012
Total Posts: 1886
01 Jan 2017 11:38 AM
Did you use the :Destroy() function?


http://wiki.roblox.com r+://169950678
Report Abuse
leo1457 is not online. leo1457
Joined: 01 May 2014
Total Posts: 6921
01 Jan 2017 11:38 AM
Yes

for i, v in pairs(plr.Character:GetChildren()) do
if v:IsA("Clothing") or v:IsA("Pants") or v:IsA("Shirt Graphic") or v:IsA("CharacterMesh") or v:IsA("Accessory") then
v:Destroy()
end
end


r+://553352969r+://553353047 siggies r+://561265896
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
01 Jan 2017 11:39 AM
^

for _, object in pairs(plr.Character:GetChildren()) do
if object:IsA("CharacterAppearance") or object:IsA("Accessory") then
object:Destroy()
end
end

absolutely no reason why that shouldn't work

Formerly ToxicDominator - add 30,319 posts
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