Creating an auto join script that puts you on the team with a player disadvantage. but when i add ~= TTT then, i get this error. No one is ever to be on the TTT team as its a placeholder so i need to remove it form being considered. how can I fix this?

for i,v in pairs(game:GetService("Teams"):GetTeams()) do 
    if #v < math.huge and v.Name ~= "TTT" then
        if v.Name == "Terrorists" then 
            Print("Terrorist Join!")
        elseif v.Name == "Counter-Terrorists" then 
            Print("CT join!")
        end
    end
end

1 comment

0

#v < math.huge what are you trying to say here?