So, in my game, when someone wins the round, the top players appears in the podium of the game. But for some reason, the rigs are not showing correctly, like in this example below:
Here’s the script:
local finalRanking = {}
for i, player in pairs(availablePlayers) do
local plrDet = playerGameDetails[player.UserId]
if plrDet then
local neededLetters = #plrDet.NeededLetters
table.insert(finalRanking, {UID = player.UserId, Needed = neededLetters})
end
end
table.sort(finalRanking, function(valueA, valueB)
return valueA["Needed"] < valueB["Needed"]
end)
local scales = {
[1] = 2.5,
[2] = 1.75,
[3] = 1,
}
for i, player in pairs(finalRanking) do
if i > 3 then continue end
local success, humDesc = pcall(function()
return game.Players:GetHumanoidDescriptionFromUserId(player.UID)
end)
local humanoid = game.Workspace.Lobby.LastRound[i].Humanoid
if success and humDesc then
game.Workspace.Lobby.LastRound[i].Humanoid:ApplyDescription(humDesc)
end
end