Hello, how do I calculate middle Y position between parts A and B? Example: Part A has Y position of 0, and part B has Y position of 20. I want the result to be 10. I also want it to work negatively.
You basically calculate the average between the y position of both parts. ((y1 + y2) / 2)
local midY = (part2.Position.Y - part1.Position.Y)/2