Applying the local player's character to a dummy

Hello everyone, I’m trying to make it so a dummy in workspace’s appearance changes to the current player’s character appearance

i’ve got some code here that i’m trying to use from this thread: How would I get the local player's appearance to apply to a dummy? - #12 by Tiryan_One

local Players = game:GetService("Players")

local function PlayerAdded(Player)

	local function CharacterAdded(Character)

		local Humanoid = Character:WaitForChild("Humanoid")

		local HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)

		workspace.DummyCutscene.Humanoid:ApplyDescription(HumanoidDescription)

		script:Destroy()
	end

	Player.CharacterAdded:Connect(CharacterAdded)
end

Players.PlayerAdded:Connect(PlayerAdded)

The script is located in serverscriptservice, I’ve made both the player and the dummy R6 aswell, and the dummy turns out like this:

image

as you can see, the dummy has his old body overlapping the new one, also the accessory is weird, any ideas?

1 Like

Try using ApplyDescriptionReset instead.

https://create.roblox.com/docs/reference/engine/classes/Humanoid#ApplyDescriptionReset

didn’t work, heres the rewritten script if that helps:

local Players = game:GetService("Players")

local function PlayerAdded(Player)

	local function CharacterAdded(Character)

		local Humanoid = Character:WaitForChild("Humanoid")

		local HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(Player.UserId)

		workspace.DummyCutscene.Humanoid:ApplyDescription(HumanoidDescription)
		
		workspace.DummyCutscene.Humanoid:ApplyDescriptionReset(HumanoidDescription)
		
		script:Destroy()
	end

	Player.CharacterAdded:Connect(CharacterAdded)
end

Players.PlayerAdded:Connect(PlayerAdded)

let me know if i did something wrong