How to make auto team not team a certain group role/team?

Hey! With the auto teaming script, is there a way for it to not team/sort a certain team/group role?

1 Like

Yep there is a way, check there players rank when you CreateTeams and AssignTeams.

1 Like

You can use this, this guy made this script Profile - Forummer - Developer Forum | Roblox
But this will 100% work as I use it, yes I edited this script but it was mostly made by him, edit the group id, rank ids, and team names.

game.Players.PlayerAdded:Connect(function(newPlayer)
local rank = newPlayer:GetRankInGroup) – Put groupid here
local teamName = β€œβ€
if rank == 255 then
teamName = β€œOwner of the Game” – Change owner to team name
elseif rank == then
teamName = β€œβ€ – Change OD to team name
elseif rank == 254 then – Change 254 to your rank number
teamName = β€œβ€ – Change admin to team name
elseif rank == 252 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 251 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 250 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 249 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 248 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 19 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 14 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 15 then – Change 0 to your rank number
teamName = " – Change member to team name
elseif rank == 18 then – Change 0 to your rank number
teamName = β€œβ€ – Change member to team name
elseif rank == 16 then
teamName = β€œβ€
elseif rank == 20 then
teamName = β€œβ€
elseif rank == 17 then
teamName = β€œβ€
elseif rank == 13 then
teamName = β€œβ€
end
newPlayer.TeamColor = game.Teams[teamName].TeamColor
if (newPlayer.Character ~= nil) then – The character is already loaded
newPlayer:LoadCharacter()
end
end)

Not an efficient solution, but possible.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.