--Char.Humanoid.BreakJointsOnDeath = false


if Config.EnableRagdoll == true then
	Char.Humanoid.Died:Connect(function()
		Ragdoll(Char)
	end)
end

human.HealthChanged:Connect(function (newhealth)

	if not dead.Value and Blood.Value >= 10 then
		if not Config.ZeroHealthEqualsDeath then
			human.Health = math.clamp(newhealth, 0.1, 100)
		else
			human.Health = math.clamp(newhealth, 0, 100)
		end



		if (rodeath.Value == true or life.Value == false) and newhealth <= -25 then
			local loss = newhealth * 40
			Blood.Value = Blood.Value + loss
			human.PlatformStand = true
			human.AutoRotate = false	
			Caido.Value = true

		end

	else
		human.PlatformStand = false
		human.AutoRotate = true
		human.Health = 0

	end
end)

