I am making a game with the main map and another separate place being the lobby. I already did the code for communicating between servers. Now the only problem I have is if there are no available servers, then I'll have to make a new one. The only problem is that I don't know how I can do that. I want to teleport the player to a newly created server. Thx in advance for any help!
I don't really see why bother with bots n' stuff when you have good ol' TeleportService:ReserveServer.
It lets you make a new, empty, private server you can TP players to at will!
The only thing you have to worry about is to keep track of the access code that it returns across your lobbies, but since you already have something set up to communicate servers, that shouldn't be a big issue at all now should it?
More info at https://developer.roblox.com/en-us/api-reference/function/TeleportService/ReserveServer
Hm, this is definitely a very abstract idea. But, as far as I know. A script inside of roblox cant make a new server. But, a bot API can (If the max amount of players is 1). So basically you could send a message through roblox into a discord webhook, have that same webhook send a message in that discord chat, e.g.("!CreateServer"), then maybe have a discord bot pick up this message, then that bot initialize a roblox bot API, starting by creating a roblox bot, then having that bot click on that game (Easier said then done.). I dont know how you would do this, maybe trial and error, as I have never done this before. Though it may be more complicated than worth.