Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Bugs with moving items with drag tool, easy fix?

Asked by 3 years ago

So i have a drag system i made and a dropper that i wanna move. When i move the dropper it keep spawning ores on its previous place. To move it i use :SetPrimaryPartCFrame(), is there any way to fix that?

    local pos = Vector3.new(math.floor(mouse.Hit.X),17,math.floor(mouse.Hit.Z))

    local cf = CFrame.new(pos) * CFrame.Angles(0, math.rad(orientationY), 0)
    dragitem:SetPrimaryPartCFrame(cf)

Answer this question