Private Server System

Hello, I am currently working on a new game. I’m trying to implement custom private servers that generate a code and you can join a private server like Gpo or Project Star or even Slayers unleashed. The Problem i have no knowledge how to do that could anybody maybe help me?

:Reserved server and memorystoreservice are the tool’s for this.

How woud you use memorystoreservice lets say i use random.math how do I save that

I’m not so experienced in memorystoreservice but this page will help definitely . Memory Stores | Roblox Creator Documentation

Memory Store Service is mainly for temporary storage he would want to Data Stores | Roblox Creator Documentation for this.

Even if it’s temp, the private server is temp too.

It really depends on how long the private server is gonna be kept up for, if they are gonna play in it for ages then you should use data store, really for it you should use datastore anyway as using memory store service has no real benefits and also just has a lower memory size allocated.

But it’s low lantecy and that’s what it’s supposed to be used for.

Data stores only cache for about a minute and private servers don’t have to really be low latency to open but whatever floats your boat

how woud i use the datastore in this case?

You would SetAsync the key as the invite code id and the code as the private server id

Use :SetAsync and have the key as the private server key, then have all the private server information (Including the key) in a table as the data