The script is supposed to change a player's team on touched. When a player touches it, however, I get the error "TeamColor is not a valid member of Model"
function onTouch(part)
if part.Parent:FindFirstChild("Humanoid") then
part.Parent.TeamColor = BrickColor.new("Bright red")
end
end
script.Parent.Touched:connect(onTouch)
Any help?

2 comments
Aha, thanks! Didn't know this!
You're welcome!