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
7 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.

01local dragger = Instance.new("Dragger")
02local clickdetector = script.Parent.GrabDetector
03clickdetector.MouseClick:Connect(function()
04 
05dragger:MouseDown():Connect(function()
06    dragger:MouseMove()
07    dragger:MouseUp():Connect(function()
08    end)
09  end)
10end)

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 — 7y

Answer this question