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: What is the best way to find the closest player?

Previous Thread :: Next Thread 
MonoBlockZ is online. MonoBlockZ
Joined: 22 Dec 2016
Total Posts: 578
13 Jan 2017 08:17 AM
Title
Report Abuse
TaaRt is online. TaaRt
Joined: 26 Apr 2009
Total Posts: 5039
13 Jan 2017 08:21 AM
Checking player distance from character, the players folder should be less work to check than workspace if that's what you mean

http://wiki.roblox.com/index.php?title=API:Class/Player/DistanceFromCharacter

Not sure whether that's more efficient than using magnitude for 2 torsos
Report Abuse
mityguy is not online. mityguy
Joined: 07 Jun 2008
Total Posts: 5483
13 Jan 2017 08:47 AM
Make a table of all player from game.Players

Then get the magnitude of players[i].Character.Torso.Position

probably would be the best start.
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