So, this is something that I've wanted to learn for a long time now and I don't expect the answer to be short. I am making a running simulator where I have "Speed orbs" that increases the player's speed when he or she touches it. I want the orbs to appear randomly on the map but in some cases, the orbs may spawn at the same location and I don't mean that as in the exact same position but close enough to touch each other. So my question is, what tactic should I use to check if a part is already in a certain position so that two orbs don't end up too close to each other and so that I can use it in other cases?
Edit: If it wasn't clear enough in the original post, I don't mean how do I check if something is in an exact position, that's easy to do with: if(Object).Position == (position) then. I am wondering how I can check if the new orb I will spawn in any way will interfere with an old orb
Edit2: I have been scripting for over a year now and can thus take on complicated ways to do this
Since this is a site dedicated to helping and not creating codes, I can't really give you a code. But I can say that you can use magnitude to check if it is too close.
Closed as Primarily Opinion-Based by DeceptiveCaster, EpicMetatableMoment, and SerpentineKing
This question has been closed because it is a discussion about a topic focused on diverse opinions, which isn't a good fit for our Q&A format.
Why was this question closed?