Customize the Topbar Menu

As a Roblox Developer, it is currently too hard to customize the “3 dots” menu.

image

If this issue is addressed, it would improve my development experience because I could add my own option to it like:

Use examples

Settings (which would open the settings frame)
Invite Friends
Credits (Game creators etc.)
Go to the main menu
Turn off music
Hide other players (for games like obbies)
Buy Premium (Prompt Premium Purchase to get more Premium players)
Help (Show the player a frame with information on how to play the game etc.)
Teleport to the… (For roleplay games)
Hide Guis (for games that allow hiding guis in-game)
and many more.

This would allow us to customize the menu and make it more easier for us to add simple settings like this. Currently, Roblox allows us to remove the default options, but not add them especially when there’s nothing important in this menu currently. This option could be similar to the Avatar Context Menu where you can remove the default actions and add your own.

image

Example script that adds an option to the menu:

 local StarterGui = game:GetService("StarterGui")
 local Players = game:GetService("Players")
 local player = Players.LocalPlayer
 local bindableEvent = Instance.new("BindableEvent")
 local function onCustomMenuAction()
 game.StarterGui.ScreenGui.Settings.Visible = true
 end
 bindableEvent.Event:Connect(onCustomMenuAction)
 local options = {"Settings", bindableEvent} 
 StarterGui:SetCore("AddActionMenuOption", options)

And when a player clicks the “Settings” button, a frame with the settings appears.

It would be nice to have the option to add our own icons.

image

This change would be nice to hide options that are not worth being on the screen the whole time and make the menu more usable.

Hope you have a nice day!

2 Likes