local Weld = Instance.new("Weld",TargetRoot)
Weld.Part0 = TargetRoot
Weld.Part1 = Character.HumanoidRootPart
Weld.C0 *= CFrame.new(0,0,5)*CFrame.Angles(0,math.rad(180),0) -- CFrame angles use radians so you have to convert.
Also even if i used the target player/npc as the parent/part0 i would use the player character instead it might cause issues with weight and gravity. (I just wanted to replicate your script as closely as possible)