Humanoid.ApplyDescriptionFinished never fires

  1. What do you want to achieve? I have a startercharacter (with custom parts on it) for the player, i load the player’s avatar on it and want to make the boolvalue be true if it’s loaded

  2. What is the issue? Humanoid.ApplyDescriptionFinished never fires, I’ve been using :Wait() and :Connect()

  3. What solutions have you tried so far? I’ve found no solution to this, Idk if im using it wrong

local Players = game:GetService("Players")

local function LoadCharacter(player, character)
	local AvatarLoaded = character:FindFirstChild("AvatarLoaded")
	
	if not AvatarLoaded then
		AvatarLoaded = Instance.new("BoolValue")
		AvatarLoaded.Name = "AvatarLoaded"
		AvatarLoaded.Parent = character
	end
	
	local Humanoid = character:WaitForChild("Humanoid")
	local HumanoidDescription = Players:GetHumanoidDescriptionFromUserId(player.UserId)
	
	Humanoid:ApplyDescription(HumanoidDescription)
	
	Humanoid.ApplyDescriptionFinished:Connect(function()
		AvatarLoaded.Value = true
	end)
end

Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		LoadCharacter(player, character)
	end)
end)

The documentation says that ApplyDescription is a yielding function, so the description has already finished applying when you create the connection.
https://create.roblox.com/docs/reference/engine/classes/Humanoid#ApplyDescription

1 Like

Like @MayorGnarwhal implied, all you have to do is put the Humanoid.ApplyDescriptionFinished before Humanoid:ApplyDescription(HumanoidDescription).

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.