Code issues - humanoid:ApplyDescription of the player

Hello, i want to know what am i doing wrong? :frowning: I need to make the dummy take the description of the player who dies.

what am i doing wrong?
image

script:

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		character.Humanoid.Died:Connect(function()
			
			local humanoid = script.Parent.Humanoid
			humanoid:ApplyDescription(game.Players:GetPlayerFromCharacter(player))
		end)
	end)
end)

Did you forget to add a HumanoidDescription in the dummy’s humanoid? (do within script) https://devforum.roblox.com/t/view-players-outfits/273496/18?u=bolekindsdevacc

Example script:

local humanoid = dummyhumanoidhere
local desc = game.Players:GetHumanoidDescriptionFromUserId(plr.UserId)
humanoid:ApplyDescription(desc)
1 Like

Try this one

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		character.Humanoid.Died:Connect(function()
			local plr = game.Players:GetPlayerFromCharacter(player)
			local humanoid = script.Parent.Humanoid
			humanoid:ApplyDescription(plr.UserId)
		end)
	end)
end)

It does not work :frowning:

this worked! :smiley: :smiley: :smiley: thanks you