What does, "DataModel was not available" mean when using Humanoid:ApplyDescription?
Asked by
5 years ago Edited 5 years ago
Hi, so I'm trying to make something that allows a player to have a R6 hitbox while still having an R15 character. To do this: I forced R6, inserted a R16 dummy into ServerStorage and put this script into StarterCharacterScripts (this script isn't complete yet).
02 | local char = script.Parent |
03 | local plr = game:GetService( "Players" ):GetPlayerFromCharacter(char) |
05 | local charinfo = game:GetService( "Players" ):GetCharacterAppearanceInfoAsync(uid) |
06 | local avatartype = charinfo.playerAvatarType |
09 | if avatartype = = "R15" then |
10 | local humdesc = game:GetService( "Players" ):GetHumanoidDescriptionFromUserId(uid) |
11 | humdesc.Parent = game:GetService( "ReplicatedStorage" ).Temp |
13 | plr:ClearCharacterAppearance() |
14 | for i,v in pairs (char:GetChildren()) do |
17 | for i 2 ,v 2 in pairs (v:GetChildren()) do |
18 | if v 2 :IsA( "BlockMesh" ) or v 2 :IsA( "SpecialMesh" ) then |
23 | Instance.new( "SpecialMesh" , v).Scale = Vector 3. new( 0 , 0 , 0 ) |
25 | char.Head.Transparency = 1 |
28 | local fchar = game:GetService( "ServerStorage" ).R 15 :Clone() |
30 | fchar.Humanoid:ApplyDescription(humdesc) |
31 | fchar.Parent = workspace |
when I run this, I get the error "DataModel was not available" that points to the line indicated above. I've seen another person with a similar error here, but there are no answers or comments that have helped me.
Thank you so much
also if you need to see the place that I'm doing it in, it's here