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
 

Team is not a valid member of model.

Previous Thread :: Next Thread 
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
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
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
29 Apr 2012 07:56 PM
no comprendo
Report Abuse
xSIXx is not online. 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
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
29 Apr 2012 07:59 PM
No, but you made me notice something. 1sec
Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
29 Apr 2012 08:01 PM
Fixed.

Should've been troop.Team.Value = teams[i].TeamColor




derrrrp
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