How to Weld a BasePart to an Attachment?

Weld only has Part0 and Part1 and specifying an attachment for either will result in an error. I would prefer to use Character:FindFirstChild("RightGripAttachment", true) instead of the following:

local Fireball = Fireball:Clone()
local Weld = Instance.new("Weld", Fireball)
Weld.Part0 = Fireball
do
	local Part = Character:FindFirstChild("RightHand")
	if not Part then
		Part = Character:FindFirstChild("Right Arm")
		Weld.C0 = CFrame.new(0, 1, 0)
	end
	Weld.Part1 = Part
end

How should I proceed?

2 Likes

don’t know if you already did this but did you position the fireball at your right arm and if it’s in the workspace just incase a original copy is allocated in the replicated storage or any private area

You can’t weld a BasePart to an Attachment using a Weld.

However, you can use another Attachment, AlignPosition and AlignOrientation to do the same thing. Just make sure that both alignment constraints have RigidityEnabled set to true.

its not possible to weld an attachment but u could set the C0 to the attachment position and weld it to the attachment parent

2 Likes

Can you show me a simple example? I have no idea how to do it.