This is what I currently have
part.CanCollide = false
part.Name = "Ray"
part.Anchored = true
part.BrickColor = BrickColor.new("Crimson")
part.Transparency = .4
part.Size = Vector3.new((mob.Head.Position - centerOfTheMap.Position).magnitude,.2,.2)
part.Position = ((mob.Head.Position+centerOfTheMap.Position)/2)
part.Parent = workspace
But I don't quite grasp how CFrame works and I can't seem able to make the part go through two point's in space.

2 comments
Doesn't work, the part doesn't connect the two points but goes horizontally between them.
What exactly are you trying to do here? Do you mean you want to resize a part so it is bridging two points in space?