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.