Here's how to copy comments with attachments to the last linked issue:
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.component.ComponentAccessor
def commentManager = ComponentAccessor.getCommentManager()
def issueLinkManager = ComponentAccessor.getIssueLinkManager()
def attachmentManager = ComponentAccessor.getAttachmentManager()
def user = ComponentAccessor.getJiraAuthenticationContext().loggedInUser
def issue = event.issue as Issue
lastComment = commentManager.getLastComment(issue)
body = lastComment.getBody()
author = lastComment.getAuthorApplicationUser()
def linkedIssue = issueLinkManager.getLinkCollection(issue, user).getAllIssues().last()
lastAttachment = attachmentManager.getAttachments(issue).last()
attachmentManager.copyAttachment(lastAttachment, user, linkedIssue.key)
commentManager.create(linkedIssue, author, body, false)