local z=Evt.MedSys local j=Evt.MedSys.Multi local I=z.Compress local Z=z.Bandage local O=z.Splint local U=z.PainKiller local Y=z.Energetic local n=z.Tourniquet local H=j.Compress local K=j.Bandage local q=j.Splint local b=j.Epinephrine local w=j.Morphine local p=j.BloodBag local l=j.Tourniquet local a=z.Algemar local t=z.Fome local x=Evt.MedSys.Stance local u=z.Collapse local g=z.Reset local L=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")I.OnServerEvent:Connect(function(z)local j=z.Character.Humanoid local I=j.Parent.Saude.Variaveis.Doer local Z=j.Parent.Saude.Variaveis.MLs local O=j.Parent.Saude.Stances.Caido if I.Value==false and O.Value==false then if Z.Value>=2 then I.Value=true wait(.3)Z.Value=1 wait(5)I.Value=false end end end)Z.OnServerEvent:Connect(function(z)local j=z.Character.Humanoid local I=j.Parent.Saude.Variaveis.Doer local Z=j.Parent.Saude.Stances.Sangrando local O=j.Parent.Saude.Variaveis.MLs local U=j.Parent.Saude.Stances.Caido local Y=j.Parent.Saude.Stances.Ferido local n=j.Parent.Saude.Kit.Bandagem if I.Value==false and U.Value==false then if n.Value>=1 and Z.Value==true then I.Value=true wait(.3)Z.Value=false n.Value=n.Value-1 wait(2)I.Value=false end end end)O.OnServerEvent:Connect(function(z)local j=z.Character.Humanoid local I=j.Parent.Saude.Variaveis.Doer local Z=j.Parent.Saude.Stances.Sangrando local O=j.Parent.Saude.Variaveis.MLs local U=j.Parent.Saude.Stances.Caido local Y=j.Parent.Saude.Stances.Ferido local n=j.Parent.Saude.Kit.Splint if I.Value==false and U.Value==false then if n.Value>=1 and Y.Value==true then I.Value=true wait(.3)Y.Value=false n.Value=n.Value-1 wait(2)I.Value=false end end end)U.OnServerEvent:Connect(function(z)local j=z.Character.Humanoid local I=j.Parent.Saude.Variaveis.Doer local Z=j.Parent.Saude.Stances.Sangrando local O=j.Parent.Saude.Variaveis.MLs local U=j.Parent.Saude.Variaveis.Dor local Y=j.Parent.Saude.Stances.Caido local n=j.Parent.Saude.Stances.Ferido local H=j.Parent.Saude.Kit.Aspirina if I.Value==false and Y.Value==false then if H.Value>=1 and U.Value>=1 then I.Value=true wait(.3)U.Value=U.Value-math.random(60,75)H.Value=H.Value-1 wait(2)I.Value=false end end end)Y.OnServerEvent:Connect(function(z)local j=z.Character.Humanoid local I=j.Parent.Saude.Variaveis.Doer local Z=j.Parent.Saude.Stances.Sangrando local O=j.Parent.Saude.Variaveis.MLs local U=j.Parent.Saude.Variaveis.Dor local Y=j.Parent.Saude.Stances.Caido local n=j.Parent.Saude.Stances.Ferido local H=j.Parent.Saude.Kit.Energetico if I.Value==false and Y.Value==false then if j.Health<j.MaxHealth then I.Value=true wait(.3)j.Health=j.Health+j.MaxHealth/3 H.Value=H.Value-1 wait(2)I.Value=false end end end)n.OnServerEvent:Connect(function(z)local j=z.Character.Humanoid local I=j.Parent.Saude.Variaveis.Doer local Z=j.Parent.Saude.Stances.Sangrando local O=j.Parent.Saude.Variaveis.MLs local U=j.Parent.Saude.Variaveis.Dor local Y=j.Parent.Saude.Stances.Caido local n=j.Parent.Saude.Stances.Ferido local H=j.Parent.Saude.Kit.Tourniquet if j.Parent.Saude.Stances.Tourniquet.Value==false then if I.Value==false and(Z.Value==true and H.Value>0)then I.Value=true wait(.3)j.Parent.Saude.Stances.Tourniquet.Value=true H.Value=H.Value-1 wait(2)I.Value=false end else if I.Value==false then I.Value=true wait(.3)j.Parent.Saude.Stances.Tourniquet.Value=false H.Value=H.Value+1 wait(2)I.Value=false end end end)
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------

