Scaling humanoids bug occurs too often in game but not in studio?

Right now I use a function which takes the NumberValues descendant of the Humanoid and increments them proportionately. However, sometimes the Character grows in a weird manner and I have checked whether it has duplicate attachments which it didn’t. (P.S. That is a hit box welded to the HumanoidRootPart)

This bug occurs too often in game, but very rarely in studio (which is on accurate test play solo!)

Any thoughts?

function module.Scale(character, increment)
    if alive(character) then
        local humanoid = character.Humanoid
        for i,v in pairs(humanoid:GetChildren()) do
            if v:IsA("NumberValue") then
                v.Value = v.Value+increment


1 Like

Are you doing this server-side or client-side? Which players see the weird proportions, only the player themselves or everyone?

Server-sided and everyone can see it. I’m cloning a default sized character from the ServerStorage and changing the sizes. It’s mainly weird because it almost never happens in studio (on accurate play solo) as it only happened to me maybe once or twice, but in game it’s happening all the time.

Could you try adding this at the end of the character handler code?

-- Brute-force the automatic scaling to update:
Humanoid.AutomaticScalingEnabled = false
Humanoid.AutomaticScalingEnabled = true

And see if that alleviates the issue?


Thanks this has solved it!