Type Index Pages
- BillboardGui
- Frame
- Hint
- ImageButton
- ImageLabel
- PlayerGui
- ScreenGui
- ScrollingFrame
- StarterGui
- SurfaceGui
- TextBox
- TextButton
- TextLabel
- UIAspectRatioConstraint
- UIGradient
- UIGridLayout
- UIListLayout
- UIPadding
- UIPageLayout
- UIScale
- UISizeConstraint
- UITableLayout
- UITextSizeConstraint
- VideoFrame
- ViewportFrame
- ChangeHistoryService
- CoreGui
- DataModelSession
- DockWidgetPluginGui
- MultipleDocumentInterfaceInstance
- Plugin
- PluginAction
- PluginGui
- PluginGuiService
- PluginManager
- PluginMenu
- PluginMouse
- PluginToolbar
- PluginToolbarButton
- QWidgetPluginGui
- Selection
- StandalonePluginScripts
- StatsItem
- StudioService
- StudioTheme
No results found!
-
Instance
- GameSettings
- DebugSettings
- BodyMover
- WeldConstraint
- HttpRbxApiService
- NotificationService
- Translator
- Lighting
- Beam
- GuiService
- UserInputService
- Studio
- Plugin
- HttpService
- Mouse
- BindableEvent
- RunService
- Pages
- Humanoid
- TestService
- PathfindingService
- Chat
- NetworkPeer
- Feature
- CharacterAppearance
- Constraint
- NetworkReplicator
- JointInstance
- Light
- BasePlayerGui
- AnalyticsService
- NetworkMarker
- BinaryStringValue
- FlyweightService
- Geometry
- LoginService
- InstancePacketCache
- ThirdPartyUserService
- TouchInputService
- RuntimeScriptService
- GuidRegistryService
- PartOperationAsset
- DialogChoice
- PhysicsService
- AdService
- TextService
- MarketplaceService
- TeleportService
- Accoutrement
- GamePassService
- AssetService
- InsertService
- PointsService
- ChangeHistoryService
- ServerScriptService
- JointsService
- LogService
- InputObject
- Toolbar
- LuaSettings
- RenderSettings
- AnimationTrack
- PhysicsSettings
- NetworkSettings
- CFrameValue
- Animation
- Color3Value
- BoolValue
- BrickColorValue
- Vector3Value
- AnimationController
- BindableFunction
- Button
- Trail
- LocalizationTable
- LocalizationService
- DebuggerBreakpoint
- DebuggerWatch
- ScriptDebugger
- Animator
- Attachment
- RemoteFunction
- RemoteEvent
- PluginManager
- Camera
- Stats
- Sky
- StarterPlayer
- Dragger
- TerrainRegion
- Path
- TextFilterResult
- Dialog
- StatsItem
- GoogleAnalyticsConfiguration
- ScriptContext
- ControllerService
- CacheableContentProvider
- ReflectionMetadataClasses
- ReflectionMetadataEnums
- DebuggerManager
- GuiBase
- UIBase
- LuaSourceContainer
- GuiItem
- DataModelMesh
- ServiceProvider
- ReflectionMetadataItem
- PostEffect
- PhysicsPacketCache
- TouchTransmitter
- RobloxReplicatedStorage
- Visit
- LuaWebService
- ScriptService
- FlagStandService
- VirtualUser
- SpawnerService
- TimerService
- CookiesService
- Team
- GroupService
- StarterGear
- Message
- PlayerScripts
- Configuration
- ContentProvider
- CollectionService
- Debris
- ReplicatedFirst
- ServerStorage
- ReplicatedStorage
- Folder
- TweenService
- Players
- ContextActionService
- StarterPlayerScripts
- SoundService
- KeyframeSequenceProvider
- VRService
- PluginGuiService
- Player
- Teams
- Pose
- Keyframe
- KeyframeSequence
- IntConstrainedValue
- DoubleConstrainedValue
- ForceField
- RayValue
- Fire
- Smoke
- Sparkles
- ParticleEmitter
- IntValue
- StringValue
- NumberValue
- Explosion
- ObjectValue
- SoundGroup
- UserGameSettings
- ClickDetector
- Sound
- Selection
- BadgeService
- TaskScheduler
- GlobalDataStore
- DataStoreService
- CustomEvent
- CustomEventReceiver
- VirtualInputManager
- FunctionalTest
- TweenBase
- SoundEffect
- ReflectionMetadataEvents
- ClusterPacketCache
- PVInstance
- FaceInstance
- Controller
- ReflectionMetadataCallbacks
- ReflectionMetadataFunctions
- ReflectionMetadataYieldFunctions
- ReflectionMetadataProperties
- ReflectionMetadata
- AdvancedDragger
- HapticService
- FriendService
- GamepadService
No Result Found !!!
Title
This item is not replicated across Roblox’s server/client boundary.
This property determines the text to be displayed when a PluginMenu
is used as a sub menu. It defaults to an empty string ””
.
See also
articles/Intro to Plugins
, an introductory article to plugin use and developmentPluginAction
, an object that represents a generic performable action in Roblox Studio, with no directly associatedToolbar
orButton
.Plugin/CreatePluginAction
, creates a PluginActionPluginMenu/Icon
, the icon to be displayed when used as a sub menuPluginMenu/AddAction
, adds the given action to the menuPluginMenu/AddNewAction
, creates a temporary action that is hidden from Studio’s customize shortcuts windowPluginMenu/AddMenu
, adds the given menu as a separatorPluginMenu/AddSeparator
, adds a separator between items in the menuPluginMenu/Clear
, clears the menuPluginMenu/ShowAsync
, shows the menu at the mouse cursor. Yields until either an item is selected or the menu is closed. The selected action fires its Triggered event
Code Samples
Creating a PluginMenu and PluginMenuAction
This code sample visualizes how PluginMenu|PluginMenus
and 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.
-- This code can be pasted into the command bar, but only once. local plugin = plugin or getfenv().PluginManager():CreatePlugin() plugin.Name = "Plugin" plugin.Parent = workspace local pluginMenu = plugin:CreatePluginMenu(math.random(), "Test Menu") pluginMenu.Name = "Test Menu" pluginMenu:AddNewAction("ActionA", "A", "rbxasset://textures/loading/robloxTiltRed.png") pluginMenu:AddNewAction("ActionB", "B", "rbxasset://textures/loading/robloxTilt.png") local subMenu = plugin:CreatePluginMenu(math.random(), "C", "rbxasset://textures/explosion.png") subMenu.Name = "Sub Menu" subMenu:AddNewAction("ActionD", "D", "rbxasset://textures/whiteCircle.png") subMenu:AddNewAction("ActionE", "E", "rbxasset://textures/icon_ROBUX.png") pluginMenu:AddMenu(subMenu) pluginMenu:AddSeparator() pluginMenu:AddNewAction("ActionF", "F", "rbxasset://textures/sparkle.png") local toggle = Instance.new("BoolValue") toggle.Name = "TogglePluginMenu" toggle.Parent = workspace local function onToggled() if toggle.Value then toggle.Value = false local selectedAction = pluginMenu:ShowAsync() if selectedAction then print("Selected Action:", selectedAction.Text, "with ActionId:", selectedAction.ActionId) else print("User did not select an action!") end end end toggle.Changed:Connect(onToggled)
How this site use cookies
This Platform uses cookies to offer you a better experience, to personalize content, to provide social media features and to analyse the traffic on our site. For further information, including information on how to prevent or manage the use of cookies on this Platform, please refer to our Privacy and Cookie Policy.