function onClick (mouse)
local Part = script.Parent.Part:Clone()
Part.Parent = game.Workspace
Part:MoveTo(mouse.hit.p)
end
function onEquipped (k)
k.Button1Down:connect(onClick)
end
script.Parent.Equipped:connect(onEquipped)
i tried to make a script that gets the part out of the tool itsself and put it in the workspace and on the place where the players has clicked
this script is put in a tool this is a normal script
how can i fix it that it clones a part in the workspace where the player has clicked

1 comment
Try changing the position property of your part don't use the :MoveTo method with parts it's more efficient to just do something like... Part.Position = mouse.hit.p