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: Removing shirt.

Previous Thread :: Next Thread 
yelloball is not online. 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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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 is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
02 Mar 2014 12:05 PM
Merci beaucoup.
Report Abuse
yelloball is not online. 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 is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
03 Mar 2014 11:22 AM
Up.
Report Abuse
FreeScriptMaker is not online. FreeScriptMaker
Joined: 29 Nov 2013
Total Posts: 2275
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 is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
03 Mar 2014 01:55 PM
Not working online mate.
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
03 Mar 2014 02:55 PM
Up.
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 02:57 PM
[ Content Deleted ]
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 02:59 PM
[ Content Deleted ]
Report Abuse
yelloball is not online. 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 is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 03:03 PM
[ Content Deleted ]
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
03 Mar 2014 03:07 PM
The one FreeScriptMaker made.
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 03:10 PM
[ Content Deleted ]
Report Abuse
yelloball is not online. 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 is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 03:20 PM
[ Content Deleted ]
Report Abuse
yelloball is not online. 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 is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 03:30 PM
[ Content Deleted ]
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 03:32 PM
[ Content Deleted ]
Report Abuse
yelloball is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
03 Mar 2014 03:35 PM
function arguments expected near ')'
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
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 is not online. yelloball
Joined: 17 Feb 2010
Total Posts: 2749
03 Mar 2014 03:44 PM
That did the trick, meric beaucoup.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
03 Mar 2014 03:53 PM
HOORAY!
caps
Report Abuse
Vexedly is not online. Vexedly
Joined: 15 Sep 2006
Total Posts: 7011
03 Mar 2014 04:09 PM
[ Content Deleted ]
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