if Config.EnableRagdoll==true then Char.Humanoid.Died:Connect(function()Ragdoll(Char)end)end human.HealthChanged:Connect(function(V)if not dead.Value and Blood.Value>=10 then if not Config.ZeroHealthEqualsDeath then human.Health=math.clamp(V,.1,100)else human.Health=math.clamp(V,0,100)end if(rodeath.Value==true or life.Value==false)and V<=-25 then local B=V*40 Blood.Value=Blood.Value+B human.PlatformStand=true human.AutoRotate=false Caido.Value=true end else human.PlatformStand=false human.AutoRotate=true human.Health=0 end end)


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)

