How to do cross server matchmaking in roblox?

1.6k views Asked by At

I am trying to have matchmaking across servers for a game I am making where players would get matched up by how many points they have. I don't know how to do this though. I know maybe something with data stores or sql but I don't know where to start. If anyone could give me some pointers, or a general outline on how to do this it would help out a lot. Thanks.

1

There are 1 answers

2
ZombieSpy On

No need for an external site hosting a SQL server, it would only add unnecessary external dependencies. Roblox datastores are the way to go.

With a simple google search you should find relevant data. And with a simple search on the roblox wiki you can find the official guide for matchmaking.

The guide offers all necessary information and even uncopylocked example places: Lobby and Arena


As the datastore is shared between all Places (thus servers) in a Game, you can store the matching data there.

For example: you have a list with all players available to matching, and let the server match between them when a new player is added.

The proccess is similar to the above mentioned guide, you just have to share the matching-data between the servers with the datastore instead of just using it to transfer data.

A problem to keep in mind is race conditions although the Update function have some functionality to make it easier to avoid.