If you want to perform pathfinding quickly, just use ROBLOX's PathfindingService, it's much easier.
However, if you insist on getting the midpoint of two vectors, the correct way of doing so is to add each vector up and divide by two.
Say if I had two variables, x and y. x has a value of Vector3.new(2,2,2) and y has a value of Vector3.new(1,2,3).
To get the midpoint of these two vector values, I add x and y up and then divide by two, like so:
local midpoint = (x + y) / 2
This is equivalent to the following:
local midpoint = (Vector3.new(2,2,2) + Vector3.new(1,2,3)) / 2
If you print out midpoint, it should print out 1.5, 2, 2.5.
I hope my answer helped you. If it did, be sure to accept.
3 comments
Didn't see your answer, sorry. Upvoted anyway.
Ohhhh average haha I'm so stupid. Thanks!
And also, how do I make it so the part is rotateded in a way so it connects the two points?