As you see, that is my question. I already have the group rank numbers, but I'm not sure how.
Just a simple if statement could be used to check if a player's rank in a group is equal to a certain number! Using :GetRankInGroup() returns the number value, so you could do something like this:
if game.Players.player:GetRankInGroup(num)==num2 then game.Players.player:Kick("You are banned") end