Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Extremely odd weld issues?

Asked by 9 years ago

This script takes a center model and welds other models to it, and I had no problems with it until I got to the back side of the model. The weld won't move the outer model to the center model, instead it moves the center models piece that I want the outer model to move to, to the outer model (conclusively it's doing the weld backwards when all the other ones aren't)

-------------------------------------------------------------------
-------------------------------FRONT-------------------------------
-------------------------------------------------------------------
Weld = Instance.new("ManualWeld", script.Parent.Parent.Front.Holder)
Weld.Part0 = script.Parent.Parent.Front.Holder
Weld.Part1 = script.Parent.Front
Weld.C0 = CFrame.new(0,-1,5) * CFrame.Angles(0,math.rad(-90),0)
-------------------------------------------------------------------
--------------------------------LEFT-------------------------------
-------------------------------------------------------------------
Weld = Instance.new("ManualWeld", script.Parent.Parent.Left.Holder)
Weld.Part0 = script.Parent.Parent.Left.Holder
Weld.Part1 = script.Parent.Left
Weld.C0 = CFrame.new(-3,-1,0) * CFrame.Angles(0,math.rad(180),0)
-------------------------------------------------------------------
-------------------------------RIGHT-------------------------------
-------------------------------------------------------------------
Weld = Instance.new("ManualWeld", script.Parent.Parent.Right.Holder)
Weld.Part0 = script.Parent.Parent.Right.Holder
Weld.Part1 = script.Parent.Right
Weld.C0 = CFrame.new(3,-1,0) * CFrame.Angles(0,math.rad(180),0)
-------------------------------------------------------------------
--------------------------------BACK-------------------------------
-------------------------------------------------------------------
Weld = Instance.new("Weld", script.Parent.Parent.Back.Holder)
Weld.Part0 = script.Parent.Parent.Back.Holder
Weld.Part1 = script.Parent.Back
Weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0)

"BACK" just won't work, any help is appreciated!

Answer this question