In my game, my idea is that we have a hub for the main place for all the players and they have their own islands to make farms, machines etc to help progress them along with the game to get more money. Now, this part I understand how to make but I am trying to make my game as social as possible so friends can collaborate and have fun together, however, this is where the issue starts I find. I need it to make a script to make private servers for the player’s co-op because I only want people who are on the player’s co-op list to be able to join and edit the island with a max of 5 people for co-op.
Now, the issue is that I am not sure how to implement this Private server system. As I said, I know how to teleport the player to their own island but I am not sure how to teleport to a private server with multiple of the players friends and them being able to join at any time.
I have looked here on the developer website but I can’t quite wrap my head around how to use the service properly and that’s why I am asking for help.
If you would like me to clarify what I need just tell me. I’m not that good at English unfortunately and if you have any other queries please ask.
Please make sure you search where possible! There are many articles you can find with a quick search based on what you’re asking. The DevForum, Developer Hub and Google are three appropriate places.
If the co-op servers are created at the hub itself and extra co-op members can’t join later, the above will do for you. Its corresponding teleport method, TeleportToPrivateServer, accepts multiple players to be teleported to private servers. Use those together.
Tricky situation. You’ll need to save the access code from ReserveServer to be able to teleport players to a server. Here’s a workflow you could probably follow:
Save the access code to the owning player’s username.
If players are trying to access it, check their friend status. If they are friends or on the co-op whitelist, fetch the access code and teleport them to the private server using it.
I will try this right now and I thank you for your help a lot Just a quick question when using TeleportToPrivate server would you use the code that you get from reserve server in order to teleport them to that specific server. And I am going to mark your answer as the solution