How to get online players

Hello, im here to ask if there is any way to get online players across all servers from game in games universe?

((Not asking for script, just how to do it))

Are you asking how to get the number of players?

1 Like

Yeah (Bad 30 chars limit ahhh)

Can’t you use messaging service to loop through each server and return amount of players?

U can use Cross Server communication
(MessagingService) here Cross-Server Messaging | Documentation - Roblox Creator Hub
MessagingService | Documentation - Roblox Creator Hub
all server will recive a “request” and will return number of player in the server

My idea is surely extremely advanced and it surely exists simpler but it would work as much

Its not same game its just in same universe, i need player count in main game

Main menu
— Main game

in all server or just the server ?

All, isnt there way to use some API?

Try this https://games.roblox.com/docs
All api is here https://api.roblox.com/docs or https://api.roblox.com/docs?useConsolidatedPage=true

Okay, i found something now: how to get universe id?

You can find the universe ID via game.GameId

However, if you use the links suggested you will have to use a proxy site as roblox doesn’t allow http requests to themselves.

The easiest method is using messaging service, where every server sends out their player count, and then every server adds up all the responses.
This should only be sent every minute or so to prevent throttling

1 Like