Use cRoot:Get():GetServer():GetNumPlayers() instead of a custom function.