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

How do you position welds correctly?

Asked by 7 years ago

So I have a model named GasMask, and I want to position it correctly. I don't understand why, but just know that this isn't the only piece of code, I'm just cutting it down to the simplest part so you understand my meaning.

I. Don't. Understand. How. To. Position. A. Welded. Object. To. A. Head.

Example;

weld.Part0 = head
weld.Part1 = v
weld.C1= v.CFrame:inverse() * CFrame.new(head.Position)

Results in the weld together, but not in the heads position.

0
Note: I used a for_,v in pairs loop to grab all the parts and weld them together. THIS SCRIPT DOES WORK. The only bug, is that it positions the hat behind or in front of the head. Not where it's supposed to be. I need help, somebody... Swordlust 15 — 7y
0
You need to weld both sides. IE: weld.C0 = head.CFrame:inverse() * CFrame.new(head.Position) Vingam_Securis 213 — 7y

Answer this question