Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can Unions be welded?

Just as the title says, can UnionOperations be welded together? I cannot get them to weld using any kind of weld script...

1 comment

0

I believe they can be welded together.

1 answer

Yep, they can. Try it out with this (make sure the unions and/or parts are in a model and that they are anchored and in the position you want):

PartName="the name of the part/union you want the welds to be in"

local function weldBetween(a, b)
    local weld = Instance.new("ManualWeld", a)
    weld.Part0 = a
    weld.Part1 = b
    weld.C0 = a.CFrame:inverse() * b.CFrame
    return weld
end

for i,v in pairs(script.Parent:GetChildren()) do
	if not(v.Name==PartName) and not(v:IsA("Script"))then
		weldBetween(script.Parent[PartName], v)
		v.Anchored=false
	end
end
script.Parent[PartName].Anchored=false

3 comments

0

Does not keep parts in their positions... Only groups them at the handle's position.

0

What do you mean? I tried that exact scrip myself and it kept the position of all the parts.

0

Did you make sure the parts are anchored to begin with?

This discussion is preserved as it was. New answers, comments, and votes are closed.