repeat wait(1) until game.Players:GetPlayers() >= 2
I have got an error message saying Attempt to compare number <= table?
1 Like
you do
repeat wait(1) until #game.Players:GetPlayers() >= 2
u need to add the #
1 Like
Simple mistakes are so annoying
1 Like
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
if #players:GetPlayers() >= 2 then
--Do code.
end
end)
1 Like