Assign player team/class with conditional button in verse

I was trying to give players flight they can control within a skydive volume and input device. Problem was that every player had control over the volume and if one player enabled or disabled it, then all players were effected. I solved this by stacking skydive volumes with specific team/class assignments and multiplying input devices.

What I would really like is use a conditional button so that the player can buy the superpower. How can I streamline it in verse so that I can use one button that will assign activating player to a new team/class that’s not already in use? I’m still learning Verse. My thought was maybe an array that checks all players and team values then if conditional button is satisfied will assign the player the next available team/class? Would someone like to help me with the basic Verse set-up of a device like this? I greatly appreciate any input.