--Char.Humanoid.BreakJointsOnDeath = false


if configuracao.EnableRagdoll == true then
	if human.Health <= 1 then
		Ragdoll(Char)
	end
end


human.HealthChanged:Connect(function (newhealth)
		if dead.Value == false and Sang.Value >= 10 then
		
		
			human.Health = math.clamp(newhealth, 0.1, 100)
		
		if newhealth <= 0.1 or human.Health <= 0.1 then
			Caido.Value = true
		end
	
		if (rodeath.Value == true or life.Value == false) and newhealth <= -25 then
			local loss = newhealth * 40
			Sang.Value = Sang.Value + loss
			human.PlatformStand = true
			human.AutoRotate = false	
			Caido.Value = true	
	
		end
		
			
		
		else
			human.PlatformStand = false
		human.AutoRotate = true
			
			human.Health = 0
			
		end
end)

