Part spawns in the ground when it's placed using mouse.Hit.position

It only works when you click on the top of a part, when you do it below a part, the Y position is the same as the part you clicked. It also doesn’t fix the problem of placing it from the side.