Match making system

Hello fellow developers!
I am trying to make a cross-server match making system but couldn’t really do that, I want to match 2 players against each other (Like your bizzare adventure or a universal time if someone knows).
I tried multiple cross-server match making systems but couldn’t get them working.

Here’s some references that may help you.
I’m not quite sure how DataStoreService could be used but from what I can tell it may just create a temporary key and store information in that key (I believe the key is the JobId of the newly created reserved server).

https://developer.roblox.com/en-us/api-reference/class/DataStoreService
https://developer.roblox.com/en-us/api-reference/class/TeleportService
https://developer.roblox.com/en-us/api-reference/function/TeleportService/GetLocalPlayerTeleportData

Hi Lamb I recently published a full tutorial. I hope this helps and any feedback is welcome

Hello and yes I used your tutorial but when I joined the queue only I got teleported.

Yes, thats easily customizable. You can have 100 people or 2. I have it set on 1 for users to test by themselves. I recommend doing the doubles queue if you want to test this feature but it is easily changed

Hmm, but where can I change it that the script needs 2 players to teleport them both into a match?

1 more question, how to disable the teams?

Within the glitch program. TeamsPerMatch can be set to 2 players and it will work perfectly.
ss

So instead of TeamsPerMatch[“Solo”] = 1; I put TeamsPerMatch[“Solo”] = 2; ?

If it is solo queue, delete all team based systems, and link whatever event you have to only send the user id. This might be challenging if you are brand new to lua, however the match making system is perfectly build for this and customization of your game to it will be the key. Also yes on your other question.

Do you mean this question?

Like if yes

1 Like

I will test right away and tell if you if it works.

It still didn’t work, it didn’t teleport none of my 2 accounts. No errors or anything.

This is what I ended up with after the changes I made on glitch.com :

Screenshot_468
Changes in the lobby QueueSystem (I removed partySystem)


Changes in server set up in the match

Changes in queueSystem match

Well I know the script works, so I am guess it brakes down with the party system you have. Since there are only solo teams it would be encouraged to simply delete everything I wrote party system related (all front end and the entire party script on server). Next step would be to to delete all lines of code involving the party checks I wrote inside the queue function. What you should have left at the end will be only the first 10 lines of code, the even trigger, the http call to join queue, the event to leave queue and then the teleport function. Alternatively (I don’t recommend but will proof it works) keep the entire party system but disable the front end and the invites function.

The problem is… I don’t understand what to do still…

Well i assume you are relatively new to programming on roblox then. In which case I recommend the following:
Go to the game.StarterGui and delete everything of my system,
Go to PlayerScripts and clear al scripts.
Go to ServerScriptService, open the party systemand delete the invite function.

Not quite new but sure I will do that. In the lobby right?

1 Like

Are you sure It’s in the party system? I couldn’t find invite function in it

You know, I’ll make it so in the lobby you can just send a request to 1v1 someone, thank you for you’re help still!

1 Like