I have this sphere like ball made with parts that are rotated and cframed. Is it possible to weld them all together without removing its rotation?
all=Workspace.Model:getChildren()
for a=1,#all do
if all[a]:IsA("BasePart") and all[a].Name=="Holder" then
holder=all[a]
end
end
for a=1,#all do
if all[a]:IsA("BasePart") and all[a].Name~="Holder" then
local weld=Instance.new("Weld",all[a])
weld.C0=all[a].CFrame--+all[a].CFrame.Angles
weld.Part0=all[a]
weld.C1=holder.CFrame
weld.Part1=holder--+holder.CFrame.Angles
end
end
for a=1,#all do
if all[a]:IsA("BasePart") then
all[a].Anchored=false
end
end
Before script runs.. postimg.org/image/y90gh2b1v/ After script runs.. postimg.org/image/55c8ktmyb/

2 comments
All welds do not function if any of the parts joined are anchored. They only work if both parts are un-anchored. The reason the cframes get "messed up" is because you do not use the C1 property correctly.
This answer helped the issue. Thanks.