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)
1 | local player = game.Players.LocalPlayer |
2 |
3 | local dict = player:GetFriendsOnline( 200 ) |
4 |
5 | for i,friend in pairs (dict) do |
6 | print (friend.UserName) |
7 | 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?