How do you detect when a player opens the Roblox menu to leave the game?

I saw that in other games, that when a player clicks the Roblox menu in order to leave a game, that it’ll just show a simple ui notification that they still have rewards to claim. Obviously, this wouldn’t disrupt the official process of leaving the game, but it would show in the background, just in order to keep a players’ retention for a few more seconds so they can claim their rewards.

All I’m trying to do is to fire a remote event from there, which is easy to do. Otherwise, does Roblox have a way to check for this? (And also to check for when the player closes the menu to resume playing)

2 Likes

I do not know anything about scripting but after I searched it, this post might help you knowing how to do so.

And goodluck on your game.

3 Likes

Thanks younes! That’ll help a lot.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.