Having an issue with Mouse.Hit.P and GetMouse()

Hello, hope you having a good day, I’m having an issue currently, I’m trying to get the part to follow the mouse using Mouse.Hit.P, but there is an issue. Here is a clip.

As you can see, it works perfectly fine, but the green part keeps running into the camera. Here is the code.

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Text = "Stop Building"
	local mouse = game.Players.LocalPlayer:GetMouse()
	local HoverPart = Instance.new("Part")
	HoverPart.Parent = workspace
	HoverPart.Color = Color3.fromRGB(0,255,0)
	HoverPart.Transparency = 0.5
	HoverPart.Size = Vector3.new(13,6,1)
	HoverPart.CanCollide = false
	HoverPart.Anchored = true
	mouse.Move:Connect(function()
		HoverPart.Position = mouse.Hit.p
	end)
end)

How can I fix this? Anything helps.

The usual fix for this type of problem is to just set mouse.TargetFilter to whatever part or model is being dragged

Now it’s just not moving. Thanks for helping though