Hello.
I was wondering if it was possible to add a feature where you can join your friends in another place which is part of the same game. I have a game which uses 2 places. The starting place being the menu and the second place being the actual game. I was wondering if I could add a feature to the starting place which lets you join your friends in the second place.
I have no clue what they are talking about.
You can use Player:GetFriendsOnline, sort them out to only players that are in-game, and in your game specifically, and you can then provide that list to the player.
You can teleport the player to their friend using TeleportService:TeleportToPlaceInstance
Something to note, the PlaceId
is the place, GameId
(InstanceId
) is their specific server. Roblox doesn’t seem to have consistent naming in this respect, but hopefully it isn’t too confusing!
Edit: If you plan on expanding your game with more places, you can use AssetService:GetGamePlacesAsync to get a list of place IDs that you can use to check the friend’s PlaceId
to see if they are in your game!
Reasons why this shouldn’t exist:
- Why would you want to make it so player’s can join their friends in a reserved server in a story game?
- This would ruin main menu games like story games!
- Story games wouldn’t exist.
But if roblox made it so you can choose whether to make players be able to join their friends in game-places then this feature should kinda exist. (Also why did I use story games too much for the explanation?)
This isn’t a story game… I never said that it was a story game.
And thank you, I’ll check this out.
Why would you even think this is a story game? Anyway, this feature is actually very useful, it allows you to join your friends while also having a main menu place. Very useful.
There are already many multi-place games with the ability to join your friends in another server from the main menu and the API is available. If it doesn’t cater to your use case, then you don’t have to use it. This isn’t the place to debate features, stay on topic. If you don’t know how to do this, don’t respond.