Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would you find the nearest part from the player's character?

1 answer

get all the parts in workspace. create array with dictionaries that has part and magnitude between that part and character part (http://wiki.roblox.com/index.php?title=Magnitude) then loop through magnitudes and get the lowest number. part matching the lowest number in array is your desired part. this is just an idea and its kinda complicated but will probably work.

This discussion is preserved as it was. New answers, comments, and votes are closed.