Unable to clone an R6 rig to match a player's in-game appearance

I have this script:

local aftermath = workspace.Aftermath
local players = game.Players
local rig = workspace.deadzombie

players.PlayerAdded:Connect(function(plr)
	local uid = plr.UserId
	local grimacevictim = workspace.Rig:Clone()
	grimacevictim.Humanoid:ApplyDescription(players:GetHumanoidDescriptionFromUserId(uid))
	grimacevictim.Parent = aftermath
	local hrp = grimacevictim:WaitForChild("HumanoidRootPart")
	hrp.Anchored = true
	hrp.Position = rig.Head.Position
end)

My goal is to clone an R6 rig already in Workspace, and set the appearance of the clone to the player’s user id. But it constantly returns Humanoid::ApplyDescription() DataModel was not available. Can someone help with my script? Thank you

1 Like

You can actually set this new rig as the players new character instead of going about changing all of the players characters. Here is an example how you can do it.

game.Players.PlayerAdded:Connect(function(player)
    
    local oldchar = player.Character
    local newchar = workspace.Rig:Clone()

    newchar.HumanoidRootPart.Anchored = false
    newchar:SetPrimaryPartCFrame(oldchar.PrimaryPart.CFrame)

    player.Character = newchar

end)

Thank you! I can’t believe the solution was so simple lol