What is this feature?

I’ve been trying to figure out how to implement this in my game but I can’t seem to know what exactly it is.

The image above shows some sort of Roblox CoreGui in which you can browse through different players such as viewing their avatar, sending a friend request, etc. I’ve heard it was a Roblox API feature but they didn’t mention what it was. Can someone tell me what it is and how to enable/implement it?

1 Like

It’s called Avatar Context Menu | Documentation - Roblox Creator Hub.

To enable it first you need to call

local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("AvatarContextMenuEnabled", true)

To open it progamatically:

local StarterGui = game:GetService("StarterGui")
local player = game.Players.LocalPlayer -- You can replace it with any other player in the server
StarterGui:SetCore("AvatarContextMenuTarget", player) 
3 Likes

Thank you! Been looking for it everywhere!

1 Like