Does anyone have an idea on like how Minecraft does it with friends worlds, if they are playing in a world the button will appear. I want to have it So in a list one or more multiple buttons for a friends server/world appears, I already have some code and know how to do it, but I’m not sure how to detect if a player’s friends are in different reserved servers and make the button in the list appear
I know but not really what I want. I don’t see a. Way in there that could get the reservedserver’s id for the player’s friend, how could I get the reserved server id for the player?
Ah I see, you can use memory store hash maps to temporarily store information of the server including the access code, using the server’s job id as the key.
When you want to join a specific friend, you can use that TeleportService API to get the job id, then retrieve the access code from the memory store.
2 Likes
You can also skip the TeleportService step with Player:GetFriendsOnline
when just checking online friends, which returns place id and game id information.