What do you want to achieve?
I want to make a podium stand for the top three players on the global leaderboard of my game.
What is the issue?
I get a warning Humanoid::ApplyDescription() Some requested assets were not available. I found out whilst testing that all the body parts of the character is spread out, as if I deleted the humanoid, but it’s still there.
What solutions have you tried so far?
I’ve tried googling it but there was no help, the closest I got to someone having the same problem as me just wanted to stop the error from showing up in output, not from resolving it; I’ve also searched up free models and tutorials on the leaderboards, but they do the same exact thing as me, and for some reason mine doesn’t work. I’ve also looked up another post, but it’s about bundles even though my character has no bundles attached/there are no head issues.
local podium = leaderboard:FindFirstChild("Podium"..rank)
local description = Players:GetHumanoidDescriptionFromUserId(userId)
if podium then
local statue = podium:FindFirstChild("Statue")
local humanoid = statue:FindFirstChild("Humanoid")
local success, errormsg = pcall(function()
humanoid:ApplyDescription(description)
end)
end
It’s a module and its 600+ lines of code, but this is the function itself
local function refreshLeaderboard(stat, playerHolder, leaderboard)
local orderedDataStore = DataStoreService:GetOrderedDataStore(stat.."324365")
for i, player in pairs(Players:GetPlayers()) do
local leaderstats = player:FindFirstChild("leaderstats")
local key = player.UserId.." - "..stat
if player.UserId < 1 then
key = 435102876
end
if stat == "Rank" then
local playerStats = leaderstats:FindFirstChild(stat)
local convertedRank = convertRankToID[playerStats.Value]
orderedDataStore:SetAsync(key.." - "..stat, convertedRank)
else
local playerStats = leaderstats:FindFirstChild(stat)
orderedDataStore:SetAsync(key.." - "..stat, playerStats.Value)
end
end
local success, errorMsg = pcall(function()
local data = orderedDataStore:GetSortedAsync(false, 100)
local page = data:GetCurrentPage()
for rank, savedData in ipairs(page) do
local userId = tonumber(string.match(savedData.key, "^%d+"))
local name = Players:GetNameFromUserIdAsync(userId)
local value = savedData.value
local podium = leaderboard:FindFirstChild("Podium"..rank)
local description = Players:GetHumanoidDescriptionFromUserId(userId)
if podium then
local statue = podium:FindFirstChild("Statue")
local humanoid = statue:FindFirstChild("Humanoid")
humanoid:ApplyDescriptionReset()
local success, errormsg = pcall(function()
humanoid:ApplyDescription(description)
end)
end
if stat == "Rank" then
if value == 1 then
value = "No Rank"
else
value = prestigeReqRank[value-1]
end
end
if stat == "Animes" or stat == "Cash" then
if value < 1000 then
value = Format(value, 0)
elseif countDigits(value) % 3 == 2 then
value = Format(value, 1)
elseif countDigits(value) % 3 == 0 then
value = Format(value, 0)
else
value = Format(value, 2)
end
end
if value then
local playerFrame = playerHolder.PlayerFrame:Clone()
playerFrame.Name = name
playerFrame.Parent = playerHolder
playerFrame.Visible = true
playerFrame.Rank.Text = "#"..rank
playerFrame.PlayerName.Text = name
playerFrame.PlayerRank.Text = value
end
end
end)
end
I just used a r15 block R15 Mesh dummy
here’s the code
local module = {}
function module.boo(player)
print(player.UserId)
local s = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
local success, errormsg = pcall(function()
game.Workspace.Dummy.Humanoid:ApplyDescription(s)
end)
end
return module
Server sided
game.Players.PlayerAdded:Connect(function(player)
local ss = require(script.ModuleScript)
ss.boo(player)
end)
Wait, I’ve found the issue. So my friend made this and I didn’t know, but the dummy was rescaled so that it’s bigger, is there a way to have the humDesc work on rescale?
Wdym. I tried it with the non scaled one and it worked, but how do I make it work for scale? The humanoid:ApplyDescriptionReset() just stops the script, not sure why.
local module = {}
function module.boo(player)
print(player.UserId)
local s = game.Players:GetHumanoidDescriptionFromUserId(player.UserId)
local success, errormsg = pcall(function()
game.Workspace.Dummy.Humanoid:ApplyDescriptionReset(s)
end)
end
return module