itunes89
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 1957 |
|
|
| 04 Feb 2012 04:33 PM |
function changeTeam() print("ran") for i,v in pairs(game.Players:GetChildren()) do v.TeamColor = BrickColor.new(24) print(v.TeamColor) end end
This is apart of a main. Okay the output is printing the right color, but the persons team color will not change. |
|
|
| Report Abuse |
|
|
itunes89
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 1957 |
|
|
| 04 Feb 2012 04:39 PM |
please anyone.
~~Itunes89 Teacher, Programmer, Friend |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
| |
|
|
| 04 Feb 2012 04:40 PM |
i don't see anything wrong, so i just rewrote it.
function changeTeam() print("changing team...") for i,v in pairs(game.Players:GetPlayers()) do v.TeamColor = BrickColor.new("Bright Yellow") print(v.TeamColor) end end
~I script Awesome sauce to go with my spaghetti code |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:40 PM |
> Try changing = to ==
What good would that do? |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
|
| 04 Feb 2012 04:42 PM |
@King Lol, that fixes my problems with if statements. |
|
|
| Report Abuse |
|
|
|
| 04 Feb 2012 04:43 PM |
| But this isn't an if statement... |
|
|
| Report Abuse |
|
|
TwoBoo
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 10790 |
|
| |
|
itunes89
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 1957 |
|
|
| 04 Feb 2012 04:51 PM |
it would break it.
~~Itunes89 Teacher, Programmer, Friend |
|
|
| Report Abuse |
|
|
NeonBlox
|
  |
| Joined: 19 Oct 2008 |
| Total Posts: 1462 |
|
|
| 04 Feb 2012 04:52 PM |
| Just for the sake of asking, did you call the function? |
|
|
| Report Abuse |
|
|
itunes89
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 1957 |
|
|
| 04 Feb 2012 04:54 PM |
it is still broke. Why...
~~Itunes89 Teacher, Programmer, Friend |
|
|
| Report Abuse |
|
|
itunes89
|
  |
| Joined: 19 Jan 2011 |
| Total Posts: 1957 |
|
| |
|