I would have code here but I honestly have no idea how I'd even start this stuff. I checked ROBLOX's WebAPI and still found nothing, if you have any way to help me out, please do so!
i don't really got what you asked but i think this might help.
game.Players.PlayerAdded:connect(function() print("There are Player in the game!") end)