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


Collapse.OnServerEvent:Connect(function(player)
	

	local Human = player.Character.Humanoid
	local Dor = Human.Parent.Saude.Variaveis.Dor
	local Sangue = Human.Parent.Saude.Variaveis.Sangue
	local IsWounded = Human.Parent.Saude.Stances.Caido
	local IsDead = Human.Parent.Saude.Stances.rodeath


	if Sangue.Value <= 1250 or Dor.Value >= 600 or IsWounded.Value == true or IsDead.Value == true then -- Man this Guy's Really wounded,
		IsWounded.Value = true
		Human.PlatformStand = true
		Human.AutoRotate = false		
	elseif IsWounded.Value == false then -- YAY A MEDIC ARRIVED! =D
		Human.PlatformStand = false
		Human.AutoRotate = true
		
	end
end)




rodeath.OnServerEvent:Connect(function(player)

	local Human = player.Character.Humanoid
	local Dor = Human.Parent.Saude.Variaveis.Dor
	local Sangue = Human.Parent.Saude.Variaveis.Sangue
	
	local IsWounded = Human.Parent.Saude.Stances.Caido
	local IsDead = Human.Parent.Saude.Stances.rodeath
	local bleeding = Human.Parent.Saude.Stances.Sangrando
	local bbleeding = Human.Parent.Saude.Stances.bbleeding
	local cpr = Human.Parent.Saude.Stances.cpr
	local dead = Human.Parent.Saude.Stances.dead
	local life = Human.Parent.Saude.Stances.life
	local Sangrando = Human.Parent.Saude.Stances.Sangrando
	--local Teams = game:GetService("Teams")
	--local civilian = Teams.Civilian
	
	if IsDead.Value == true then
		life.Value = false
		IsWounded.Value = true
		--Sangrando.Value = true
		if Sangue.Value <= 0 then
			dead.Value = true	
			wait(1)
			Human.PlatformStand = false
			Human.AutoRotate = true	
			
			--player.Team = civilian
			Human.Health = 0
		else

		wait(90)
		
		
	
		if Human.Health <= 1 then
				
			
			dead.Value = true
			Sangue.Value = 0	
				
			wait(1)
			Human.PlatformStand = false
			Human.AutoRotate = true	
			
			--player.Team = civilian
			Human.Health = 0
		
	
		end
		end
		end

end)


Reset.OnServerEvent:Connect(function(player)

local Human = player.Character.Humanoid
local target = Human.Parent.Saude.Variaveis.PlayerSelecionado

target.Value = "N/A"
end)

