How to clone Hair?

I would like to create cloned models of a player who wear same staff and have same decals of face, hair, etc.
Unfortunately, I cannot figure out how to clone accessories.

Here is a sweet couple:

Here is my code I have been playing for days…

The_Player_3D = The_Player.Character or The_Player.CharacterAdded:wait()
local The_Player_3D_humanoid = The_Player_3D:WaitForChild(“Humanoid”)

local W_Model
local M_Model

W_Model = game.ReplicatedStorage.W
M_Model = game.ReplicatedStorage.M

for _, accessory in pairs(The_Player_3D_humanoid:GetAccessories()) do 
	local W_new_acc
	local M_new_acc
	W_new_acc = accessory:Clone()
	M_new_acc = accessory:Clone()
	W_new_acc.Parent = W_Model
	M_new_acc.Parent = M_Model
end

Here is the result of the code. Look at this MONSTER! This creature even runs and jumps with 4 legs and 4 hands.

Obviously, I would like to have this.

2 Likes

There was a method for adding accessory to a character, AddAccessory. It is called through Humanoid object. Add the accessory into the parameter.


Link

3 Likes

Here is my fixed code. Thanks!

for _, accessory in pairs(The_Player_3D_humanoid:GetAccessories()) do 
	local W_new_acc
	local M_new_acc
	W_new_acc = accessory:Clone()
	M_new_acc = accessory:Clone()
	W_Model.Humanoid:AddAccessory(W_new_acc)
	M_Model.Humanoid:AddAccessory(M_new_acc)
end
3 Likes