Auto Team script according to group ranks not correctly working. Anyone?
So I've made this
01 | function onPlayerEntered(plyr) |
03 | if plyr:IsInGroup( 5233740 )> = 10 then |
05 | plyr.TeamColor = BrickColor.new( "Bright yellow" ) |
09 | elseif plyr:IsInGroup( 5244884 ) then |
11 | plyr.TeamColor = BrickColor.new( "Navy blue" ) |
15 | elseif plyr:IsInGroup( 5235212 ) then |
17 | plyr.TeamColor = BrickColor.new( "Crimson" ) |
21 | elseif plyr:IsInGroup( 5246404 ) then |
23 | plyr.TeamColor = BrickColor.new( "Really black" ) |
27 | elseif plyr:IsInGroup( 5233740 )< 10 then |
29 | plyr.TeamColor = BrickColor.new( "Cyan" ) |
35 | 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?