How to make a working queue?

I wanna make a working queue system for a game im working on but I don’t know how to limit it to like a few players I haven’t looked anywhere but I heard that there was a roblox template with this and I forgot which game it was lol

script.Parent.MouseButton1Click:Connect(function()
	-- tp script here (serverscript)
end)
1 Like

What type of queue? What type of game? There’s a ton of different stuff that goes into making queue systems. I’m not aware of any templates or single modules dedicated to queue systems, so you’re going to have to create your code on your own. The best we can do is point you in the right direction for what methods to use depending on your needs.

Can you give a few more details about what exactly you’re trying to accomplish?

Sure, it’s supposed to be a game where you fight people and it’s supposed to teleport you into a place inside the game.

After, the players teleport into the game. They both get put onto a team and fight to the death.

You’ll have to setup queues using something like MemoryStore Service, then once the queue fills to your desired size, teleport the players in the queue using TeleportService:TeleportAsync() or TeleportService:TeleportPartyAsync() if you are utilizing player lobbies.

Here’s a post explaining a bit more in depth.