Im completely frustrated because im a pretty intermediate scripter but for the life of me Ive never been able to figure out Motor6D
and now I really need to use it but I cant figure out the issue.
I have been doing in pairs to get a Motor6D in each part
This is the latest variation I have tried, all it is really successful at is welding everything together, but no matter how I order the Parts and C’s. I feel like I tried every variation of how they connect and no matter what I do the best I can get out of the situation is the welding, but I cant animate it and it wont stay when I try to tween it so I must be approaching this completely wrong.
for i,v in pairs(parent:GetChildren()) do
if (v:IsA("BasePart")) then
if (bodyBase) then
local m6d = Instance.new("Motor6D")
m6d.Name = tostring(v.Name.."_M6D")
m6d.Part0,m6d.Part1 = bodyBase,v
m6d.C0 = bodyBase.CFrame:inverse()
m6d.C1 = v.CFrame:inverse()
m6d.Parent = v
end
end