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

How do I find the closest part to something?

So theres a part, and I want to find the closest part to it?

1 answer

As you haven't even tried searching for relevant information, I will not give you a script, only a method. The best way to do this would be to probably scan through every part and find the .magnitude and record the part with the lowest magnitude and after it's iterated through all the parts you will be left with the closest part.

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