Trying to make this script so people in 1 certain rank can't change to the team, but all the other ranks can:
function Click(mouse) if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(193585) then script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Bright blue") elseif script.Parent.Parent.Parent.Parent.Parent:IsInGroup(193585) and IsRankInGroup == 2 then script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Institutional white") end end script.Parent.MouseButton1Click:connect(Click)