So I've nearly torn the wiki apart (metaphorically) trying to find a way to do this. What I want to do is get/define all the parts within a certain distance from another part, and use them in a variable. I have the code all worked out, problem is how do I select those parts? CFrame? Method I might not know of? Math? Magic? I have the script and know how to set the distance, I just need to know how to define/get/select the parts. Is there a way to do this? Any help is appreciated. :)
P.S. Let me know if this is confusing, I'm not sure if I worded some of this right. Thanks!

5 comments
Thanks! I never thought of using magnitude! Also, will constantly searching the workspace lag the game a lot?
optimized. get all parts once, add/remove parts when parts are added/removed.
Thanks again.. might I ask what just happened though? X|
i don't know what you're asking. If you get all of the parts and track when the existing parts changes, you don't have to go back and find them again every time you want to iterate through them.
Oh, ok. I was just asking about the meaning of the stuff you changed. Thanks for the help! :D