how do i make a team limit script my code is
local playersOnTeam = game:GetService(“Teams”)[“Criminals”]:GetPlayers()
local numberPlayersOnTeam = #playersOnTeam
game.Players.PlayerAdded:Connect(function()
if numberPlayersOnTeam == 1 then
print(“hello”)
end
end)
2 Likes
You should do <= instead of ==
because you want to check if its more than 1.
4 Likes
I see I will try that I hope it works
Partly worked thanks for the help