I’ve been trying to create a character creation system for a game, and I’ve been using a “mannequin” to display how the player’s character will look like once he finishes that scene.
However, recently, I’ve noticed that I would need to assign each property to the Dummy’s HumanoidDescription in order to pass all of the mannequin’s properties to the character.
When I came across the clothing part, I figured it would be as simple as setting the HumanoidDescription’s Shirt/PantsTemplate to the one I have in my table. Yet, it doesn’t seem to work, and instead sends the error "value of type string cannot be converted to a number"
How could I fix this? Here is an excerpt of the code:
["ClothingOptions"] = function()
ShowcaseDummy.Shirt.ShirtTemplate = Clothes[CharacterProperties.ClothingOptions.Shirt].ShirtTemplate
ShowcaseDummy.Pants.PantsTemplate = Clothes[CharacterProperties.ClothingOptions.Pants].PantsTemplate
HumanoidDescription.Shirt = Clothes[CharacterProperties.ClothingOptions.Shirt].ShirtTemplate
HumanoidDescription.Pants = Clothes[CharacterProperties.ClothingOptions.Pants].PantsTemplate
end,