How do I check the amount of Players with :GetPlayers()

Essentially, instead of using :ChildAdded() or whatever; I want to just use :GetPlayers() in order to find the player count. The only reason for me wanting to do so is because I’d rather use :GetPlayers() as it’s something I’m more comfortable with.

That being said, I am also making this in the case that someone else like me asks the same question and wants to find out quickly.

Any help would be appreciated!

1 Like

local numOfPlayers = #game:GetService('Players'):GetPlayers()

2 Likes