Help attaching two parts to eachother on a certain point defined by an attachment

  1. What I mean ?
    so I want to create an attachment on a part and another one on the other and using script connect them from those points kinda like hats I tried this but not that not quite what i want
-- This is an example Lua code block
local function CloneTool()
	local model = Instance.new("Model")
	local torso = PlayerCharacter:FindFirstChild("UpperTorso")
	local torsoAttachment = torso:FindFirstChild("BodyBackAttachment")
	model.Name = Tool.Name
	model.Parent = PlayerCharacter
	ClonedParts = Tool.Parts:clone()
	ClonedParts.Parent = model
	local weld = Instance.new("Weld")
	weld.Name = "BackWeld"
	weld.Part0 = torso
	weld.Part1 = ClonedParts.Main
	weld.C0 = torsoAttachment.CFrame*CFrame.new(0,0,.1)
	weld.C0 = weld.C0 * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-40))
	weld.Parent = ClonedParts
end

i know there is a way to do this but i am not quite sure what this is called to look it up in the devhub or the devforum
if you do know away please enlighten me

I would suggest anchoring to the UpperTorso

what do you mean by anchoring it ?