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 » Scripting Helpers
Home Search
 

Re: How would I go about removing T-shirts in game

Previous Thread :: Next Thread 
Terrixx is not online. Terrixx
Joined: 28 Sep 2013
Total Posts: 7386
27 Jun 2014 04:41 PM
Title.
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
27 Jun 2014 04:42 PM
player whatever
character whatever
character.Torso:FindFirstChild("Tshirtnameidkwhatitiscalllol"):Destroy()
end
end
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 04:43 PM
Why do you want to?

I am not 100% sure you can, not without wiping all their clothes.
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
27 Jun 2014 04:43 PM
put an if in there too
Report Abuse
Terrixx is not online. Terrixx
Joined: 28 Sep 2013
Total Posts: 7386
27 Jun 2014 04:51 PM
That's the point. I want to remove everything and create my own characters for people to spawn as.
Report Abuse
Kirbyfan56 is not online. Kirbyfan56
Joined: 29 Oct 2007
Total Posts: 179
27 Jun 2014 04:53 PM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character.Torso.roblox.Texture="rbxassetid://0"
end)
end)
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 04:54 PM
game.Players.PlayerAdded:connect(function(player)
player.CanLoadCharacterAppearance = false
end)
Report Abuse
nacker is online. nacker
Joined: 06 Oct 2009
Total Posts: 6034
27 Jun 2014 04:54 PM
I did this before, it goes something like this (rough and untested)

wait(3)--wait for character to load clothing
for I,v in pairs(player:GetChildren()) do
if v.Name=="Shirt Graphic" then
v:remove()
else if v.Name=="Torso" then
roblox:remove()
end
end
player.Torso.Transparency=1
player.Torso.Transparency=0
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
27 Jun 2014 05:01 PM
how about

for loop on torso
if not i:IsA"Weld" then
i:Destroy()
end
end
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 05:02 PM
Or how about

game.Players.PlayerAdded:connect(function(player)
player.CanLoadCharacterAppearance = false
end)

Which means you don't need to bother with any of that ;)
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
27 Jun 2014 05:04 PM
but then he's naked
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 05:04 PM
"That's the point. I want to remove everything and create my own characters for people to spawn as."

So this achieves everything he needs and more.
Report Abuse
wonuf is not online. wonuf
Joined: 28 May 2013
Total Posts: 133
27 Jun 2014 05:06 PM
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(AddPlayer)
AddPlayer.Character:WaitForChild("Torso"):WaitForChild("roblox"):remove()
end)
end)
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
27 Jun 2014 05:06 PM
o sorry
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
27 Jun 2014 05:10 PM
do what notunknown is doing.
Report Abuse
Terrixx is not online. Terrixx
Joined: 28 Sep 2013
Total Posts: 7386
27 Jun 2014 05:36 PM
Awesome! Thanks guys! Now all I need to do is figure out how to change the body colors....
Report Abuse
LordMatthewII is not online. LordMatthewII
Joined: 20 Aug 2011
Total Posts: 10873
27 Jun 2014 06:04 PM
Simple

blah.Torso.Color=WHATEVS
Report Abuse
Terrixx is not online. Terrixx
Joined: 28 Sep 2013
Total Posts: 7386
27 Jun 2014 06:07 PM
I highly doubt "blah" works.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 06:23 PM
In the script I made:

player.CharacterAdded:connect(function(character)
character.Torso.BrickColor = BrickColor.new("Bright red")
end)
Report Abuse
Terrixx is not online. Terrixx
Joined: 28 Sep 2013
Total Posts: 7386
27 Jun 2014 07:02 PM
@Notunknown99
That script doesn't work properly...
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 07:12 PM
How so? Did you put it inside the script I gave you?
Report Abuse
Terrixx is not online. Terrixx
Joined: 28 Sep 2013
Total Posts: 7386
27 Jun 2014 07:17 PM
I may have done something wrong but it says the first line has something wrong with it....
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 07:24 PM
Post the script used :P

You were supposed to put it in the code block of the PlayerAdded event.
Report Abuse
Terrixx is not online. Terrixx
Joined: 28 Sep 2013
Total Posts: 7386
27 Jun 2014 07:30 PM
I don't even know wtf to do....sorry for being a noob....
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
27 Jun 2014 07:31 PM
game.Players.PlayerAdded:connect(function(player)
player.CanLoadCharacterAppearance = false
player.CharacterAdded:connect(function(character)
character.Torso.BrickColor = BrickColor.new("Bright red")
end)
end)

--I require payment:
--You learning to script.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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