Collision on Mouse.Hit.Position

Hi, I was using the Mouse.Hit.Position to create a Placement System but I had an little annoying glitch that makes the part go to the middle of the part thats colliding, instead of colliding perfectly like a normal part.

Normal Collision.
normalcollision

Mouse.Hit.Position Collision
mousehitpocollision

(It’s not going entirely to the middle but its kinda like that.)

Thats intentional. Your part’s PIVOT is being placed on Mouse.Hit, and that pivot is in the center, which is why its like that

But what pivot do I have to set for it?
(I don’t know much about pivot lol)

I did this tho.

			local NewCFrame = CFrame.new(Mouse.Hit.Position) * CFrame.Angles(xRotate,yRotate,zRotate)
			ItemDisplay:PivotTo(NewCFrame)