I’m trying to make a party system where if the player joins the party, it puts their character onto a premade group of characters. This might make more sense if you look at the code. When I test it, it prints the correct player name and the correct character they are supposed to be in, but then I get this error
“Humanoid:ApplyDescription() DataModel not available”
rs.RemoteEvents.UpdateLobby.OnClientEvent:Connect(function(party)
local characters = rs.Characters
local characterorder = {
[characters.FrontMiddle] = party[1],
[characters.FrontLeft] = party[2],
[characters.FrontRight] = party[3],
[characters.BackLeft] = party[4],
[characters.BackMiddle] = party[5],
[characters.BackRight] = party[6]
}
for character, player in characterorder do
if player == nil then return end
local char = character:Clone()
print(player.Name .. '\'s description applied to '.. char.Name)
char.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
end
end)