How to allign the cloned Accessory into a Dummy properly?

So, I have this Character Customization System now I’m in the Hair stage now, it works but the hair is not aligned and it’s not connected to the dummy. it should be intact with the head because it contains HairAttachment inside. You will see the problem in the video.

robloxapp-20210417-1910069.wmv (638.3 KB)

image

Another info, I already modified their HairAttachment position values on Studio 1 by 1. I thought it would be replicate as I cloned them and put them in the dummy, but it’s not.

This is my method:

if HolderValue.Value ~= #HairTable then
					HolderValue.Value += 1
					local newAsset = HairTable[HolderValue.Value].Value:Clone()
					print(newAsset)
					newAsset.Parent = CharacterDummy

				elseif HolderValue.Value == #HairTable then
					HolderValue.Value = 1
					local newAsset = HairTable[HolderValue.Value].Value:Clone()
					newAsset.Parent = CharacterDummy
				end

Sorry for my bad English this is not my first language.

Sorry for the bad quality of the video, it’s just my device is not that good and my recorder is the roblox studio.

I usually make a dictionary which includes the ItemName along with it’s bodyPart and CFrame offset. Then I put it to the bodyPart’s CFrame, and apply that offset in the table, make a weldConstraint and weld the accessory.
(In your case the offset would be CFrame.new(0,-0.3,0) approximately.)

1 Like

This is good, I thought I can rely on the HairAttachment because from me it will connect to the head.

1 Like

not always. I’ve worked on Star Wars games, Military games. The custom made Helmets never stay in place without CFrame offsets xd

1 Like

Alright, I’ll try your methods. Thanks for the advice!

Let’s see if someone had different approach in this case.

1 Like

try Humanoid:AddAccessory might work

1 Like

After all, My only solution is adding WeldConstraint in the Accessory.Handle to the Dummy’s head. Works perfectly fine now!

Thanks to @KazabiteBoltiz for the idea and thanks to @Creeperman16487 for another way of parenting a cloned accessory to a humanoid instead of using ClonedAccessory.Parent = Dummy

1 Like