Skip to content

Introduction

SimpleMatchmaking is a module built with ease of use and customizability in mind using ROBLOX's MemoryStoreService. It works by publishing match instances to a SortedMap for easy and fast editing. The module makes use of the behavior of the native UpdateAsync function to allow all servers to access the SortedMap instead of having one central server handle all the work.

Warning

SimpleMatchmaking has not been tested in a production environment. If you encounter any issue please let me know.

Methods

GetQueue

This function returns a MatchmakingQueue class with the provided name and options.
Subsequent calls with the same name and options will return the same Queue.

Warning

Calling GetAsync multiple times with the same name but different options will cause issues such as having matches with different number of teams in the same queue.

Parameters

name: String The name of the queue.
options The options needed to set the parameters of the queue and its behavior.

Result

MatchmakingQueue The class that exposes access to the different functions useful to manage the data.


NewOptions

This function creates and returns a new QueueOptions class.

Parameters
no parameters needed.

Result

QueueOptions The class used to set all the different options to customize a queue.