------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------



Compress_Multi.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local enabled = Human.Parent.Saude.Variaveis.Doer
	local MLs = Human.Parent.Saude.Variaveis.MLs
	local Caido = Human.Parent.Saude.Stances.Caido

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado
	
	if Caido.Value == false and target.Value ~= "N/A" then

		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid
	

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		
		if enabled.Value == false then
	
		if MLs.Value > 1 then 
		enabled.Value = true
		
		wait(.3)		
		
		MLs.Value = MLs.Value - math.random(50,75)
		
		wait(5)
		enabled.Value = false
		end	

		end	
	end
end)

Bandage_Multi.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local enabled = Human.Parent.Saude.Variaveis.Doer
	local MLs = Human.Parent.Saude.Variaveis.MLs
	local Caido = Human.Parent.Saude.Stances.Caido
	local Item = Human.Parent.Saude.Kit.Bandagem

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado
	
	if Caido.Value == false and target.Value ~= "N/A" then

		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid
	

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		local Ferido = PlHuman.Parent.Saude.Stances.Ferido
		
		if enabled.Value == false then
	
		if Item.Value >= 1 and Sangrando.Value == true then 
		enabled.Value = true
		
		wait(.3)		
		
		Sangrando.Value = false	
		Item.Value = Item.Value - 1 
		
		
		wait(2)
		enabled.Value = false
		end	

		end	
	end
end)

Splint_Multi.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local enabled = Human.Parent.Saude.Variaveis.Doer
	local MLs = Human.Parent.Saude.Variaveis.MLs
	local Caido = Human.Parent.Saude.Stances.Caido
	local Item = Human.Parent.Saude.Kit.Splint

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado
	
	if Caido.Value == false and target.Value ~= "N/A" then

		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid
	

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		local Ferido = PlHuman.Parent.Saude.Stances.Ferido
		
		if enabled.Value == false then
	
		if Item.Value >= 1 and Ferido.Value == true  then 
		enabled.Value = true
		
		wait(.3)		
		
		Ferido.Value = false		

		Item.Value = Item.Value - 1 
		
		
		wait(2)
		enabled.Value = false
		end	

		end	
	end
end)

Tourniquet_Multi.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local enabled = Human.Parent.Saude.Variaveis.Doer
	local MLs = Human.Parent.Saude.Variaveis.MLs
	local Caido = Human.Parent.Saude.Stances.Caido
	local Item = Human.Parent.Saude.Kit.Tourniquet

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado
	
	if Caido.Value == false and target.Value ~= "N/A" then

		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid
	

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		local Ferido = PlHuman.Parent.Saude.Stances.Ferido
		

	if PlHuman.Parent.Saude.Stances.Tourniquet.Value == false then

		if enabled.Value == false then
		if Item.Value > 0 and Sangrando.Value == true then 
		enabled.Value = true
		
		wait(.3)		
		
		PlHuman.Parent.Saude.Stances.Tourniquet.Value = true		

		Item.Value = Item.Value - 1 
		
		
		wait(2)
		enabled.Value = false
		end
		end	
	else
		if enabled.Value == false then
		if PlHuman.Parent.Saude.Stances.Tourniquet.Value == true then 
		enabled.Value = true
		
		wait(.3)		
		
		PlHuman.Parent.Saude.Stances.Tourniquet.Value = false		

		Item.Value = Item.Value + 1 
		
		
		wait(2)
		enabled.Value = false
		end
		end	
	end
	end
end)

Epinephrine_Multi.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local enabled = Human.Parent.Saude.Variaveis.Doer
	local MLs = Human.Parent.Saude.Variaveis.MLs
	local Caido = Human.Parent.Saude.Stances.Caido
	local Item = Human.Parent.Saude.Kit.Epinefrina

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado
	
	if Caido.Value == false and target.Value ~= "N/A" then

		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid
	

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		local Ferido = PlHuman.Parent.Saude.Stances.Ferido
		local PlCaido = PlHuman.Parent.Saude.Stances.Caido
		
		if enabled.Value == false then
	
		if Item.Value >= 1 and PlCaido.Value == true then 
		enabled.Value = true
		
		
		wait(.3)		
		
		if Dor.Value > 0 then
		Dor.Value = Dor.Value + math.random(10,20)
		end
		
		if Sangrando.Value == true then
		MLs.Value = MLs.Value + math.random(10,35)
		end
		
		PlCaido.Value = false		

		Item.Value = Item.Value - 1 
		
		
		wait(2)
		enabled.Value = false
		end	

		end	
	end
end)


Morphine_Multi.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local enabled = Human.Parent.Saude.Variaveis.Doer
	local MLs = Human.Parent.Saude.Variaveis.MLs
	local Caido = Human.Parent.Saude.Stances.Caido
	local Item = Human.Parent.Saude.Kit.Morfina

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado
	
	if Caido.Value == false and target.Value ~= "N/A" then

		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid
	

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		local Ferido = PlHuman.Parent.Saude.Stances.Ferido
		local PlCaido = PlHuman.Parent.Saude.Stances.Caido
		
		if enabled.Value == false then
	
		if Item.Value >= 1 and Dor.Value >= 1 then 
		enabled.Value = true
		
		wait(.3)		
		
		Dor.Value = Dor.Value - math.random(100,150)

		Item.Value = Item.Value - 1 
		
		
		wait(2)
		enabled.Value = false
		end	

		end	
	end
end)


BloodBag_Multi.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local enabled = Human.Parent.Saude.Variaveis.Doer
	local MLs = Human.Parent.Saude.Variaveis.MLs
	local Caido = Human.Parent.Saude.Stances.Caido
	local Item = Human.Parent.Saude.Kit.SacoDeSangue

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado
	
	if Caido.Value == false and target.Value ~= "N/A" then

		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid
	

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		local Ferido = PlHuman.Parent.Saude.Stances.Ferido
		local PlCaido = PlHuman.Parent.Saude.Stances.Caido
		local Sang = PlHuman.Parent.Saude.Variaveis.Sangue
		
		if enabled.Value == false then
	
		if Item.Value >= 1 and Sangrando.Value == false and Sang.Value < 7000 then 
		enabled.Value = true
		
		wait(.3)		
		
		Sang.Value = Sang.MaxValue

		Item.Value = Item.Value - 1 
		
		
		wait(2)
		enabled.Value = false
		end	

		end	
	end
end)

