Ranks for different teams

How do I make ranks for different teams? I want each team to have different ranks. For example the guards have ranks from rookie to major, and the prisoners have ranks from rookie to mafia
image

Inside Explorer there is a Catagory (or folder) Called Teams, inside there, Create a Instance called Team
Screenshot (55)
Screenshot (56)

I mean the rank system with lvl and xp

I will do the rank up system myself, but I need to understand how to make different ranks for different teams

Just make a script that makes the leaderboard, checks their team then assigns their rank from a datastore.

As far as how they receive the rank and get promoted, thats up to you.

that s the problem, I can t make it work correct, I can t make it check for teams and different ranks