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

Is there a way to use this class in a localscript because it doesn't work in a script?

Asked by
chasedig1 115
6 years ago

I want to use the dragger class to drag pizzas in my pizza game. How would I do this if localscripts cannot accept my code as I'm not trying to make a tool, just only a grabber for certain objects.

local dragger = Instance.new("Dragger")
local clickdetector = script.Parent.GrabDetector
clickdetector.MouseClick:Connect(function()

dragger:MouseDown():Connect(function()
    dragger:MouseMove()
    dragger:MouseUp():Connect(function()
    end)
  end)
end)

I want my dragger to work like this; Example video Click me

Help?

0
Remote events, clickdetector is server only, mousethingies are client only User#20388 0 — 6y

Answer this question