Need help with getting the player's head!

I want to attach their head on a toddler body. Well I figured out a way to do that but it was in game soo this happend :face_with_hand_over_mouth:


Now I want to get the head from their roblox loadout, how am I suppose to do that?

Sorce code inside Server,

local Rs = game:GetService("ReplicatedStorage")
local charEvent = Rs.Characters:WaitForChild("CharacterTransfer")

charEvent.OnServerEvent:Connect(function(Player, CharName)
	local ReplicatedChar = Rs.Characters:FindFirstChild(CharName)
	local ClonedCharacter = ReplicatedChar:Clone()
	local PlayersChar = Player.Character
	
	if CharName == "Kid" then
	local headClone = PlayersChar.Head:Clone()
	headClone.Parent = ClonedCharacter
	headClone.CFrame = ClonedCharacter.Head.CFrame
	
	local Motor6d = ClonedCharacter.Torso.Head
	Motor6d.Part1 = headClone
	ClonedCharacter.Head:Destroy()
	end
	
	ClonedCharacter.Name = Player.Name
	Player.Character = ClonedCharacter
	ClonedCharacter.Parent = workspace
	ClonedCharacter.HumanoidRootPart.CFrame = PlayersChar.HumanoidRootPart.CFrame
	
	PlayersChar:Destroy()
end)

Why don’t you store a reference to the original head somewhere? That’s probably the easiest way to do it.

1 Like

I kinda dont wanna do that but i guess thats the last option I got

You could also use Players:GetCharacterAppearanceInfoAsync() That allows you to create a new Head, and set the skin color to the Player’s skin color. You can even get all their assets!

2 Likes