In the game I am creating, the player has an apartment which is located in a new place in the game (the main place is a town). In addition, players can invite friends to their apartment.
I did some research but admit I don’t know where to start, what’s the best way to do this?
thank you in advance
you can create a table for the people he invited then proceed to a for i, v loops to show to the invited friend a GUI to teleport to the apartment . if they accepted then they will teleport
also if you are curious on how or where will it teleport then you will need to insert a place in the Asset manager copy its ID by Right click and paste it in the teleport paramenter
If you want to teleport them in-game then have some spots with BoolValues (Spot taken). If the bool is false teleport them to ONE and set the bool to true.
If it’s a private server then reserve a server and teleport the players to it.
Do you want to create a server for each player? Or put them all in to one? In any case, you can use TeleportService:ReserveServer()
You can read more here:
In that case, you could teleport the player to a private server. Before teleporting, use :FireAllClients() and have a script that has that event. When triggered, it enables a GUI for the player, with a button, when clicked teleports them to the same server.
I tested a lot of things about reserved server and i have questions:
How to automatically teleport the player who enters the game to his private server without anyone being teleported with him?
and I did not understand what was the meaning of the access code of the reserved server
I managed to teleport the player and save the access code, now I have to teleport the player from another place in the game to his private server, is this possible you think?