#Humanoid::ApplyDescription() DataModel was not available

1 messages · Page 1 of 1 (latest)

tribal spade
#
    "LeftArm";
    "LeftLeg";
    "RightArm";
    "RightLeg";
    "Torso"
} -- A table of the bodyparts you want to make blocky (without changing anything this works with R15 and R6)

local Players = game:GetService("Players")

local Debounce = false

Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)

        local Humanoid = character:WaitForChild("Humanoid")

        if Humanoid then
            
            Humanoid.RigType = "R6"
            
            task.wait(0.05)
            
            local ClonedDescription = Humanoid:GetAppliedDescription()    

            player.CharacterAdded:Connect(function()
                if Debounce then return end

                task.delay(1, function()
                    Debounce = false
                end)


                player:LoadCharacterWithHumanoidDescription(ClonedDescription)
                Debounce = true
            end)

            for i, bodypart in pairs(BodyParts) do
                ClonedDescription[bodypart] = 0
            end
            
            repeat task.wait() until Humanoid
            
            Humanoid:ApplyDescription(ClonedDescription)
        end
    end)
end)

while true do
    for _, player in ipairs(Players) do
        local humanoid = player:FindFirstChild("Humanoid")
        if humanoid.RigType ~= "R6" then
            humanoid.RigType = "R6"
        end
    end
    task.wait(1)
end```
sand shuttle
#

show error, not a paraphrase of it

orchid heath
tribal spade
#

oh

orchid heath
#

this line is 100% useless btw variables don't update on their own

#

if it's there - the loop runs once and exits immediately

#

if it's not there - memory leak

tribal spade
#

alright I'll try that

orchid heath
#

you could do something like,

repeat
    task.wait(0.1)
    if not player.Parent then
        return
    end
until character.Parent
tribal spade
#

it works the first time but not when the character respawns

orchid heath
#

oh lord i just reread your script, i didn't see the second connection because im on phone

tribal spade
#

this is the new script

    "LeftArm";
    "LeftLeg";
    "RightArm";
    "RightLeg";
    "Torso"
} -- A table of the bodyparts you want to make blocky (without changing anything this works with R15 and R6)

local Players = game:GetService("Players")
local Debounce = false

Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)

        local Humanoid = character:WaitForChild("Humanoid")
        
        repeat
            task.wait(0.1)
            if not player.Parent then
                return
            end
        until character.Parent

        if Humanoid then
            
            local ClonedDescription = Humanoid:GetAppliedDescription()    

            player.CharacterAdded:Connect(function()
                if Debounce then return end

                task.delay(1, function()
                    Debounce = false
                end)


                player:LoadCharacterWithHumanoidDescription(ClonedDescription)
                Debounce = true
            end)

            for i, bodypart in pairs(BodyParts) do
                ClonedDescription[bodypart] = 0
            end
            
            Humanoid:ApplyDescription(ClonedDescription)
        end
    end)
end)```
orchid heath
#

you can use Players::GetHumanoidDescriptionFromUserId

#

or whatever the method is called

#

also is there any reason for you to manually force R6?

#

can't you use game settings

tribal spade
#

but the problem is gone now

orchid heath
#

have you tried using an R6 StarterCharacter

orchid heath
orchid heath
#

wipe the limb properties

#

and apply

#

also this issue was commented on by a roblox staff member on devforum from what i remember, so it should eventually get fixed

tribal spade
# orchid heath have you tried using an R6 StarterCharacter

if I do that, players would just spawn in with the StarterCharacter avatar though

Anyways I'm using "local ClonedDescription = Players:GetHumanoidDescriptionFromUserId(player.UserId)" and although I'm still getting the error message "Humanoid::ApplyDescription() DataModel was not available", I don't see anything breaking now

tribal spade
#
    "LeftArm";
    "LeftLeg";
    "RightArm";
    "RightLeg";
    "Torso"
} -- A table of the bodyparts you want to make blocky (without changing anything this works with R15 and R6)

local Players = game:GetService("Players")
local Debounce = false

Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)

        local Humanoid = character:WaitForChild("Humanoid")
        
        repeat
            task.wait(0.1)
            if not player.Parent then
                return
            end
        until character.Parent

        if Humanoid then
            
            local ClonedDescription = Players:GetHumanoidDescriptionFromUserId(player.UserId)

            player.CharacterAdded:Connect(function()
                if Debounce then return end

                task.delay(1, function()
                    Debounce = false
                end)

                player:LoadCharacterWithHumanoidDescription(ClonedDescription)
                Debounce = true
            end)

            for i, bodypart in pairs(BodyParts) do
                ClonedDescription[bodypart] = 0
            end
            
            Humanoid:ApplyDescription(ClonedDescription)
        end
    end)
end)```
orchid heath
#

you only need one CharacterAdded

orchid heath
sand shuttle
tribal spade
#

ah

tender jolt
#

shoutout to this post

tribal spade