I’d like to know how to continue a drag detectors movement without having to click and hold it again
example
i click a click detector it spawns an item that contains a click detector I’d like to know is it possible to continue the drag if the player is still holding the mouse down after clicking the click detector something like
dragDetector:SetPlayer(player)
for i, v in workspace.SpawnFoods:GetChildren() do
local DragDetector: DragDetector = v.DragDetector
DragDetector.MouseClick:Connect(function(playerWhoClicked)
local ItemObject = game.ServerStorage.Ingredients:FindFirstChild(v.Name):Clone()
ItemObject.Parent = workspace.Debris
ItemObject:PivotTo(CFrame.new(v.CFrame.X, v.CFrame.Y + 2, v.CFrame.Z))
IngriedientsStock[v.Name] -= 1
end)
end
for reference im trying to recreate the dragging in pizza place that they use for toppings