generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Following players in a universe?

Previous Thread :: Next Thread 
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
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
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
01 Aug 2016 01:39 PM
Bwamp
Report Abuse
Soybeen is not online. 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
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
01 Aug 2016 01:42 PM
Its the same one :p
Report Abuse
Soybeen is not online. 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 is not online. 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
ChiefRyanz is not online. ChiefRyanz
Joined: 11 Nov 2012
Total Posts: 1461
01 Aug 2016 01:44 PM
ty
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image