Game.Players:GetPlayers() Help

Hello! I’m not quite sure who this isn’t working. Getting error (shown below).

if game.Players:GetPlayers() > 2 then

error: attempt to ompare number < table

:GetPlayers() returns a table. Use the # operator to get the size of a table, like so:

#game.Players:GetPlayers()

1 Like

If you didnt know GetPlayers() returns a table, not a number you can do things like “>=” with

What are you trying to accomplish?