How do I do it? Individual places for each player

Hello all,

Here is what I would like to do:

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

2 Likes

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

1 Like

but how to create unique places for each player?

1 Like

as i understand you want the player to own an apartment/house here is a video if you want to have an apartment for the player to own it:

3 Likes

The problem is that in my case, the apartment is another place in the game so a new server

1 Like

I believe you can start by looking at TeleportService | Documentation - Roblox Creator Hub and in this server you can create the unique apartment place.

Edit:

I found this post detailing teleporting a new place that is privatized using reserve server. Is this what you are looking for?

1 Like

But that is not only for the private server ?

1 Like

Here is a full type of teleportation TeleportService | Documentation - Roblox Creator Hub

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

1 Like

I don’t know, he doesn’t really want to do the same thing as me and I didn’t quite understand what he wanted to do xd but it’s a lead thx

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.

1 Like

How to create a private server for each player ?

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:

create a server for each player want to go in their apartment but also invite friends to their apartment, so not a server with just one player only

So you want a Private Server for a player but be also be able to invite people to that server?

1 Like

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 will test all this I will keep you informed

1 Like

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

game.Players.PlayerAdded:Connect(function(Player))
-- Teleport the Player to the server here

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?

I think it is, just teleport the other players to the same server