Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

GetCharacterAppearanceAsync not placing hats on characters, any idea why?

Asked by
Azuc 112
5 years ago

Basically when the leaderboard updates the only thing that updates on the npcs on the stand is their clothes, the hats are just in random places near by instead of on their heads.

function UpdatePodium1()
    local DataStore = game:GetService("DataStoreService"):GetOrderedDataStore("Donations6")
    local Pages = DataStore:GetSortedAsync(false, 3)
    local Data = Pages:GetCurrentPage()
    local Pods = script.Parent.Parent.Parent.Parent.Pods
    for o,p in pairs (Data) do
        local TempModel = game.Players:GetCharacterAppearanceAsync(game.Players:GetUserIdFromNameAsync(p.key))
        TempModel.Parent = Pods:FindFirstChild(o)
    for i,v in pairs(TempModel:GetChildren()) do
        print(v.Name)
        v.Parent = Pods:FindFirstChild(o)
    wait()
end
    end
end

Answer this question