|
| 01 Aug 2016 01:31 PM |
| How exactly would this be done? I had a thought on using datastores to track the place the followee is in to teleport the follower, is that the best way? |
|
|
| Report Abuse |
|
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 01 Aug 2016 01:41 PM |
No, check the other thread you made 2 seconds ago XD
|
|
|
| Report Abuse |
|
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 01 Aug 2016 01:42 PM |
http://wiki.roblox.com/index.php?title=API:Class/Player/GetFriendsOnline Essentially this, plus the TeleportService ^ You would have to do the player check locally, and then fire a RemoteEvent to teleport the player from a server script.
You can generate a graphical representation of their online friends, and then make a "Follow" textbutton or whatever that teleports them to the place instance, which look something like
for i,v in pairs(player:GetFriendsOnline()) do -- clone a template GUI or something -- fill in the information, so gui.FriendName.Text = game.Players:GetNameFromUserIdAsync(v.UserId) -- user v.PlaceId as the destination for your teleport, so you'll have to send it as an argument to the server
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 01 Aug 2016 01:43 PM |
And yep sorry I had my response open in another tab and thought I clicked post
|
|
|
| Report Abuse |
|
|
| |
|