So I'm trying to make a list of the players friends, when they click on the players name, they teleport to their server (In a specific game)

local player = game.Players.LocalPlayer
 
local dict = player:GetFriendsOnline(200)
 
for i,friend in pairs(dict) do
	print(friend.UserName)
end

So far, I could only get the players that are online, but they are all in a different game, how can I detect if the player is in the same game? And teleport them to the same server?

4 comments

1

U simply cant

0

There is no possible way to do it with a script.

0

I don't get what your trying to do and you cant even do that.

0

You mean teleporting players to a specific server in a specific game that isn't owned by you?