local Functions = Evt.MedSys
local FunctionsMulti = Evt.MedSys.Multi

local Compress = Functions.Compress
local Bandage = Functions.Bandage
local Splint = Functions.Splint
local PainKiller = Functions.PainKiller
local Energetic = Functions.Energetic
local Tourniquet = Functions.Tourniquet

local Compress_Multi = FunctionsMulti.Compress
local Bandage_Multi = FunctionsMulti.Bandage
local Splint_Multi = FunctionsMulti.Splint
local Epinephrine_Multi = FunctionsMulti.Epinephrine
local Morphine_Multi = FunctionsMulti.Morphine
local BloodBag_Multi = FunctionsMulti.BloodBag
local Tourniquet_Multi = FunctionsMulti.Tourniquet

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

Compress.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

	if enabled.Value == false and Caido.Value == false then
		if MLs.Value >= 2 then
			enabled.Value = true

			wait(0.3)

			MLs.Value = 1

			wait(5)
			enabled.Value = false
		end
	end
end)

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 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(0.3)

			Sangrando.Value = false
			Bandagens.Value = Bandagens.Value - 1

			wait(2)
			enabled.Value = false
		end
	end
end)

Splint.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 Bandagens = Human.Parent.Saude.Kit.Splint

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

			wait(0.3)

			Ferido.Value = false

			Bandagens.Value = Bandagens.Value - 1

			wait(2)
			enabled.Value = false
		end
	end
end)

PainKiller.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 Dor = Human.Parent.Saude.Variaveis.Dor
	local Caido = Human.Parent.Saude.Stances.Caido
	local Ferido = Human.Parent.Saude.Stances.Ferido

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

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

			wait(0.3)

			Dor.Value = Dor.Value - math.random(60, 75)

			Bandagens.Value = Bandagens.Value - 1

			wait(2)
			enabled.Value = false
		end
	end
end)

Energetic.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 Dor = Human.Parent.Saude.Variaveis.Dor
	local Caido = Human.Parent.Saude.Stances.Caido
	local Ferido = Human.Parent.Saude.Stances.Ferido

	local Bandagens = Human.Parent.Saude.Kit.Energetico
	--local Energia = Human.Parent.Saude.Variaveis.Energia

	if enabled.Value == false and Caido.Value == false then
		if Human.Health < Human.MaxHealth then
			enabled.Value = true

			wait(0.3)

			Human.Health = Human.Health + (Human.MaxHealth / 3)
			--Energia.Value = Energia.Value + (Energia.MaxValue/3)
			Bandagens.Value = Bandagens.Value - 1

			wait(2)
			enabled.Value = false
		end
	end
end)

Tourniquet.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 Dor = Human.Parent.Saude.Variaveis.Dor
	local Caido = Human.Parent.Saude.Stances.Caido
	local Ferido = Human.Parent.Saude.Stances.Ferido

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

	if Human.Parent.Saude.Stances.Tourniquet.Value == false then
		if enabled.Value == false and Sangrando.Value == true and Bandagens.Value > 0 then
			enabled.Value = true

			wait(0.3)

			Human.Parent.Saude.Stances.Tourniquet.Value = true
			Bandagens.Value = Bandagens.Value - 1

			wait(2)
			enabled.Value = false
		end
	else
		if enabled.Value == false then
			enabled.Value = true

			wait(0.3)

			Human.Parent.Saude.Stances.Tourniquet.Value = false
			Bandagens.Value = Bandagens.Value + 1

			wait(2)
			enabled.Value = false
		end
	end
end)
