Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I clone someones face and give the other person it?

I'm trying to make a command which allows the speaker to impersonate another player by taking their, Clothes, Accessories, BodyColor, Packages and Faces. However, I've managed to do them all except faces. Everytime I try to do it, the face doesn't copy and go onto the other player and i'm not quite sure. I've remove my lines in which had the decal so at the moment it only copys the other players things except face but I would be really thankful if someone could help with copying the face. Thank you

elseif cmd == "/e impersonate" and getRank(Player) >= 3 then
			local targets = findTargets(args[2])
			
			if targets ~= nil then
				for _, target in pairs(targets) do
					if target ~= nil then
						local char = target.Character
						if char ~= nil then
							for _, child in pairs(Player.Character:GetChildren()) do
								if child:IsA("Shirt") or child:IsA("Pants") or child:IsA("Accessory") or child:IsA("CharacterMesh") or child:IsA("BodyColors") then
									child:Destroy()
								end
							end
							for _, child in pairs(char:GetChildren()) do
								if child:IsA("Shirt") or child:IsA("Pants") or child:IsA("Accessory") or child:IsA("CharacterMesh") or child:IsA("BodyColors") then
									child:Clone().Parent = Player.Character
								end
							end
						end
					end
				end
			end

1 answer

✓ Accepted answer

In the script provided, you didn't try to take the face. You have to go into the player's head and find the decal named "face".

Here's what you should add:

if Player.Character.Head:FindFirstChild("face") then
	Player.Character.Head.face:Destroy()
end
if char.Head:FindFirstChild("face") then
	char.Head.face:Clone().Parent = Player.Character.Head
end

This discussion is preserved as it was. New answers, comments, and votes are closed.