Placement system not working

I am trying to make a placement system to place down stuff

I am using mouse.Hit.Position

The problem is the mouse is targeting the block that is being placed so the part zooms into the camera

How do I solve this?

Maybe lock its Y value so it could only move on the Z and X axis?

1 Like

Use a fake mouse ray and have it ignore the part that is being dragged, or any parts that you want it to ignore.

	local ignoreList = {item, player.Character}
	local mouseRay = mouse.UnitRay
	local newRay = Ray.new(mouseRay.Origin, mouseRay.Direction.unit * MAX_PLACEMENT_DISTANCE)
	target, pos, norm = workspace:FindPartOnRayWithIgnoreList(newRay, ignoreList)
2 Likes

You could try setting Mouse.TargetFilter to the part you’re trying to place

1 Like

thanks for all the responses! @Hell_ish’s solution worked for me