-
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
-
What is the issue?
Humanoid.ApplyDescriptionFinishednever fires, I’ve been using :Wait() and :Connect() -
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)