So I've made this
function onPlayerEntered(plyr)
if plyr:IsInGroup(5233740)>=10 then
plyr.TeamColor = BrickColor.new("Bright yellow")
elseif plyr:IsInGroup(5244884) then
plyr.TeamColor = BrickColor.new("Navy blue")
elseif plyr:IsInGroup(5235212) then
plyr.TeamColor = BrickColor.new("Crimson")
elseif plyr:IsInGroup(5246404) then
plyr.TeamColor = BrickColor.new("Really black")
elseif plyr:IsInGroup(5233740)<10 then
plyr.TeamColor = BrickColor.new("Cyan")
end
end
game.Players.PlayerAdded:connect(onPlayerEntered)
But won't work, I have a main group and 3 divisions, so I want when someone joins IF he is a HR in the main group to be teamed Bright yellow, if not check if he is in any of the three divisions and lastly to be teamed in the main group; and I managed to make it work 'till I added the ranks' matter (<= etc.) next to the ID... Can anyone do this for me?

1 comment
Works like a charm! Can't accept answear for a reason, there is only the report option, hm?