Get reserved server by player code

So what i want to achieve is the reserved system with codes, like you put a small code on a textbox and get the reserved server code and then the player can teleport, is there any way to do this?

what i was trying is to make a 2 datastore values one with the code and another one with the reserved code then i can get the player from de code and form the player i can get the code, i was trying to do this with OrderedDataStore but any result.

anyone can help me? thanks for reading.