Collapse.OnServerEvent:Connect(function(P)local G=P.Character.Humanoid local w=G.Parent.Saude.Variaveis.Dor local U=G.Parent.Saude.Variaveis.Sangue local z=G.Parent.Saude.Stances.Caido local i=G.Parent.Saude.Stances.rodeath if U.Value<=1250 or w.Value>=600 or z.Value==true or i.Value==true then z.Value=true G.PlatformStand=true G.AutoRotate=false elseif z.Value==false then G.PlatformStand=false G.AutoRotate=true end end)rodeath.OnServerEvent:Connect(function(P)local G=P.Character.Humanoid local w=G.Parent.Saude.Variaveis.Dor local U=G.Parent.Saude.Variaveis.Sangue local z=G.Parent.Saude.Stances.Caido local i=G.Parent.Saude.Stances.rodeath local A=G.Parent.Saude.Stances.Sangrando local I=G.Parent.Saude.Stances.bbleeding local Q=G.Parent.Saude.Stances.cpr local d=G.Parent.Saude.Stances.dead local u=G.Parent.Saude.Stances.life local Y=G.Parent.Saude.Stances.Sangrando if i.Value==true then u.Value=false z.Value=true if U.Value<=0 then d.Value=true wait(1)G.PlatformStand=false G.AutoRotate=true G.Health=0 else wait(90)if G.Health<=1 then d.Value=true U.Value=0 wait(1)G.PlatformStand=false G.AutoRotate=true G.Health=0 end end end end)Reset.OnServerEvent:Connect(function(P)local G=P.Character.Humanoid local w=G.Parent.Saude.Variaveis.PlayerSelecionado w.Value="\078\047\065"end)


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)

