I'm using this script to set the player's body to the blocky type and it works when a player joins and the character is first added but after that it wont load the players character again and they end up stuck dead.
game.Players.CharacterAutoLoads = false
local function onPlayerAdded(player)
player:LoadCharacter()
local character = player.Character or player.CharacterAdded:Wait()
local CurrentDescription = player.Character:FindFirstChild("Humanoid"):GetAppliedDescription()
CurrentDescription.Head = 0
CurrentDescription.LeftArm = 0
CurrentDescription.LeftLeg = 0
CurrentDescription.RightLeg = 0
CurrentDescription.RightArm = 0
CurrentDescription.Torso = 0
player.Character.Humanoid:ApplyDescription(CurrentDescription)
character.Humanoid.Died:Connect(function()
player:LoadCharacter()
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character.Humanoid or character.ChildAdded:WaitForChild("Humanoid")
local CurrentDescription = player.Character:FindFirstChild("Humanoid"):GetAppliedDescription()
CurrentDescription.Head = 0
CurrentDescription.LeftArm = 0
CurrentDescription.LeftLeg = 0
CurrentDescription.RightLeg = 0
CurrentDescription.RightArm = 0
CurrentDescription.Torso = 0
player.Character.Humanoid:ApplyDescription(CurrentDescription)
end)
end
game.Players.PlayerAdded:Connect(onPlayerAdded)
