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

Humanoid Description Bug Killing Player?

Asked by 3 years ago
Edited 3 years ago

So basically when a player joins my game I am trying to default them to normal body parts. "The normal cubical ones". To do this I am cloning their current HumanoidDescription and then changing all the bodyType values to 0. But I came to a problem for certain people with "special" bodyTypes, it keeps killing them every time I :ApplyDescription()

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAppearanceLoaded:Connect(function(Character)
        wait(3)
        local Humanoid = Character and Character:FindFirstChild("Humanoid")
        local HumDesc = Humanoid:FindFirstChild("HumanoidDescription")
        HumDesc.Head = 0
        HumDesc.LeftArm = 0
        HumDesc.LeftLeg = 0
        HumDesc.RightArm = 0
        HumDesc.RightLeg = 0
        HumDesc.Torso = 0
        Humanoid:ApplyDescription(HumDesc)
    end)
end)

Does anyone know why it kills certain people or is it just a bug I have to report?

Or is there another way to achieve what I am doing?

0
I think there's something about the head, left arm, right arm, left leg, right leg and torso. There's something about those 0s I guess.. qMrSpooky 20 — 3y
0
You can add a custom character model in the StarterPlayer (name it StarterCharacter), and then maybe change the appearance to the original character's through scripting WoTrox 345 — 3y

Answer this question