You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
i have an autorigger script works perfectly exept 1 small issue -
What is the issue? Include screenshots / videos if possible!
whenever i weld 2 parts with a motor 6d (for animation purposes) the motor6d has C0 and C1 to 0,0,0 wich causes all the part to be in the same place,i would like to make it so the parts stay in place after welding, a bit like moon animator easy weld -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i have tried looking for solutions but most of them weren’t the error i had
here is the auto script in question, inside the weld function is were i probably need help
local function weld(part0,part1)
local weld = Instance.new("Motor6D")
weld.Part0 = part0
weld.Part1 = part1
weld.Parent = part0
weld.Name = part1.Name
end
for i,model in script.Parent:GetChildren() do
if model:IsA("Model") then
for i,part in model:GetDescendants() do
if part.Parent.Name == "Clothing Model" then
part.Parent = model
end
end
local hrp = model.Torso:Clone()
hrp.Parent = model
hrp.CFrame = model.Torso.CFrame
hrp.Name = "HumanoidRootPart"
model["Clothing Model"]:Destroy()
weld(model.HumanoidRootPart,model.Torso)
for i,part in model:GetChildren() do
if part:IsA("Part") then
if part.Name ~= "HumanoidRootPart" and part.Name ~= "Torso" then
weld(model.Torso,part)
end
end
end
for i,thing in model:GetChildren() do
if thing:IsA("Model") then
for i,part in thing:GetChildren() do
if part.Name ~= "Middle" then
weld(thing.Middle,part)
end
end
end
end
for i,part in model:GetChildren() do
if part.Name == "Left Leg" then
weld(part,model.Leg1.Middle)
end
if part.Name == "Right Leg" then
weld(part,model.Leg2.Middle)
end
if part.Name == "Left Arm" then
weld(part,model.Arm1.Middle)
end
if part.Name == "Right Arm" then
weld(part,model.Arm2.Middle)
end
if part.Name == "Torso" then
weld(part,model.Chest.Middle)
end
if part.Name == "Head" then
weld(part,model.Helmet.Middle)
end
end
for i,part in model:GetDescendants() do
if part:IsA("BasePart") then
part.Anchored = false
end
end
end
end