So far I've got an object to move to my mouse location, and place on click, but what I can't seem to figure out is how to get rid of the jittery mess the part looks like as it moves, seems like every time you move your mouse, while the parts moving it goes up 1/5th of a stud, then back down to where it should be, the following code shows what I've done.
local lastHit = nil
local lastTarget = nil
local x,y,z = playerMouse.Hit.x,playerMouse.Hit.y,playerMouse.Hit.z
tool.Equipped:connect(function(eventMouse)
model = Instance.new("Model", game.Workspace)
model.Name = "PartM"
part = Instance.new("Part", game.Workspace.PartM)
part.Anchored = true
part.CanCollide = false
part.Position = eventMouse.Hit.p
eventMouse.Move:connect(function()
eventMouse.TargetFilter = eventMouse.Target
if (playerMouse.Hit ~= lastHit) then
lastHit = playerMouse.Hit
lastTarget = playerMouse.Target
print(lastHit)
print(lastTarget)
model:MoveTo(eventMouse.Hit.p)
end
end)
end)

2 comments
Had no idea that mouse.move stayed active after the tool was unequipped, thanks for the advice, also thanks for explaining why what I was doing was wrong, I swear i tried it this way before but I guess I did something wrong.
No problem man! :)