Hello, how do I weld two parts, this is what I know, and no I can’t use the weld constraint,
weld = Istance.new(“Weld”)
weld.Parent = part1
weld.Part0 = part1
weld.Part1 = part2
weld.C0 = ???
weld.C1 = ???
The ‘???’ means that I don’t know what to put there.
Weld Constraint will ignore Orientation, that I want to avoid, I perfectly know it’s a way better than the weld. My objective is to make a valve that rotating, will let the spaceship rotate too, I failed with CFrame so I’m using welds.
Orientation shouldn’t be ignored by WeldConstraints. If you need the C properties though, that’d be more understandable, since WeldConstraints do not offer that.
Create a new CFrame using only the position of Part0, then set the C0 and C1 to the inverse of the CFrame of Part0 and Part1 respectively, multiplied by the previously created CFrame. This kind of stuff you can find in toolbox resources involving model-welding operations.
Ok lemme do a better question, let’s say I have a cframe and an orientation, how do I apply the orientation to a CFrame, doing that I can use WCs that ware better.
If you’re asking to weld the parts, and have that part relatively in the same distance from the other part’s location, the only thing I could think of would be this:
Weld.C0 = part1.CFrame:Inverse() * part2.CFrame
Aside from that, I don’t think I understand your question.
So, I need to rotate a spaceship, having the orientation it has to get, the space ship is welded with weld constraint so I can’t set just orientation on the base of the spaceship, but I need to set his cframe, but how do I set a cframe having an orientation?