I’ve been working on a character customization module in my spare time for fun, and I’ve hit a roadblock I’m unable to solve.
In my customizer, I have the option to select gender, being male or female. With this selection, I want the body to update so that the user gets a live visual of what their player will look like. However, I’m not sure how to do this. I’ve tried a number of things, such as duplicating the attachments on the body and sticking them onto the new body part but It doesn’t seem to work.
Here is what my customization UI looks like so far (I haven’t added any clothes yet).
I think what you’d be able to do is create a copy of the player’s body, then display that and edit it so there are no strange issues with replacing things. Once the player exits the Customization, you could set the player’s character as that new model. I think something along those lines should work, but let me know if that doesn’t exactly help your situation.
So have just a duplicate of the players body out of bounds and update it alongside the currently visible one? Like if they have male selected, show the male body, but still update the female body alongside the male body?
Basically, when the player enters the Customization UI, create a copy of the player’s character. That model won’t be assigned to the player, which might be the cause of some of your issues with customization. The ‘fake’ character (copy of the player’s character) will be the one visible in the UI and you’ll make all of the changes to that model. Once the player is done customizing their character, you would set Player.Character to the character copy that now has all of the updates.
I tried this. It seems to work well but it’s not that smooth between swapping genders. I did however discover something else that does exactly what I was looking for.
Turns out the Female R6 rig has a character mesh, and cloning that into a default R6 rig turns it female. This ended up doing exactly what I was looking for.