Evt.Ombro.OnServerEvent:Connect(function(S,z)local m for r,Y in pairs(game.Players:GetChildren())do if Y:IsA("\080\108\097\121\101\114")and(Y~=S and Y.Name==z)then if Y.Team==S.Team then m=S.Name else m="\083\111\109\101\111\110\101"end Evt.Ombro:FireClient(Y,m)end end end)Evt.Target.OnServerEvent:Connect(function(S,z)S.Character.Saude.Variaveis.PlayerSelecionado.Value=z end)Evt.Render.OnServerEvent:Connect(function(S,z,m)if m=="\078\047\065"then S.Character.Saude.Stances.Rendido.Value=z else local S=game.Players:FindFirstChild(m)if S.Character.Saude.Stances.Algemado.Value==false then S.Character.Saude.Stances.Rendido.Value=z S.Character.Saude.Variaveis.HitCount.Value=0 end end end)Evt.Drag.OnServerEvent:Connect(function(S)local z=S.Character.Humanoid local m=z.Parent.Saude.Variaveis.Doer local r=z.Parent.Saude.Variaveis.MLs local Y=z.Parent.Saude.Stances.Caido local O=z.Parent.Saude.Kit.Epinefrina local G=z.Parent.Saude.Variaveis.PlayerSelecionado if Y.Value==false and G.Value~="\078\047\065"then local S=game.Players:FindFirstChild(G.Value)local r=S.Character.Humanoid local Y=r.Parent.Saude.Stances.Sangrando local O=r.Parent.Saude.Variaveis.MLs local I=r.Parent.Saude.Variaveis.Dor local R=r.Parent.Saude.Stances.Ferido local B=r.Parent.Saude.Stances.Caido local k=r.Parent.Saude.Variaveis.Sangue if m.Value==false then if B.Value==true or B.Parent.Algemado.Value==true then m.Value=true;(coroutine.wrap(function()while G.Value~="\078\047\065"and(B.Value==true and(r.Health>0 and(z.Health>0 and z.Parent.Saude.Stances.Caido.Value==false)))or G.Value~="\078\047\065"and B.Parent.Algemado.Value==true do wait()pcall(function()S.Character.Torso.Anchored,S.Character.Torso.CFrame=true,(z.Parent.Torso.CFrame*CFrame.new(0,.75,1.5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))m.Value=true end)end pcall(function()S.Character.Torso.Anchored=false m.Value=false end)end))()m.Value=false end end end end)Evt.Squad.OnServerEvent:Connect(function(S,z,m)S.Character.Saude.FireTeam.SquadName.Value=z S.Character.Saude.FireTeam.SquadColor.Value=m end)Evt.Afogar.OnServerEvent:Connect(function(S)S.Character.Humanoid.Health=0 end)
-------------------------------------------------------------------
-----------------------[MEDSYSTEM]---------------------------------
-------------------------------------------------------------------

Evt.Ombro.OnServerEvent:Connect(function(Player, Vitima)
	local Nombre
	for SKP_001, SKP_002 in pairs(game.Players:GetChildren()) do
		if SKP_002:IsA("Player") and SKP_002 ~= Player and SKP_002.Name == Vitima then
			if SKP_002.Team == Player.Team then
				Nombre = Player.Name
			else
				Nombre = "Someone"
			end
			Evt.Ombro:FireClient(SKP_002, Nombre)
		end
	end
end)

Evt.Target.OnServerEvent:Connect(function(Player, Vitima)
	Player.Character.Saude.Variaveis.PlayerSelecionado.Value = Vitima
end)

Evt.Render.OnServerEvent:Connect(function(Player, Status, Vitima)
	if Vitima == "N/A" then
		Player.Character.Saude.Stances.Rendido.Value = Status
	else
		local VitimaTop = game.Players:FindFirstChild(Vitima)
		if VitimaTop.Character.Saude.Stances.Algemado.Value == false then
			VitimaTop.Character.Saude.Stances.Rendido.Value = Status
			VitimaTop.Character.Saude.Variaveis.HitCount.Value = 0
		end
	end
end)

Evt.Drag.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
	local Item = Human.Parent.Saude.Kit.Epinefrina

	local target = Human.Parent.Saude.Variaveis.PlayerSelecionado

	if Caido.Value == false and target.Value ~= "N/A" then
		local player2 = game.Players:FindFirstChild(target.Value)
		local PlHuman = player2.Character.Humanoid

		local Sangrando = PlHuman.Parent.Saude.Stances.Sangrando
		local MLs = PlHuman.Parent.Saude.Variaveis.MLs
		local Dor = PlHuman.Parent.Saude.Variaveis.Dor
		local Ferido = PlHuman.Parent.Saude.Stances.Ferido
		local PlCaido = PlHuman.Parent.Saude.Stances.Caido
		local Sang = PlHuman.Parent.Saude.Variaveis.Sangue

		if enabled.Value == false then
			if PlCaido.Value == true or PlCaido.Parent.Algemado.Value == true then
				enabled.Value = true

				coroutine.wrap(function()
					while
						target.Value ~= "N/A"
							and PlCaido.Value == true
							and PlHuman.Health > 0
							and Human.Health > 0
							and Human.Parent.Saude.Stances.Caido.Value == false
						or target.Value ~= "N/A" and PlCaido.Parent.Algemado.Value == true
					do
						wait()
						pcall(function()
							player2.Character.Torso.Anchored, player2.Character.Torso.CFrame =
								true,
								Human.Parent.Torso.CFrame * CFrame.new(0, 0.75, 1.5) * CFrame.Angles(
									math.rad(0),
									math.rad(0),
									math.rad(90)
								)
							enabled.Value = true
						end)
					end
					pcall(function()
						player2.Character.Torso.Anchored = false
						enabled.Value = false
					end)
				end)()

				enabled.Value = false
			end
		end
	end
end)

Evt.Squad.OnServerEvent:Connect(function(Player, SquadName, SquadColor)
	Player.Character.Saude.FireTeam.SquadName.Value = SquadName
	Player.Character.Saude.FireTeam.SquadColor.Value = SquadColor
end)

Evt.Afogar.OnServerEvent:Connect(function(Player)
	Player.Character.Humanoid.Health = 0
end)
