3DReality
|
  |
| Joined: 08 Mar 2015 |
| Total Posts: 150 |
|
|
| 05 Apr 2016 10:28 AM |
So I am trying to figure out what I need to do to find out if the player has friends playing the game. Also how I can put the player in the friends game. I dont need the script more of wiki links ect. Thanks! |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2016 10:36 AM |
http://wiki.roblox.com/index.php?title=API:Class/Player/GetFriendsOnline
http://wiki.roblox.com/index.php?title=API:Class/TeleportService/GetPlayerPlaceInstanceAsync
To make the players join the same server requires Universes; you can't determine what server players join when they click the Play button as far as I know. However, you can direct them to places within your game. |
|
|
| Report Abuse |
|
|
|
| 05 Apr 2016 10:41 AM |
| eh, no need to have anything for when people click play anyway, Roblox already has a party feature and follow feature to let you get to their server and if you press play it already attempts to put you in the same server as a friend. |
|
|
| Report Abuse |
|
|
3DReality
|
  |
| Joined: 08 Mar 2015 |
| Total Posts: 150 |
|
|
| 05 Apr 2016 10:52 AM |
Thanks for the links much appreciated.
|
|
|
| Report Abuse |
|
|
3DReality
|
  |
| Joined: 08 Mar 2015 |
| Total Posts: 150 |
|
|
| 05 Apr 2016 11:44 AM |
Sorry quick question. If a player joins a game does the gameId of the friends last location change instant? Also how would I convert a userId into a username? I was looking it up but couldn't find anything. |
|
|
| Report Abuse |
|
|
Ortron
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 1297 |
|
|
| 05 Apr 2016 12:22 PM |
http://wiki.roblox.com/index.php?title=API:Class/Players/GetPlayerByUserId
|
|
|
| Report Abuse |
|
|
3DReality
|
  |
| Joined: 08 Mar 2015 |
| Total Posts: 150 |
|
|
| 05 Apr 2016 12:40 PM |
Doesent that just search "Players" for the certain playerId then return true or false if its found? The only way that would work for my situation is searching all universe games for the id and I have no idea how I would do that. Is there another way? |
|
|
| Report Abuse |
|
|
Ortron
|
  |
| Joined: 19 Jul 2013 |
| Total Posts: 1297 |
|
|
| 05 Apr 2016 12:42 PM |
Oh you're using universes i thought u mean in a single server
|
|
|
| Report Abuse |
|
|
3DReality
|
  |
| Joined: 08 Mar 2015 |
| Total Posts: 150 |
|
|
| 05 Apr 2016 12:59 PM |
Yeah, I am trying to make a join friends menu. It will show a list of friends and the ability to join there server. My problem atm is taking the userId and getting a username out of it. I have a few idea on how to search servers but there very complex and there is usually a easy way to do it. |
|
|
| Report Abuse |
|
|
3DReality
|
  |
| Joined: 08 Mar 2015 |
| Total Posts: 150 |
|
|
| 05 Apr 2016 01:08 PM |
I found it out. Thanks for the help! |
|
|
| Report Abuse |
|
|