--local prolene = Functions.prolene
--local Compress = Functions.Compress
--local defib = Functions.defib
--local o2 = Functions.o2



local Compress_Multi = FunctionsMulti.Compress
local Bandage_Multi = FunctionsMulti.Bandage
local Splint_Multi = FunctionsMulti.Splint
local Epinephrine_Multi = FunctionsMulti.Epinephrine
local anesthetic_Multi = FunctionsMulti.anesthetic
local Morphine_Multi = FunctionsMulti.Morphine
local BloodBag_Multi = FunctionsMulti.BloodBag
local Tourniquet_Multi = FunctionsMulti.Tourniquet
local prolene_Multi = FunctionsMulti.prolene
local o2_Multi = FunctionsMulti.o2
local defib_Multi = FunctionsMulti.defib
local npa_Multi = FunctionsMulti.npa
local catheter_Multi = FunctionsMulti.catheter
local etube_Multi = FunctionsMulti.etube
local nylon_Multi = FunctionsMulti.nylon
local balloon_Multi = FunctionsMulti.balloon
local skit_Multi = FunctionsMulti.skit
local bvm_Multi = FunctionsMulti.bvm
local nrb_Multi = FunctionsMulti.nrb
local scalpel_Multi = FunctionsMulti.scalpel
local suction_Multi = FunctionsMulti.suction
local clamp_Multi = FunctionsMulti.clamp
local prolene5_Multi = FunctionsMulti.prolene5
local drawblood_Multi = FunctionsMulti.drawblood


local Algemar = Functions.Algemar
local Fome = Functions.Fome
local Stance = Evt.MedSys.Stance
local Collapse = Functions.Collapse
local rodeath = Functions.rodeath
local Reset = Functions.Reset
local TS = game:GetService("TweenService")




Bandage.OnServerEvent:Connect(function(player)


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

	local Bandagens = Human.Parent.Saude.Kit.Bandagem

	if enabled.Value == false and Caido.Value == false  then
	
		if Bandagens.Value >= 1 and Sangrando.Value == true then 
		enabled.Value = true

		wait(.3)	
				
			
		local number = math.random(1, 2)
				
		if number == 1 then		
			Sangrando.Value = false
		end
				
		Bandagens.Value = Bandagens.Value - 1 
		
		
		wait(2)
		enabled.Value = false
	
		end	
	end	
end)
