This is a yielding function. When called, it will pause the Lua thread that called the function until a result is ready to be returned, without interrupting other scripts.
This member cannot be used in scripts, but is usable in the command bar and plugins.
This function shows the menu at the mouse cursor. It yields until either an item is selected or the menu is closed. The selected action fires its
articles/Intro to Plugins, an introductory article to plugin use and development
PluginAction, an object that represents a generic performable action in Roblox Studio, with no directly associated
Plugin/CreatePluginAction, creates a PluginAction
PluginMenu/Title, the text to be displayed when used as a sub menu
PluginMenu/Icon, the icon to be displayed when used as a sub menu
PluginMenu/AddAction, adds the given action to the menu
PluginMenu/AddNewAction, creates a temporary action that is hidden from Studio’s customize shortcuts window
PluginMenu/AddMenu, adds the given menu as a separator
PluginMenu/AddSeparator, adds a separator between items in the menu
PluginMenu/Clear, clears the menu
Creating a PluginMenu and PluginMenuAction
This code sample visualizes how
PluginAction|PluginActions behave when created for a
Plugin. Outside of this example, you should not parent the plugin or its functional components to the game’s workspace.
In order to work as expected, the code block must but pasted into the command bar, but only once. Consecutive attempts at executing the code in the command bar will result in an error because a plugin cannot create more than one PluginMenu with the same id.
After executing the code, changing the created
BoolValue in the game’s workspace via the Explorer window opens the plugin’s menus. Selecting an action from the menus the function connected to the trigger signal.