So I recently made a script that changes the player’s character’s appearance when they join the game using HumanoidDescription. Here is the script:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Player.CharacterAppearanceLoaded:Connect(function()
local Humanoid = Character:WaitForChild("Humanoid")
local CurrentArmor = game.ServerStorage:WaitForChild("Armors"):WaitForChild("DefaultArmor")
Humanoid:ApplyDescription(CurrentArmor)
end)
end)
end)
It works fine with R6, but when I attempt to change to R15, it doesn’t work and gives me the error:
Humanoid::ApplyDescription() DataModel was not available
It is also worth mentioning that when I add a wait to the script it works with R15. Maybe It’s a problem with the CharacterAppearanceLoaded
event. If anyone knows how I can fix this, I would appreciate it.