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
|
  |
| Joined: 27 Dec 2009 |
| Total Posts: 485 |
|
| |
|
ayub32
|
  |
| Joined: 27 Dec 2009 |
| Total Posts: 485 |
|
| |
|
|
| 10 May 2014 07:20 PM |
| :WaitForChild("Body Colors") |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 27 Dec 2009 |
| Total Posts: 485 |
|
|
| 10 May 2014 07:24 PM |
| Thanks wazap but your does not work either. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
| |
|
ayub32
|
  |
| Joined: 27 Dec 2009 |
| Total Posts: 485 |
|
| |
|