How to Make a Matchmaking System on Roblox

Поделиться
HTML-код
  • Опубликовано: 17 сен 2024
  • Matchmaking Kit: www.roblox.com...
    Welcome to a new video! Today, I'll be showing you all how to make a matchmaking system in Roblox Studio! Enjoy!
    Join my Discord server here: / discord
    Check out my Patreon Page today: / codebro29
    MERCH: codebro29-offi...
    Comment ideas for future videos below! VVV
    Roblox username: fiveironfan2006
    My group: www.roblox.com...

Комментарии • 92

  • @Ultraname
    @Ultraname 2 года назад +7

    BRO THAT WAS JUST WHAT I NEEDED, THANK YOU

  • @JeffreyBloxer
    @JeffreyBloxer Год назад +4

    basically, you're a very smart guy, probably smarter than me and thank you for the tips for the scripting

  • @Dev3000RBLX
    @Dev3000RBLX Год назад +2

    W's for this guy cant believe hes doing this and only 12k subs u deserve alot man thank you for teaching me and others how to do somthing like this

  • @chaostag8900
    @chaostag8900 Год назад +17

    A little help :) .
    Script:-
    local GameId = yourgameid
    local TPS = game:GetService("TeleportService")
    local PlayersInQueue = {}
    local MinPlayers = 1
    local MaxPlayers = 10
    local isMatchmaking = false
    function Matchmake()
    if isMatchmaking == false then
    isMatchmaking = true

    repeat wait()
    for i,v in pairs(PlayersInQueue) do
    game.ReplicatedStorage.UpdateStatus:FireClient(v,"Waiting For at least "..tostring(MinPlayers).."players to join the Queue.")

    end
    until #PlayersInQueue == MinPlayers

    --Enough players to start--

    for i=0,15,1 do
    if #PlayersInQueue == 0 then
    isMatchmaking = false

    --Players have left the game--
    return
    end

    if #PlayersInQueue == MaxPlayers then
    break
    end

    for _,value in pairs(PlayersInQueue) do
    game.ReplicatedStorage.UpdateStatus:FireClient(value, "Teleporting in: ("..tostring(15-i)..")seconds. Players in Queue: ("..tostring(#PlayersInQueue)..")")
    end

    wait(1)
    end

    --Finished waiting. teleporting players now--

    local Server = TPS:ReserveServer(yourgameid)
    TPS:TeleportToPrivateServer(GameId,Server,PlayersInQueue)

    wait(3)

    PlayersInQueue = {}
    isMatchmaking = false
    end
    end
    script.Parent.Head.QueuePrompt.Triggered:Connect(function(player)
    if not table.find(PlayersInQueue,player) then
    table.insert(PlayersInQueue,player)
    end
    Matchmake()
    end)
    game.Players.PlayerRemoving:Connect(function(player)
    for i,v in pairs(PlayersInQueue) do
    if v.Name == player.Name then
    table.remove(PlayersInQueue,i)
    end
    end
    end)

    • @TheRealRoblox
      @TheRealRoblox Год назад

      Hi, can you please tell me how do I make sure it's teleporting the players to a new server and not an old server? Or does it automatically do it? Please answer me

    • @TheRealRoblox
      @TheRealRoblox Год назад

      Like let's say for example i want to make a matchmaking system for piggy and the players used it and they beat the map together and a new group of people joined the same server will everything will already be beaten or will the server restart and all the doors will be locked again

    • @loneXif
      @loneXif 5 месяцев назад

      @@TheRealRobloxif its 1 server for everything, the round would be over and matchmaking for a new one would begin. but if its teleporting to servers then they wouldn’t be teleported since the queue already ended. if you want 6 people in a queue for a match, make the max players to join until u cant join 6 so more people cant join. also sorry for responding a whole year later lol

    • @ffagoal5933
      @ffagoal5933 Месяц назад

      tyty

  • @zelectricite
    @zelectricite Год назад +2

    Great Tutorial, You are extremely underrated. I'm assuming this doesn't work across multiple servers? Would a follow up video covering that topic be possible?

    • @jollyball_
      @jollyball_ Год назад

      Once you created a new place in asset manager, its duplicating private servers for the new place in asset manager, however you'll have to use a script to make this work. That's why this tutorial is made

  • @FILLADOFO
    @FILLADOFO Год назад +1

    A good idea/what I need would be a leave queue button because if you add more than one queue it still work but the text dose not change.

    • @gretersamuel6464
      @gretersamuel6464 Год назад +1

      does*

    • @Tens1onPlayz
      @Tens1onPlayz 11 месяцев назад +1

      @@gretersamuel6464 bro mind your own business like your not funny

  • @bradandsarahibbard1831
    @bradandsarahibbard1831 18 дней назад

    You are the GOOOOOOAT thank you so much

  • @JazzBuildsRBX
    @JazzBuildsRBX Год назад

    just earned a new sub This seems really cool and i was looking for something like this for my horror game props to you bro

  • @ylylofdailysmile
    @ylylofdailysmile 2 года назад

    BROOO I ACTUALLY NEEDED THIS FOR MY GAME! TYSMM LEGEND!!!!

  • @doyiniluyomade344
    @doyiniluyomade344 10 месяцев назад

    amazing explanations thank you man

  • @TheRealRankIPromise
    @TheRealRankIPromise Год назад

    This video helped me alot like actually

  • @NovaFilmsStudio
    @NovaFilmsStudio Год назад +2

    Can you do that when u wait the time u want, a screen appears telling if you wanna be in a tournament, and the last one standing wins money?
    Thx if you do it

  • @djbarker3909
    @djbarker3909 Год назад

    thank so much, was a big help!

  • @saradhavadivel3869
    @saradhavadivel3869 2 года назад

    Im Making a Mortal kombat Game and this Helped alot

  • @heavygaming6596
    @heavygaming6596 Год назад

    Amazing work

  • @studclone
    @studclone Год назад +1

    Thx

  • @RandomPlaneMan
    @RandomPlaneMan Год назад

    HOLY GOODNESS THIS REALLY WORKS

  • @onzi_3
    @onzi_3 8 месяцев назад

    THANK YOU
    OMG

  • @Slayersword7292
    @Slayersword7292 Год назад +1

    I would like you to join a queue WITH friends kinda like bedwars:)

  • @iSharki
    @iSharki Год назад

    THank you so much.

  • @f00lish
    @f00lish Год назад

    tysm bro 🙏

  • @ffagoal5933
    @ffagoal5933 Месяц назад

    everything worked out, but i cant see the countdown for the teleport and it doesnt work. (i didnt do it in studio i queued in roblox)

  • @stewpidguy13
    @stewpidguy13 2 года назад

    thats neat

  • @goldyt4939
    @goldyt4939 2 года назад

    SECOND, good video bro

  • @kysics
    @kysics 9 месяцев назад

    hey this is nice but instead of teleporting to another game .. how can i make them get teleported to two different parts , im using 2 players and i didnt use a min player variable... i just want both players to join a queue then when enough players are there they can get teleported to two different parts.. but im not sure how to do it and how will it detect which player is which to teleport

  • @muister325
    @muister325 5 месяцев назад

    why does the player get teleported when theres not more than 2 players? who is he going to fight?

  • @Ryo2020
    @Ryo2020 Месяц назад

    and a matchmaking that interact with all server

  • @yotxkyo
    @yotxkyo 2 года назад

    Please answer so I’m am clicking matching and I put it for 2 players is that the reason it’s not tping?

  • @HEARTS4_AVA
    @HEARTS4_AVA Год назад

    can you make a tutorial on how to make the teleporting in... and players in queue on a block like in total roblox drama?

  • @CHECKLATESTVIDEOFORNEWCHANNEL
    @CHECKLATESTVIDEOFORNEWCHANNEL Год назад

    This comes up when I try to join wrong number of arguments to insert

  • @3W_bl3H
    @3W_bl3H 2 года назад

    My friend told me to subcribe

  • @joechabus1220
    @joechabus1220 2 года назад

    idea: how make a pac man game in Roblox studio.

  • @KrispywasTaken
    @KrispywasTaken Год назад

    THIS IS GOING TO TAKE ME FOREVER TO DO WHY IS IT NOT COPIED IN THE DISCRIPTION

    • @commander5263
      @commander5263 11 месяцев назад

      you gotta learn to code not just copy paste code

  • @6thkazekage627
    @6thkazekage627 2 года назад +1

    I can't tell if these are bots in the comments and no offense if they aren't but I've done everything from top to bottom the exact same way you did but they keep underlining my scripts and all the other stuff red and nothing is working, could you explain why?

    • @heavygaming6596
      @heavygaming6596 Год назад +1

      you did it wrong

    • @desicape
      @desicape Год назад

      not are bots, it really works, just see if you did wrong in #, _, , or any else but it works 10101010%

  • @Orence8279
    @Orence8279 7 месяцев назад

    Hey, when I click the character, it still says “join the queue to play the game “ do you know where I messed up in the code?

  • @Oni.--_.-_..._...._._.-._.2103
    @Oni.--_.-_..._...._._.-._.2103 2 года назад +1

    Your so underated

  • @MrQuackersTheDuckMan
    @MrQuackersTheDuckMan Месяц назад

    where can i get the entire script im to lazy to wrie it out lol

  • @ra1nfxll
    @ra1nfxll 10 месяцев назад

    It’s not working for me and I typed everything right

  • @RealManMun
    @RealManMun 2 года назад

    everybody here kinda came for a cross server matchmaking system, so ill make that

  • @Newbie-jz7wi
    @Newbie-jz7wi 28 дней назад

    does it work globally

  • @YT_itsMoe2
    @YT_itsMoe2 Год назад

    The npc was not showing that is a problem please fix

  • @campeoncito88
    @campeoncito88 Год назад

    what if i uhh wanted it to be in the same game

  • @jessesimsarian8484
    @jessesimsarian8484 3 месяца назад

    No npc in kit

  • @wildlifesuport
    @wildlifesuport 2 года назад

    Make how to animate objects ples

  • @hamden-
    @hamden- Год назад

    so the script seems to be breaking for me. Is there anyone else getting the issue on line 18 that its unable to cast a value to an object?

    • @CruciblePlayz
      @CruciblePlayz Год назад

      nope, but min breaks at 37 and I can't figure out why

    • @CruciblePlayz
      @CruciblePlayz Год назад

      here's my line 18: game.ReplicatedStorage.UpdateStatus:FireClient(v,"Waiting for atleast "..tostring(MinPlayers).."players to join the Queue")

  • @mmaxo
    @mmaxo Год назад

    Remote event invocation queue exhausted for ReplicatedStorage.UpdateStatus; did you forget to implement OnClientEvent? (128 events dropped)

  • @UnkindPear
    @UnkindPear 2 года назад +1

    FIRST

  • @spowergaming2244
    @spowergaming2244 2 года назад +2

    How would i make cross server matchmaking?

    • @OnlyKemal
      @OnlyKemal Год назад

      You can try about datastores

    • @mortai4949
      @mortai4949 Год назад

      @@OnlyKemal thats not what datastores are for

    • @OnlyKemal
      @OnlyKemal Год назад

      @@mortai4949 I know later on that day i found that there was a service for that but i forgot the name

    • @mortai4949
      @mortai4949 Год назад

      @@OnlyKemal MessagingService or something

  • @starthepizzaman2187
    @starthepizzaman2187 2 года назад

    HELLO HELLO

  • @wapitigaming5306
    @wapitigaming5306 Год назад

    I thought it was global but its just local, dont really like that

  • @nobodyscron
    @nobodyscron Год назад

    this isn't my account but your armyboy

  • @Pov3e
    @Pov3e 2 года назад

    Hola

  • @Glyphy
    @Glyphy Год назад

    15:37

  • @Fur78
    @Fur78 Год назад

    Um its not working and I swear i followed everything

  • @hebaq50
    @hebaq50 2 года назад

    5:19

  • @BrightMoonEyas
    @BrightMoonEyas 2 года назад

    14:33

  • @typxology
    @typxology 2 года назад +1

    CAN WE JUST COPY AND PASTE IT?

    • @iRandom619
      @iRandom619 Год назад +1

      Ikr

    • @samhith
      @samhith Год назад

      if your lazy enough to see the description, you can find a model with all the things you need

  • @Br00k604
    @Br00k604 Год назад

    Can this also be for a 1v1 ?

    • @DAME993
      @DAME993 Год назад

      yeah just change the 1 to 10 script to 2 to 2

  • @light1441
    @light1441 2 года назад

    Can I get to bus

    • @light1441
      @light1441 2 года назад

      Can I get robux

    • @ready.set.sports
      @ready.set.sports 2 года назад

      @@light1441 ask your dad. oh right you dont have one

    • @goldyt4939
      @goldyt4939 2 года назад

      @@ready.set.sports dayum

    • @StrawberryRedPanda
      @StrawberryRedPanda 2 года назад

      @@ready.set.sports Doesn't everyone have a dad? I mean you would have to for you to exist...

    • @brycegonzalez8846
      @brycegonzalez8846 2 года назад

      @@StrawberryRedPanda peanut buttah

  • @mariomoody3683
    @mariomoody3683 2 года назад

    ✔️ p̾r̾o̾m̾o̾s̾m̾