I want to make it to where when a person joins, the server script checks if the player is in one of these roles in the group, and if so, put them in the certain team. I get the error "BrickColor cannot be assigned to" and nothing else. Just curious what I am doing wrong. And yes, this is my first time messing with group roles and IsInGroup, so bare with me.
game.Players.PlayerAdded:connect(function(Plr)
if Plr:IsInGroup(2917029) and Plr:GetRankInGroup(2917029) >= 253 then
Plr.TeamColor.BrickColor = BrickColor.new("Black")
else if
Plr:IsInGroup(2917029) and Plr:GetRankInGroup(2917029) < 253 then
Plr.TeamColor.BrickColor = BrickColor.new("Blue")
else if
Plr:IsInGroup(2917029) and Plr:GetRankInGroup(2917029) >=1 <=7 then
Plr.TeamColor.BrickColor = BrickColor.new("Fossil")
else if
Plr:IsInGroup(2917029) and Plr:GetRankInGroup(2917029) <1 then
Plr.TeamColor.BrickColor = BrickColor.new("Lime Green")
end
end
end
end
end)
