I made a duplicate of my player and wanted to see if i could make a basic zombie. i looked up pathfinding on the wiki, i know how to use it. but... i need to know how to use magnitude to find out if which players is closest, and they need to be at least 15 studs away. here's what i got so far:
local zombie = script.Parent
local pathfind = game:GetService("PathfindingService")
local players = game.Players:GetPlayers()
while players.Character.UpperTorso.Position.magnitude <= 100 do
local Start = zombie.LowerTorso
end
obviously this won't work.. i just gave that a shot.. and i can't really find any tutorials or anything on the wiki to help me use magnitude.

1 comment
http://wiki.roblox.com/index.php?title=Magnitude