So I am wanting to associate teams with group ranks but I can't seem to figure out how. I tried a conditional statement but it kept saying "then" was incorrect or there needed to be an '=' sign before "nePlayer:..."
Here is the most recent local script that I tried. If anyone can help it would be amazing.
Here it is-
game.Players.PlayerAdded:connect(function(newPlayer) local rank=newPlayer:GetRankInGroup(2711838) local teamName='Owner' if rank ==255 then teamName='Owner' end end)
game.Players.PlayerAdded:connect(function(newPlayer) local rank=newPlayer:GetRankInGroup(2711838) if rank ==255 then newPlayer.TeamColor = BrickColor.new("Bla") end --Change Bla to the color of the team, The color is the color of the team when it is created. (TeamColor property of a Team) end)
Hope this helped! If it did, please leave an upvote!