--// Functions

function UpdateTag(plr)
	if plr ~= L_1_ and plr.Character and plr.Character:FindFirstChild("TeamTagUI") then
		local Tag = plr.Character:FindFirstChild("TeamTagUI")
		if plr.Team == L_1_.Team then
			Tag.Enabled = true
			if plr.Character:FindFirstChild("ACS_Client") and plr.Character.ACS_Client:FindFirstChild("FireTeam") and plr.Character.ACS_Client.FireTeam.SquadName.Value ~= "" then
				Tag.Frame.Icon.ImageColor3 = plr.Character.ACS_Client.FireTeam.SquadColor.Value
			else
				Tag.Frame.Icon.ImageColor3 = Color3.fromRGB(255,255,255)
			end
		else
			Tag.Enabled = false
		end
	end
end
