Team Assign Command Not Working

No idea, I just copied whatever rank values they decided to use, they probably want to use something like this though:

local Players = game:GetService("Players")
local Storage = game:GetService("ReplicatedStorage")
local TeamEvent = Storage:WaitForChild("AssignTeams")

Players.PlayerAdded:Connect(function(Player)
	Player.Chatted:Connect(function(Message)
		if string.lower(string.sub(Message, 1, 11)) == "!teamassign" and Player:GetRankInGroup(11941815) >= 1 and Player.TeamColor == BrickColor.new("Pastel orange") then
			TeamEvent:FireServer()
		end
	end)
end)
local GroupID = 11941815
local Storage = game:GetService("ReplicatedStorage")
local TeamEvent = Storage:WaitForChild("AssignTeams")
TeamEvent.OnServerEvent:Connect(function(Player)
	if Player:GetRankInGroup(GroupID) == 0 then --change 0 to some valid group rank
		Player.TeamColor = BrickColor.new("Salmon")
	elseif Player:GetRankInGroup(GroupID) == 0 then --change 0 to some valid group rank
		Player.TeamColor = BrickColor.new("Sage green")
	elseif Player:GetRankInGroup(GroupID) == 0 then --change 0 to some valid group rank
		Player.TeamColor = BrickColor.new("Buttermilk")
	end)
end)

Since a group rank greater than or equal to 1 indicates that the user is a member of the group.

Nope, I meant Player:GetRankInGroup(11941815) >= 15, because what I need is for the player to be in the group, and over or equal to 15, to prevent exploits even if the player’s team color is pastel orange. (:

Sorry for not responding, nor using your work. My computer’s driver since this was posted has gone bad, and I am currently working to fix it.