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: I have a problem with my team clothing script...

Previous Thread :: Next Thread 
jamiyjamie is not online. jamiyjamie
Joined: 16 Oct 2008
Total Posts: 7899
21 Oct 2013 06:23 PM
When I made it 3 months ago it was working perfectly, however now something has happened and it doesn't work for what ever reason. I tested it and it came up with this:
"TeamColor is not a valid member of DataModel"
I'm guessing that TeamColor is now something else?
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
21 Oct 2013 06:25 PM
Script please.

Sanctuary <3 ᶘ ᵒᴥᵒᶅ
Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
21 Oct 2013 06:25 PM
Script?
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
21 Oct 2013 06:25 PM
Script.
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
21 Oct 2013 06:26 PM
Get ninjad.

Sanctuary <3 ᶘ ᵒᴥᵒᶅ
Report Abuse
jamiyjamie is not online. jamiyjamie
Joined: 16 Oct 2008
Total Posts: 7899
21 Oct 2013 06:26 PM
if script.Parent.Parent.TeamColor == BrickColor.new("Bright red") then
if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Shirt") == nil then
if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Pants") ~= nil then
workspace:FindFirstChild(script.Parent.Parent.Name).Pants:remove()
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
else
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
end
else
if workspace:FindFirstChild(script.Parent.Parent.Name):FindFirstChild("Pants") ~= nil then
workspace:FindFirstChild(script.Parent.Parent.Name).Shirt:remove()
workspace:FindFirstChild(script.Parent.Parent.Name).Pants:remove()
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
else
workspace:FindFirstChild(script.Parent.Parent.Name).Shirt:remove()
a = Instance.new("Shirt")
a.ShirtTemplate = ("http://www.roblox.com/asset/?id=104455672")
a.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
b = Instance.new("Pants")
b.PantsTemplate = ("http://www.roblox.com/asset/?id=104455680")
b.Parent = workspace:FindFirstChild(script.Parent.Parent.Name)
end
end
end
Report Abuse
jamiyjamie is not online. jamiyjamie
Joined: 16 Oct 2008
Total Posts: 7899
21 Oct 2013 06:31 PM
That's the script.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
21 Oct 2013 06:38 PM
You're putting it in the wrong place most likely.
Report Abuse
jamiyjamie is not online. jamiyjamie
Joined: 16 Oct 2008
Total Posts: 7899
21 Oct 2013 06:44 PM
Oh yeah, it needed to be in StarterGui. Also another problem, how do I make it loop so if I die/reset it still uses these clothes, because right now it doesn't.
Report Abuse
ScrewDeath is not online. ScrewDeath
Joined: 03 Jun 2012
Total Posts: 2700
21 Oct 2013 06:57 PM
Make it wait for char (I'm assuming that's your prob)

repeat wait() until player.Character--pseudocode
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