local function A(A,U)local l=A.Character local d=l:WaitForChild("\072\117\109\097\110\111\105\100")local Y=d:WaitForChild("\065\114\109\111\114")local K=d:WaitForChild("\068\111\119\110")local h=script.SquadFrame:Clone()h.NameLabel.Text=A.Name h.NameLabel.TextColor3=U h.Parent=SQUAD_GUI local function H()h.Bars.Health.Size=UDim2.new(d.Health/d.MaxHealth,0,.6,-1)h.Bars.Armor.Size=UDim2.new(Y.Value/150,0,.4,-1)h.Bars.Health.BackgroundColor3=K.Value and DOWN_COLOR or HEALTH_COLOR h.DownLabel.Visible=K.Value end d.HealthChanged:connect(H)Y.Changed:connect(H)K.Changed:connect(function()if K.Value then script.DownSound:Play()end H()end)H()end script.TrackPlayer.Event:connect(A)


local function TrackPlayer(player, color)
	local character	= player.Character
	local humanoid	= character:WaitForChild("Humanoid")
	local armor		= humanoid:WaitForChild("Armor")
	local down		= humanoid:WaitForChild("Down")
	
	local frame		= script.SquadFrame:Clone()
		frame.NameLabel.Text		= player.Name
		frame.NameLabel.TextColor3	= color
		frame.Parent				= SQUAD_GUI
	
	local function Update()
		frame.Bars.Health.Size	= UDim2.new(humanoid.Health / humanoid.MaxHealth, 0, 0.6, -1)
		frame.Bars.Armor.Size	= UDim2.new(armor.Value / 150, 0, 0.4, -1)
		
		frame.Bars.Health.BackgroundColor3	= down.Value and DOWN_COLOR or HEALTH_COLOR
		frame.DownLabel.Visible	= down.Value
	end
	
	humanoid.HealthChanged:connect(Update)
	armor.Changed:connect(Update)
	down.Changed:connect(function()
		if down.Value then
			script.DownSound:Play()
		end
		
		Update()
	end)
	
	Update()
end

script.TrackPlayer.Event:connect(TrackPlayer)
