Is there a way to use this class in a localscript because it doesn't work in a script?
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.
01 | local dragger = Instance.new( "Dragger" ) |
02 | local clickdetector = script.Parent.GrabDetector |
03 | clickdetector.MouseClick:Connect( function () |
05 | dragger:MouseDown():Connect( function () |
07 | dragger:MouseUp():Connect( function () |
I want my dragger to work like this;
Example video Click me
Help?