How do I load the head on an Rthro character?

I have been working with this particular issue since mid November, and am still having issues.
There seem to be no good tutorials or information on this.

What I am doing…
I allow players to join the game wearing their custom characters and accessories.
However, in game they can change accessories and save and load their characters.

With the Rthro, and R15, I am reading the package id’s when they join the game, so I have the ids for Left Leg, Torso, etc… and from these Id’s I import the models that contain the parts, such as the Torso id, imports to the model having Upper Torso, and Lower Torso.

The issue though is with the head. When you get the id for the head, it doesnt contain a head part, but only a mesh, and inside that mesh there are Vector3 values that match up with the Attachments in a characters head (NeckRigAttachment, HairAttachment, FaceFrontAttachment, etc…)

Considering Rthro characters have different neck joint locations, I at first used this information to adjust the CFrame of the NeckRigAttachment, before sending the call to Humanoid:Rebuild (or whatever its called to rebuild the rig)

At first this didnt work, and I couldnt figure out why, until I realized the OriginalPosition object under the NeckRigAttachment was the issue, and I found that out by deleting it.

The results this time looked good, so I thought I had solved the issue, until it came to scaling the character. Any scaling I do, is putting the neck joint back at the default location.

So I figured, that OriginalPosition must still be the issue (since the BuildRig command sets a default if none is found) So I started using the value under the head Mesh, to set NeckRigAttachment’s child OriginalPosition value.

However, when I set this before calling the Humaoid:Build function, the OriginalPosition still gets reset to defualt. If I set the values after the Humanoid:Build, they stay, but only until I scale the character, then they are reset again.

So, does anyone have any idea of how to load an Rthro character specifically how to handle the head and the neck joints. Or even the proper order of operations.

I have been…
importing parts, then setting head mesh and rigattachment positions, then building humanoid, then setting scale

Thanks

2 Likes