How does Camping create new servers?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want to know how camping teleport players în new servers to don’t ca-n to join in a Started match

  1. What is the issue? Include screenshots / videos if possible!

I tryed using createserverasync
Os somethin Like this but don’t work

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I look for soluționa in dev Hub but that don’t helped me

Please who know?

3 Likes

You can’t create new servers, however you can create a private server to teleport them into. You can teleport a group of players by specifying the players you want to teleport.

The documentation for TeleportToPrivateServer has an example on how to use it.

3 Likes

It looks like this question has already been solved here:

2 Likes

make private servers and when player need to join, send request using messaging server and server will reply by invite with its access code

1 Like

Ok, but private servers cost robux

Bruh. TeleportToPrivateServer doesn’t actually make you teleport to a private server. It takes a player (or a group) to another server or something like that.

1 Like

You need to implement this in a somewhat strange way.

You first need to reserve a private server for your group of players. Be sure to save the resulting access code for the next command.

Then you need to call this function to get them into that server:

I imagine you could do it similar to this:

TeleportService = game:GetService("TeleportService")
GamePlaceId = 12345

function StartGameServerWithGroup(players)
    local accessCode, serverId = TeleportService:ReserveServer(GamePlaceId)
    
    TeleportService:TeleportToPrivateServer(GamePlaceId, accessCode, players)
end

StartGameServerWithGroup({game.Players.pro_developer213})
6 Likes

not, you must find diference between private server and VIP server, VIP server cost robux, but private server is made by lua function, is free, and its owner id is 0, I have matchmaking system based on this, only deference is, that it also filter players by level, …

2 Likes

In that table i need to insert the players? I think yes

2 Likes

This is so helpful thank you so much you’re my savior!