How can I get a Roblox player’s online status?

Hello, I am trying to get a player’s online status and have a little status bubble change color in the UI based on it so players can tell what happened to their friends, the players in the reserved server with them, and the players on their whitelist.

My issue is that I can not find a way to get the status, I have tried legacy API endpoints, proxies, remote functions and events, server-sided and client sided and nothing successfully returns the players online status in any combination or form. I have tried searching the forms but they are either old and outdated or have no solution. I’d be fine with getting the status in any form whether it be long strings or int-values.

tldr: Is it possible to get players’ online status, if so how?

Given that no other methods work, you could create a datastore that sets the key player.UserId with the value of true in the playerAdded event, and set it to false in the playerRemoving event. To query whether a player is playing your experience, use GetAsync

1 Like

Check this out

2 Likes

I did attempt to use the presence API but it seems to have been deleted as it now returns 404 instead of it’s Rest API documentation. It is perfect for what I need, but it seems to have been legacy or moved.

If this is friends related (you want to see your friends online statuses) you can use the response of Player:GetFriendsOnline() where Player is the player that wants to check their friends online status(so usually the local player).

Additionally if you can manage the experience that you want to check a user id against, you can track them yourself through server code. However if you choose that path you should also provide your player base with settings to disable player tracking. For example if an influencer joins your game, they may not want to be bombarded by players chasing them around.

1 Like