I want to find the point between two points

i want to find the point between two points
sorry if i am just being dumb and the solution is so obvi

--heres code
local point1 = Vector3.new(0, 4, -5)
local point2 = Vector3.new(-4, 7, 10)
local _point3

-- instancing parts to visualize
local P1 = Instance.new("Part",workspace)
local P2 = Instance.new("Part",workspace)
local P3 = Instance.new("Part",workspace)

P2.Anchored = true
P2.Position = point2

P1.Position = point1
P1.Anchored = true

P3.Anchored = true
P3.Position = ??????????

1 Like
local MiddlePosition = (point1 + point2) / 2
P3.Position = MiddlePosition

Taken from reference:

1 Like

this helped a lot also i didnt know why it didnt come up when i was searchin

You’re fine :sweat_smile: Just be sure to search on the DevForum first before creating your topic

1 Like