Get part's own position

Hey , I am trying to make an attachment into a position of mouse on a part , but of course as we know that if we parent the attachment to the part, the mouseposition = mouse.Hit.Position will not be at that position even if the part is at that position , but it will go to that position relative to the part.

How would I fix it and what method should I use for getting the position of the mouse.?

mouseposition = mouse.Hit.Position
local mouseposition -- some position.

local attachment = Instance.new("Attachment",part)

						attachment.Position = mouseposition
attachment.WorldPosition = mouseposition

I was confused on how the worldpos did not work for me , but now it suddently is working

1 Like

whenever i try your solution, the attachment goes to the center of the baseplate… help?