|
| 29 Apr 2012 07:33 PM |
"Team is not a valid member of model." ...yes it is.
I have this model with a BrickColorValue called "Team" inside of it. This model is assigned to the variable "troop"
print(troop.Team) --Line 53 troop.Team = teams[i].TeamColor --Line 54
When I use that code, I get the following in the output: Team (Line 53) Team is not a valid member of Model (Line 54)
How can this be? Right before line 54 it clearly has Team inside of it. I can see the Team in the explorer. What is happening here?
|
|
|
| Report Abuse |
|
|
| |
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 29 Apr 2012 07:58 PM |
"teams[i].TeamColor --Line 54"
what
wouldn't it just be ".Value"? |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2012 07:59 PM |
| No, but you made me notice something. 1sec |
|
|
| Report Abuse |
|
|
|
| 29 Apr 2012 08:01 PM |
Fixed.
Should've been troop.Team.Value = teams[i].TeamColor
derrrrp |
|
|
| Report Abuse |
|
|