Group Rank For Team Script

I really advise you to learn script. Unfortunally, not always forum members would help

groupid = 9081616

game.Players.PlayerAdded:Connect(function(Player)
	Player.Team = game:GetService("Teams").Team -- change this with the non group member team
	if Player:GetRankInGroup(groupid) == 255 then
		Player.Team = game.Teams[“High Council”]
	elseif Player:GetRankInGroup(groupid) == 254 then
		Player.Team = game.Teams[“High Council”]
	elseif Player:GetRankInGroup(groupid) > 7 and Player:GetRankInGroup(groupid) < 254 then
		Player.Team = game.Teams[“L.I.M.B.O”]
	elseif Player:GetRankInGroup(groupid) == 7 then
		Player.Team = game.Teams[“The Brightburn Purgatory”]
	elseif Player:GetRankInGroup(groupid) < 7 then
		Player.Team = game.Teams[“L.I.M.B.O”]
	end
end)
2 Likes

ok thank you i will add it in serverscriptstorage

ok thank you im trying to learn it fully but i only know how to make obby and some gui scripts