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

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).

01wait(1)
02local char = script.Parent
03local plr = game:GetService("Players"):GetPlayerFromCharacter(char)
04local uid = plr.UserId
05local charinfo = game:GetService("Players"):GetCharacterAppearanceInfoAsync(uid)
06local avatartype = charinfo.playerAvatarType
07 
08 
09if avatartype == "R15" then
10    local humdesc = game:GetService("Players"):GetHumanoidDescriptionFromUserId(uid)
11    humdesc.Parent = game:GetService("ReplicatedStorage").Temp
12    -- Makes the character invisible
13    plr:ClearCharacterAppearance()
14    for i,v in pairs(char:GetChildren()) do
15        if v:IsA("Part") then
View all 32 lines...

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

1 answer

Log in to vote
1
Answered by 5 years ago

Perhaps the cloned humanoid needs to be within the DataModel?

It should be called from Server-Side.

0
Yeah, the problem was that the cloned character wasn't parented. ThisIsAnAccount255 143 — 5y
0
Thanks ThisIsAnAccount255 143 — 5y
Ad

Answer this question