DragDetector will not update Instance's position while using DragContinue

Hello!

Trying to play around with DragDetectors - I would like the item being dragged to be constrained to a 64x64 radius around the player, but I can’t get it to function how I want it to.

I have tried

Does not update the ReferenceInstance’s position unless you let go and drag again:

local drag = script.Parent
drag.DragContinue:Connect(function(player)
	drag.ReferenceInstance = player.Character
	--drag:RestartDrag()
end)

Works, but the mouse goes all weird:

local drag = script.Parent
drag.DragContinue:Connect(function(player)
	drag.ReferenceInstance = player.Character
	drag:RestartDrag()
end)

I have tried a few other methods but this post would be too long if I included them all. I want the drag to function how it does in my second example but without the mouse becoming offset and glitchy. Please let me know if you have any ideas :slight_smile: