of     1   

scromble
#160164032Tuesday, April 14, 2015 7:29 PM GMT

So i got a script that when a certain Noob.Torso is in 10 studs range of Part. But that only works for workspace.Noob.Torso . This would be a problem if i try to make more Noob.Torso s. Given is the distance between Part and workspace.Noob.Torso. How do i collect all Noob.Torso s but then select only the nearest one?
BJCarpenter
#160164907Tuesday, April 14, 2015 7:44 PM GMT

In pretty well any zombie is a script which findsNearestTorso. Modify that very short script to your liking.
GeoVolcano
#160165845Tuesday, April 14, 2015 7:58 PM GMT

local Zombie = workspace:GetAllChildren() for i,v in pairs(Zombie) do --find nearest torso

    of     1