local white = ("Institutional white")
local black = ("Really black")
local teams = game:GetService("Teams"):GetTeams()
script.Parent.Touched:connect(function(hit)
player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
for i = 1, #teams do
team = teams[i]
if team.TeamColor == player.TeamColor then
script.Parent.BrickColor = BrickColor.new(team.TeamColor)
script.Parent.Material = "Neon"
end
end
end
end)
COMMUNITY QUESTION
Error is in line 12 but what is it?
2 answers
You tell us.
We are not a substitute for your brain.
Team.TeamColor is not an object. You can't make a new one of that since it is a property
1 comment
0
Wrong :c
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
No need to be rude. I am only asking for help, I am learning scripting all I want is help and people have to be sassy about it. I was told that people who are learning are treated nicely.
You told us nothing. Nothing. Nada. Nowt. Nil. Squat.