for i, v in pairs(script.Parent:GetChildren()) do if v.ClassName == "UnionOperation" or "Part" or "WedgePart" then weld = Instance.new("Weld", v) weld.Part0 = v weld.Part1 = script.Parent.Union.CFrame weld.C0 = v.CFrame:inverse() weld.C1 = script.Parent.Union.CFrame:inverse() v.Anchored = false end end
so the result of this would be the second half of the tool welding a far distance from the Handle.
You need the identify the CFrame of v if you want it to weld on a certain location. for example, v.CFrame = Handle.CFrame