I have a blue part that can appear from either the left or the right and has a BodyPosition in it that is activated when it’s placed close to the red part, and currently the position of the BodyPosition is set to the exact position of the red part, however I want it to calculate the middle point of the sideways distance between the two parts and set the position to that. I thought about using RightVector to achieve this but I have no idea where to begin. How would I go about executing this?
I think you just want the midpoint between the two parts, if that is the case it is:
local midPoint = (redPart.Position + bluePart.Position) / 2