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

Dragger isn't working properly?

Asked by 5 years ago
Edited 5 years ago
mouse.Button1Down:connect(function()
        if mouse.Target and mouse.Target:IsA("BasePart") and mouse.Target.Locked == false then
            newBrick = mouse.Target:clone()
            newBrick.Parent = workspace
            newBrick.Position = Vector3.new(mouse.Target.Position.X, mouse.Target.Position.Y + .001, mouse.Target.Position.Z)
            Instance.new("SelectionBox", newBrick).Adornee = newBrick
            drag = Instance.new("Dragger")
            print(drag)
            pcall(function()
                drag:MouseDown(newBrick, Vector3.new(0, 0, 0), {newBrick})
            end)
        end
    end)

This code doesn't work, seemily because the dragger doesn't actually drag anything. Help?

Answer this question