Hi everyone!
Today we are proud to introduce the brand-new Avatar Context Menu. Previously, users would have to find their friends in the long list of all players in-game to send friend requests, or manually type their username in the chat to initiate a private conversation. With the Avatar Context Menu, users can now walk up to another player, and send a friend request or begin a private chat with the press of a button. Developers may also leverage this feature for their own game, and allow players to initiate trades, battles, and more without having to manually implement an interaction system. In games where the developer has enabled the feature, clicking or tapping a character will open up the Avatar Context Menu. By default, the menu will have the following options:
Add Friend
Sends a friend request to the selected user
Chat
Opens a private conversation with the selected user in the in-game chat
Emotes
It currently initiates a wave animation to the user selected. The list of emotes will be expanded upon in the near future.
Developer Options
The Avatar Context Menu is an opt-in feature, as it might not be compatible with all games. Social games should be able to take full advantage of the Avatar Context Menu, but its control scheme may conflict with combat-based or any games that already have defined behavior for clicking or tapping another player. The AvatarContextMenu can be enabled with SetCore:
game:GetService("StarterGui"):SetCore("SetAvatarContextMenuEnabled", true)
Once enabled, developers may add game-specific actions to the menu as well. Check out the Developer Portal for detailed instructions on how to use the Avatar Context Menu. Let us know how you plan on using the Avatar Context Menu by using #RobloxDev and tweeting @RobloxDevRel !
Developer FAQ
Does Roblox have a tutorial or more information on how to use this new feature?
How is the Avatar Context Menu used on Xbox controllers?
- Game pad is not fully supported
How many developer items can be added to the Avatar Context Menu?
- As many as your heart desires!
Can developers customize the interface of the Avatar Context Menu?
- There is no customization option but you are able to include multiple options to the menu.
Does the ACM open when I click a player while I have a tool equipped?
- No worries, it doesn’t!
Enjoy!