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: Help with BodyColors

Previous Thread :: Next Thread 
ayub32 is not online. ayub32
Joined: 27 Dec 2009
Total Posts: 485
10 May 2014 05:10 PM
I cannot seem to find an error, as the output is returning "18:10:08.892 - Body Colors is not a valid member of Model"










game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
repeat wait() until c
plr = game.Players:getPlayerFromCharacter(c)
if plr.TeamColor == BrickColor.new("Deep blue") then
c["Body Colors"].TorsoColor = BrickColor.new("Deep blue")
elseif plr.TeamColor == BrickColor.new("Bright red") then
c["Body Colors"].TorsoColor = BrickColor.new("Bright red")
end
end)
end)
Report Abuse
ayub32 is not online. ayub32
Joined: 27 Dec 2009
Total Posts: 485
10 May 2014 05:17 PM
Bump
Report Abuse
ayub32 is not online. ayub32
Joined: 27 Dec 2009
Total Posts: 485
10 May 2014 07:19 PM
Is anyone on?
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 07:20 PM
:WaitForChild("Body Colors")
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
10 May 2014 07:21 PM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
repeat wait() until c and c:findFirstChild("Body Colors")
if p.TeamColor == BrickColor.new("Deep blue") then
c["Body Colors"].TorsoColor = BrickColor.new("Deep blue")
elseif p.TeamColor == BrickColor.new("Bright red") then
c["Body Colors"].TorsoColor = BrickColor.new("Bright red")
end
end)
end)
Report Abuse
ayub32 is not online. ayub32
Joined: 27 Dec 2009
Total Posts: 485
10 May 2014 07:24 PM
Thanks wazap but your does not work either.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 07:25 PM
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
bc = c:WaitForChild("Body Colors")
if p.TeamColor == BrickColor.new("Deep blue") then
bc.TorsoColor = BrickColor.new("Deep blue")
elseif p.TeamColor == BrickColor.new("Bright red") then
bc.TorsoColor = BrickColor.new("Bright red")
end
end)
end)
Report Abuse
ayub32 is not online. ayub32
Joined: 27 Dec 2009
Total Posts: 485
10 May 2014 07:31 PM
Sensei there is an error, the output returned an error on line 3.


20:29:36.916 - WaitForChild called on an Instance that is not in a DataModel.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 May 2014 07:32 PM
Huh. No idea.
Report Abuse
ayub32 is not online. ayub32
Joined: 27 Dec 2009
Total Posts: 485
11 May 2014 03:50 PM
Le bump
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