of     1   

Brick_man
#139255215Friday, July 04, 2014 10:48 PM GMT

--This looks like a humanoid model, but it isn't. I have a few rotated parts in here, and when I weld them, it messes up completely... Torso = script.Parent:WaitForChild("Torso") for _,v in pairs(script.Parent:GetChildren()) do if v:IsA("BasePart") then if v ~= Torso then w = Instance.new("Weld") w.Part0 = Torso w.Part1 = v w.C0 = v.CFrame w.C1 = Torso.CFrame w.Parent = Torso end end end for _,v in pairs(script.Parent:GetChildren()) do if v:IsA("BasePart") then v.Anchored = false end end
Brick_man
#139258202Friday, July 04, 2014 11:21 PM GMT

BUMP specifically, I think the problem is the C0 and C1 parts.
Brick_man
#139260700Friday, July 04, 2014 11:50 PM GMT

I help all of you guys with your scripts...
Frostglacier
#139261714Saturday, July 05, 2014 12:02 AM GMT

What do you mean by orientation? Are the parts being repositioned once welded?
Casualist
#139262530Saturday, July 05, 2014 12:12 AM GMT

Torso = script.Parent:WaitForChild("Torso") for _,v in pairs(script.Parent:GetChildren()) do if v:IsA("BasePart") then if v ~= Torso then w = Instance.new("Weld") w.Part0 = Torso w.Part1 = v w.C0 = Torso.CFrame:inverse() * v.CFrame w.Parent = Torso end end end for _,v in pairs(script.Parent:GetChildren()) do if v:IsA("BasePart") then v.Anchored = false end end

    of     1