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)

6 comments
ok I did that and it still didnt work. I typed it like this-
game.Players.PlayerAdded:connect(function(newPlayer) local rank=newPlayer:GetRankInGroup(2711838) if rank ==255 then newPlayer.TeamColor = BrickColor.new("black") end
'black' is not a valid color. 'Black' is. Capitals matter in lua coding.
Also would the local script be in Workspace or teams?
Erm it would be a script in workspace..
Oh ok