How can I make a room system?

I want to make a room system for my game so players can make private/public rooms but I can’t seem to find a way to do it. I also want the rooms to sync between servers but my knowledge at that is limited.
If someone can help me I will really appreciate it.

1 Like

There’s not enough info to go on here. Please explain what you mean by ‘room system’ in more detail

I wanna do something like this, you can make a room and then people can join it and if you join a room it sends you to a different server.

You can look at Cross-Server Messaging to sync data between servers and ReserveServer to create an instance for the party. This will also need to be sent out to each server so the respective members of your party can teleport in when the party leader starts the party.

The rest is all about problem solving. Outline your problem and have a crack at it. You can do further research on the Developer Hub if you need more articles to check up on, around the DevForum for threads discussing party systems (help questions, resources, so on) and the toolbox for potentially open source resources about party creation.

1 Like

Yeah I know I can do that I just don’t know how I can send the server details like password and max players and that it will make a new frame with so you can join it.

That article will help you as well as provide a place to start doing research on the topic.

If you need your parties to be password locked then you can create the data immediately on the current server and send it via MessagingService to other servers so that those servers can cache the party data on their end. From there, if a party member wants to join then they submit a request with data and their server checks if what they entered was correct. If so, send a request around that the player was able to successfully join the party they selected.

You can also designate the servers in which the parties were created in as dedicated hosts for the created party. You can generate a party ID that players need to enter along with a party password to get in or ping other servers to find out what parties they’re hosting to get their data.

Frames are also part of problem solving. Clients should be able to request cacheable party data from the server and then create the relevant tiles in the party list.

Okay thank you I will try to do that