How can I make this drag drop backpack system

I want to achieve the Roblox drag-and-drop backpack system:

My current code:

mouse.Move:Connect(function()
	if isDragging and currentDraggingTemplate then
		currentDraggingTemplate.Position = UDim2.new(0, mouse.X, 0, mouse.Y)
	end
end)
1 Like