My game will have 2 different places: Public to everyone Lobby and the place where Core Gameplay will happen. The player will be able to join to Core Gameplay place in the lobby, which will be private only to them but will have the option to allow their place to be joined by friends(let say max 5 friends can join).
My problem is, I don't know how to make a place private to one player while still have option to make friends join. Do I make it with just a script or maybe something on the Create page too?
I can only find on Roblox Developer page about teleporting through places but nothing about this kind of settings...

7 comments
Why would you want this to happen, i'd say make a queue.
Games like Dungeon Quest have something similar to what I want to make and it works great there.
I don't understand the need to change the settings of the core game if the only way a player could join is via code to teleport them to the core game.
I mean when the teleport happens Roblox doesn't look if server is empty and this is my problem because if I want to make place private while have ability for friends to join I would need to restrict other players to join that server. At least I think I need to it like that but like I said I don't know.
Use the reserve private server built in function thing
https://developer.roblox.com/en-us/api-reference/function/AssetService/CreatePlaceAsync will make a place for a user and place it into their inventory. It can be reused.
Is there a way to delete created place with CreatePlaceAsync when it is empty?