function onPlayerEntered(plyr)
if plyr:IsInGroup(2595428) and if plyr.rank.("1") then.game.players.TeamColor = BrickColor.new("Bright blue") then
plyr.TeamColor = BrickColor.new("Medium stone grey")
end
end
game.Players.PlayerAdded:connect(onPlayerEntered)
First of all I am trying to make it to where if someone is a HR in my group they get teamed to Bright blue team. And if someone is not a HR they get teamed to Medium stone grey team.

2 comments
Bruh, the paramater is the player, why did you make it hit? You did not even have to make the 'p' variable.
Because every good scripter makes it
(hit). Ultraw recommend me to do this so I am doing it, also many other scripters do this.