Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i set an attachment position with script?

Asked by 6 years ago
mouse.Button1Down:connect(function()
    attach = Instance.new("Attachment")
    attach.Parent = mouse.Target
    attach.Visible = true
    attach.Position = mouse.Hit.p
end)

When i try to set the position, this attachment have the LOCAL position on the targeting part. How can i set the attachment position on the mouse.Hit.p?

Answer this question