How can I make a matchmaking system with MemoryService?

I’m making a tower defense game and I couldn’t figure out how to make a global matchmaking system with memory service. Can anyone tell me and demonstrate a script? I’m not really good at scripting.

Thank you for your responses!