game.Players.PlayerAdded:Connect(function(player)
local group = player:IsInGroup(12905521)
local rank = player:GetRankInGroup(12905521)
local ins = player:IsInGroup(7778458)
local NG = player:IsInGroup(17026921)
local Special = player:IsInGroup(17031872)
local Training = player:IsInGroup(17031852)
local Custom = player:IsInGroup(17052512)
local Internal = player:IsInGroup(17104906)
local ForeignAffairs = player:IsInGroup(32749654)if not group then
player.TeamColor = BrickColor.new(“Bright yellow”)
end
if rank == (1) then
player.TeamColor = BrickColor.new(“Deep orange”)
end
if NG then
player.TeamColor = BrickColor.new(“CGA brown”)
elseif N/A then
player.TeamColor = BrickColor.new(“N/A”)
elseif Internal then
player.TeamColor = BrickColor.new(“Dark stone grey”)
elseif ForeignAffairs then
player.TeamColor = BrickColor.new(“Lily white”)
elseif Special then
player.TeamColor = BrickColor.new(“Cool yellow”)
elseif Custom then
player.TeamColor = BrickColor.new(“Fossil”)
elseif OIG then
player.TeamColor = BrickColor.new(“Dark orange”)
end
player:LoadCharacter()
end)
At if
rank == (1) then player.TeamColor = BrickColor.new(“Deep orange”)
end
I want to add multiple rank IDs but how to do that so it affects all rankIDs placed?