--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 |