Help with part allignment for placement system

So I used EgoMoose’s tutorial for a placement system and I changed it up a bit(stacking, y-rotating)
but the allignment doesn’t work:

As you can see there are gaps and i dont know why.


local p = pMouse.Hit.Position
local ray =
ray.FilterType = Enum.RaycastFilterType.Blacklist
ray.FilterDescendantsInstances = {Player.Character, self._currentModel}
local result = Mouse:Raycast(ray)
if result then
	if result.Instance:IsDescendantOf(self._plot.Build) then
		local DistanceBetween = (result.Instance.Position - p).Magnitude
		local Direction = (result.Instance.Position - p).Unit
		p -= (DistanceBetween * Direction)
--more code here lol


Fixed it. I just needed to do this:

p -= (DistanceBetween * (Direction +, 0.5, 0)))