Splint.OnServerEvent:Connect(function(i)local k=i.Character.Humanoid local Q=k.Parent.Saude.Variaveis.Doer local y=k.Parent.Saude.Stances.Sangrando local T=k.Parent.Saude.Variaveis.MLs local Y=k.Parent.Saude.Stances.Caido local C=k.Parent.Saude.Stances.Ferido local A=k.Parent.Saude.Kit.Splint if Q.Value==false and Y.Value==false then if A.Value>=1 and C.Value==true then Q.Value=true wait(.3)C.Value=false A.Value=A.Value-1 wait(2)Q.Value=false end end end)PainKiller.OnServerEvent:Connect(function(i)local k=i.Character.Humanoid local Q=k.Parent.Saude.Variaveis.Doer local y=k.Parent.Saude.Stances.Sangrando local T=k.Parent.Saude.Variaveis.MLs local Y=k.Parent.Saude.Variaveis.Dor local C=k.Parent.Saude.Stances.Caido local A=k.Parent.Saude.Stances.Ferido local j=k.Parent.Saude.Kit.Aspirina if Q.Value==false and C.Value==false then if j.Value>=1 and Y.Value>=1 then Q.Value=true wait(.3)Y.Value=Y.Value-math.random(60,75)j.Value=j.Value-1 wait(2)Q.Value=false end end end)Energetic.OnServerEvent:Connect(function(i)local k=i.Character.Humanoid local Q=k.Parent.Saude.Variaveis.Doer local y=k.Parent.Saude.Stances.Sangrando local T=k.Parent.Saude.Variaveis.MLs local Y=k.Parent.Saude.Variaveis.Dor local C=k.Parent.Saude.Stances.Caido local A=k.Parent.Saude.Stances.Ferido local j=k.Parent.Saude.Kit.Energetico if Q.Value==false and(C.Value==false and j.Value>=1)then if k.Health<k.MaxHealth then Q.Value=true wait(.3)k.Health=k.Health+k.MaxHealth/3 j.Value=j.Value-1 wait(2)Q.Value=false end end end)Tourniquet.OnServerEvent:Connect(function(i)local k=i.Character.Humanoid local Q=k.Parent.Saude.Variaveis.Doer local y=k.Parent.Saude.Stances.Sangrando local T=k.Parent.Saude.Variaveis.MLs local Y=k.Parent.Saude.Variaveis.Dor local C=k.Parent.Saude.Stances.Caido local A=k.Parent.Saude.Stances.Ferido local j=k.Parent.Saude.Kit.Tourniquet if k.Parent.Saude.Stances.Tourniquet.Value==false then if Q.Value==false and j.Value>0 then Q.Value=true wait(.3)k.Parent.Saude.Stances.Tourniquet.Value=true j.Value=j.Value-1 wait(2)Q.Value=false end else if Q.Value==false then Q.Value=true wait(.3)k.Parent.Saude.Stances.Tourniquet.Value=false j.Value=j.Value+1 wait(2)Q.Value=false end end end)
--[[
defib.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 o2l = Human.Parent.Saude.Stances.o2
	local isdead = Human.Parent.Saude.Stances.rodeath

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

	if enabled.Value == false then
	
		if Bandagens.Value >= 1 and o2l.Value == true and isdead.Value == true then 
		enabled.Value = true

		wait(4)		
		
			isdead.Value = false
			Caido.Value = false
			
			Human.Health = Human.Health + 100
		
		
		wait(1)
		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 and Bandagens.Value >= 1 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 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)
