I've encounter a problem where this simple player counter prints 0 instead of 1 when there is one person that is currently in the game.
local players = game.Players
local playercount = #(players:GetPlayers())
print (playercount)
Am I doing something wrong in this script?
Any help is greatly appreciated

2 comments
did u test it in Play Solo? maybe the script ran before the player was actually added
Use PlayerAdded and a for loop to continuously run through players then “print” or whatever function you want, the value of the return