Problems with CFrame.LookVector

I tried using LookVector to change the position of one part based on two others, but when I try placing it in a 3D, it is not connected

robloxapp-20210303-1240516.wmv (317.9 KB)

This is the part of the script that changes the CFrame

ConnectionList[#ConnectionList - 1]["Wire" .. #ConnectionList - 1].Position = Vector3.new((position.X + ConnectionList[#ConnectionList - 1].Position.X) / 2, (position.Y + ConnectionList[#ConnectionList - 1].Position.Y) / 2, (position.Z + ConnectionList[#ConnectionList - 1].Position.Z) / 2)
ConnectionList[#ConnectionList - 1]["Wire" .. #ConnectionList - 1].Size = Vector3.new((position - ConnectionList[#ConnectionList - 1].Position).Magnitude, ConnectionList[#ConnectionList - 1]["Wire" .. #ConnectionList - 1].Size.Y, ConnectionList[#ConnectionList - 1]["Wire" .. #ConnectionList - 1].Size.Z)
ConnectionList[#ConnectionList - 1]["Wire" .. #ConnectionList - 1].CFrame = CFrame.lookAt(ConnectionList[#ConnectionList - 1]["Wire" .. #ConnectionList - 1].Position, currentWireConnection.Position)
ConnectionList[#ConnectionList - 1]["Wire" .. #ConnectionList - 1].Orientation += Vector3.new(0, 90, 0) 

ConnectionList includes all connections, when the last one is equal to currentWireConnection, and the one before it is the sphere that appears on the other side of the wire. Also, Wire is the cylinder.

If there is anything else you need to know in order to help, please feel free to ask.

the orientation should be -= Vector3.new(90,0,90)