Weld parts to Players arm r15

Hey, I am working on a Magma devil fruit I try to add parts when the player charges up, like here but when I try to weld it to my character it looks really weird https://gyazo.com/4a0b22f3df19043275b08beba3034363 this is my code

		local Sphere = script.HitFX1:Clone()
		Sphere.Parent = C.RightHand
		Sphere.CFrame = C.RightHand.CFrame * CFrame.new(0,0,0)
		Sphere.Name = "Sphere"
		
		local Sphere1 = script.HitFX2:Clone()
		Sphere1.Parent = C.RightLowerArm
		Sphere1.CFrame = C.RightLowerArm.CFrame * CFrame.new(0,0,0)
		Sphere1.Name = "Sphere"
		
		local Sphere2 = script.HitFX3:Clone()
		Sphere2.Parent = C.RightUpperArm
		Sphere2.CFrame = C.RightUpperArm.CFrame * CFrame.new(0,0,0)
		Sphere2.Name = "Sphere"
		
		local weld = Instance.new("ManualWeld")
		weld.Part0 = Sphere
		weld.Part1 = C.RightHand
		weld.C0 = weld.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
		weld.Parent = weld.Part0
		
		local weld1 = Instance.new("ManualWeld")
		weld1.Part0 = Sphere1
		weld1.Part1 = C.RightLowerArm
		weld1.C0 = weld1.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
		weld1.Parent = weld1.Part0
		
		local weld2 = Instance.new("ManualWeld")
		weld2.Part0 = Sphere2
		weld2.Part1 = C.RightUpperArm
		weld2.C0 = weld2.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
		weld2.Parent = weld2.Part0

Hi, for that just don’t change C0 and C1. Because C0 is the the offset with the part 0 and the C1 is the offset with the Part1. And by default C1 and C0 has for value CFrame.new(0, 0, 0)

		local Sphere = script.HitFX1:Clone()
		Sphere.Parent = C.RightHand
		Sphere.Name = "Sphere"

		local Sphere1 = script.HitFX2:Clone()
		Sphere1.Parent = C.RightLowerArm
		Sphere1.Name = "Sphere"

		local Sphere2 = script.HitFX3:Clone()
		Sphere2.Parent = C.RightUpperArm
		Sphere2.Name = "Sphere"

		local weld = Instance.new("Weld")
		weld.Part0 = Sphere
		weld.Part1 = C.RightHand

		weld.Parent = weld.Part0

		local weld1 = Instance.new("Weld")
		weld1.Part0 = Sphere1
		weld1.Part1 = C.RightLowerArm
		weld1.Parent = weld1.Part0

		local weld2 = Instance.new("Weld")
		weld2.Part0 = Sphere2
		weld2.Part1 = C.RightUpperArm
		weld2.Parent = weld2.Part0

And if you create weld with script you can use Weld instead of ManualWeld

1 Like

TY! a lot its working now you saved me