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?

2 comments

0

Remote events, clickdetector is server only, mousethingies are client only