Is AvatarContextMenu deprecated?

My apologies if this is in the wrong category, tell me if it is and I’ll move it/have it moved, or if it’s in the wrong category and you have ability to move it, please do so!

Using the following lines of code:

game:GetService("StarterGui"):SetCore("SetAvatarContextMenuEnabled", true)

local TestEvent = Instance.new("BindableEvent")
local args = {}
args[1] = "Test"
args[2] = TestEvent
game:GetService("StarterGui"):SetCore("AddAvatarContextMenuOption",args)
TestEvent.Event:connect(function()
workspace.Baseplate.Color = Color3.fromRGB(math.random(1,255), math.random(1,255), math.random(1,255))
end)

You use to be able to enable the AvatarContextMenu, I am now unable to do this. This is NOT working in-game, nor studio like it use to. Is this feature deprecated?

d, or am I doing something wrong? I’ve literally placed it everywhere applicable. Nothing popping up in Developer Console either.

Help would be appreciated.

Is this in a server script, or a local script?

This is a local script.

I had a look in the documentation, and I couldn’t find anything at all about it, however I did find this blog post about it Roblox Blog - All the latest news direct from Roblox employees..

However, the wiki page on the blog post is broken and redirects to the front page, which is annoying. The fact that it got removed does suggest desprication. But, there are still many famous, and recently updated, games which have this feature, like Natural Disaster Survival. It would be nice if roblox could bring back the documentation post about it.

But for the meantime, try removing any code to do with custom actions and seeing if the default gui comes up. Also, are you testing in a testing server or team test (or something else). It might be that.

I’m testing it in-game, not in studio. I had actually NOT checked wiki, so I just clicked on the link they provide and it seems as though it is deleted, though just found this…

Thanks for the help!

1 Like

Cool, I didn’t see that article.

Happy to help :grinning:

1 Like

It’s not deprecated and that code looks like it should work. What happens when you click the other player in your game, does the avatar context menu just not open? And there is no errors in the output? Does this also happen without the custom option?

1 Like

No custom options. No errors in output at all. I also thought this worked on yourself? I hadn’t tested it on other players.

This only works on other players, not on yourself. It is mostly meant to be used for social interactions with other players.

1 Like

Ah, okay! I was aware it was meant for social interactions, but It use to work on yourself… though that might’ve only been when it was first released.

Well, thank you! Ill test it asap.