game.Players.PlayerAdded:Connect(function(player)
if player:IsInGroup("4692686", "4698727") then
player.TeamColor = BrickColor.new("Royal purple")
elseif player:IsInGroup("4692686", "4698507") then
player.TeamColor = BrickColor.new("Maroon")
elseif player:IsInGroup("4692686", "4721577") then
player.TeamColor = BrickColor.new("Black")
elseif player:IsInGroup("4692686") then
player.TeamColor = BrickColor.new("Bright red")
else
player.TeamColor = BrickColor.new("Bright blue")
end
end)
COMMUNITY QUESTION
Why doesn't my script put players on team based on group?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Whats the output, also your using the same groupid multiple times?