Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"TeamColor is not a valid member of Model" I don't know why this is happening? Please see the link

Asked by 7 years ago

If anyone could look through this: https://forum.roblox.com/Forum/ShowPost.aspx?PostID=218142071

and help me out? that would be nice ;)

2 answers

Log in to vote
0
Answered by 7 years ago

From the looks of the title, there is something wrong with the bit of code that changes the team of the player. The part you touch to change your team is mabye touchin a non-humanoid thing, and obviously it wont find a team-color in a model. We need the actual code to help you.

Ad
Log in to vote
0
Answered by 7 years ago

A possible reason for this is that you are trying to change the team color to a team that does not exist. Make sure that the team which you are trying to change the player to exists. It could also be that you are trying to change the color by doing:

game.Players.LocalPlayer.Character.TeamColor = "Really red"

If you are doing that then do this:

game.Players.LocalPlayer.TeamColor = "Really red"

It could also be what SpyGuyTBM said. Or maybe all three. Also, please show us the code in which you attempted to change the color of the player so we may better help you.

Answer this question