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

How does one use the methods for the dragger and what is it?

Asked by 10 years ago

So,I saw this object and I wanted to test something but,I don't know how to use the methods,how do I use them?

local Tool = script.Parent
local Player = game.Players.LocalPlayer
local PlayersMouse = Player:GetMouse()
local Dragger = Instance.new("Dragger")
    Tool.Equipped:connect(function(Mouse)
        Mouse.Button1Down:connect(function()
            print("Clicked")
            Dragger:MouseDown(function()--Tried but didn't work
            print("Up")
        end)
        end)
    end)
0
Initializes a dragging action. Once this has been called, it cannot be called again until MouseUp has been called. Generally called with Mouse.Button1Down. fireboltofdeath 635 — 10y
0
Continue: The Dragger object is a helper object used to create tools that can drag parts. It is expected (but not required) to be used with Mouse events. Its Parent property cannot be set because it doesn't belong in objects; rather, it is controlled using its object-specific methods. fireboltofdeath 635 — 10y

Answer this question