How To Setup "Join to Start"?

Goal: Players join a queue and the game starts when the current game ends (player dies).

Steps:

  1. Join Queue: Players click “Join to Start” to enter a queue.
  2. Current Game: If a game is ongoing, new players wait in the queue.
  3. Player Dies: If a player dies in the current game:
  • End Game: The current game ends.
  • Start New Game: Players waiting in the queue join the new game.
  • Repeat: Go back to step 2.

Questions:

  1. Is there any Script Template that can be used for that?
  2. Any ideas how to do that with very little coding experience?

Thanks a bunch for any little help and any ideas,
appreciate that!

1 Like

A queue basically is the meaning of ‘storing data’. When that is the case, it is very common to use tables to store information in your code. I can go on and explain how to implement them in your scenario, but youtube has a lot of tutorials on round-based games which use the same gimmicks.


Some tutorial videos I was able to find;

https://www.youtube.com/watch?v=O_RPKmsRXY0&list=PL8sDtGBuxi4ZuroQDw7CSw78phbFtLAks

https://www.youtube.com/watch?v=Sx08iMG4Dv0&list=PL8sDtGBuxi4ZuroQDw7CSw78phbFtLAks

https://www.youtube.com/watch?v=zZ7tWhWTZeI

Join Queue: Make players who joined it go into a table
Current Game/Gamestart: make players who are in the table actually join the game and put all playing players into a playing table for the server to keep track of that
Player Dies: Remove player of the playing table and make them wait like the new players

End game: make all players die but also end the game timer thingy.

then make this a loop and done!

Answers:

  1. its easy to make if you utilize tables correctly.

quick post, ima make a followup after school if you want