Plugin
Memory category | Instances |
---|
Member index 53
Removed member index 7
History | Member | |
---|---|---|
408 | MDIInstance: MDIInstance | |
408 | Bind(key: string, callback: Function): Instance | |
408 | BindAndFire(key: string, callback: Function): Instance | |
326 | CreatePluginGui(pluginGuiName: string, restoreEnabledState: bool, initialEnabledState: bool): Instance | |
408 | Fire(key: string, value: string = ): void | |
408 | HasItem(key: string): bool | |
408 | RemoveItem(key: string): bool |
Description
Plugin is the main object responsible for creating basic Studio widgets, plugin toolbars, plugin buttons, and more. It is a custom add-on to Studio which adds new behavior and features that are not normally included. The Plugin object can be accessed through the plugin global reference in a Script that is executed as a plugin.
History 259
- 651 Change ReturnType of GetPluginComponent from Dictionary to Variant
- 648 Change ReturnType of ProcessAssetInsertionDrag from Objects to Instances
- 648 Change Parameters of ProcessAssetInsertionDrag from (assetId: string, assetTypeId: int, instances: Objects) to (assetId: string, assetTypeId: int, instances: Instances)
- 648 Change Parameters of Union from (objects: Objects) to (objects: Instances)
- 648 Change ReturnType of Separate from Objects to Instances
- 648 Change Parameters of Separate from (objects: Objects) to (objects: Instances)
- 648 Change ReturnType of Negate from Objects to Instances
- 648 Change Parameters of Negate from (objects: Objects) to (objects: Instances)
- 648 Change Parameters of Intersect from (objects: Objects) to (objects: Instances)
- 646 Add DisableUIDragDetectorDrags
- 623 Add GetUri
- 619 Add GetPluginComponent
- 573 Change ReturnType of ProcessAssetInsertionDrop from void to null
- 573 Change ReturnType of StopAllSounds from void to null
- 573 Change ReturnType of StartDrag from void to null
- 573 Change ReturnType of StartDecalDrag from void to null
- 573 Change ReturnType of SetSetting from void to null
- 573 Change ReturnType of SetReady from void to null
- 573 Change ReturnType of SetItem from void to null
- 573 Change ReturnType of SelectRibbonTool from void to null
- 573 Change ReturnType of SaveSelectedToRoblox from void to null
- 573 Change ReturnType of ResumeSound from void to null
- 573 Change ReturnType of PlaySound from void to null
- 573 Change ReturnType of PauseSound from void to null
- 573 Change ReturnType of OpenWikiPage from void to null
- 573 Change ReturnType of OpenScript from void to null
- 573 Change ReturnType of Invoke from void to null
- 573 Change ReturnType of Deactivate from void to null
- 573 Change ReturnType of Activate from void to null
- 568 Add Intersect
- 553 Change Default of from to
- 553 Change Default of from to
- 553 Change Default of from to
- 553 Change Default of from to
- 553 Change Default of GridSize from to
- 553 Change Default of CollisionEnabled from to
- 532 Add ProcessAssetInsertionDrop
- 532 Add ProcessAssetInsertionDrag
- 493 Add Ready
- 493 Add SetReady
- 492 Change Parameters of OpenScript from (script: Instance, lineNumber: int = 1) to (script: LuaSourceContainer, lineNumber: int = 1)
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of from ReadOnly to ReadSafe
- 486 Change ThreadSafety of GridSize from ReadOnly to ReadSafe
- 486 Change ThreadSafety of CollisionEnabled from ReadOnly to ReadSafe
- 483 Change ReturnType of GetMouse from Instance to PluginMouse
- 483 Change ReturnType of CreateToolbar from Instance to PluginToolbar
- 483 Change ReturnType of CreateQWidgetPluginGui from Instance to QWidgetPluginGui
- 483 Change ReturnType of CreatePluginMenu from Instance to PluginMenu
- 483 Change ReturnType of CreatePluginAction from Instance to PluginAction
- 483 Change ReturnType of CreateDockWidgetPluginGui from Instance to DockWidgetPluginGui
- 469 Change Tags of from [NotReplicated] to [Hidden, NotReplicated]
- 469 Change CanLoad of from true to false
- 469 Change Tags of from [ReadOnly, NotReplicated] to [Hidden, ReadOnly, NotReplicated]
- 469 Change Tags of from [ReadOnly, NotReplicated] to [Hidden, ReadOnly, NotReplicated]
- 469 Change Tags of from [ReadOnly, NotReplicated] to [Hidden, ReadOnly, NotReplicated]
- 462 Change ThreadSafety of Unloading from to Unsafe
- 462 Change ThreadSafety of Deactivation from to Unsafe
- 462 Change ThreadSafety of Union from to Unsafe
- 462 Change ThreadSafety of StopAllSounds from to Unsafe
- 462 Change ThreadSafety of StartDrag from to Unsafe
- 462 Change ThreadSafety of StartDecalDrag from to Unsafe
- 462 Change ThreadSafety of SetSetting from to Unsafe
- 462 Change ThreadSafety of SetItem from to Unsafe
- 462 Change ThreadSafety of Separate from to Unsafe
- 462 Change ThreadSafety of SelectRibbonTool from to Unsafe
- 462 Change ThreadSafety of SaveSelectedToRoblox from to Unsafe
- 462 Change ThreadSafety of ResumeSound from to Unsafe
- 462 Change ThreadSafety of PromptSaveSelection from to Unsafe
- 462 Change ThreadSafety of PromptForExistingAssetId from to Unsafe
- 462 Change ThreadSafety of PlaySound from to Unsafe
- 462 Change ThreadSafety of PauseSound from to Unsafe
- 462 Change ThreadSafety of OpenWikiPage from to Unsafe
- 462 Change ThreadSafety of OpenScript from to Unsafe
- 462 Change ThreadSafety of OnSetItem from to Unsafe
- 462 Change ThreadSafety of OnInvoke from to Unsafe
- 462 Change ThreadSafety of Negate from to Unsafe
- 462 Change ThreadSafety of IsActivatedWithExclusiveMouse from to Unsafe
- 462 Change ThreadSafety of IsActivated from to Unsafe
- 462 Change ThreadSafety of Invoke from to Unsafe
- 462 Change ThreadSafety of ImportFbxRig from to Unsafe
- 462 Change ThreadSafety of ImportFbxAnimation from to Unsafe
- 462 Change ThreadSafety of GetStudioUserId from to Unsafe
- 462 Change ThreadSafety of GetSetting from to Unsafe
- 462 Change ThreadSafety of GetSelectedRibbonTool from to Unsafe
- 462 Change ThreadSafety of GetMouse from to Unsafe
- 462 Change ThreadSafety of GetJoinMode from to Unsafe
- 462 Change ThreadSafety of GetItem from to Unsafe
- 462 Change ThreadSafety of Deactivate from to Unsafe
- 462 Change ThreadSafety of CreateToolbar from to Unsafe
- 462 Change ThreadSafety of CreateQWidgetPluginGui from to Unsafe
- 462 Change ThreadSafety of CreatePluginMenu from to Unsafe
- 462 Change ThreadSafety of CreatePluginAction from to Unsafe
- 462 Change ThreadSafety of CreateDockWidgetPluginGui from to Unsafe
- 462 Change ThreadSafety of Activate from to Unsafe
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of from to ReadOnly
- 462 Change ThreadSafety of GridSize from to ReadOnly
- 462 Change ThreadSafety of CollisionEnabled from to ReadOnly
- 460 Change Parameters of ResumeSound from (soundChannel: Instance) to (sound: Instance)
- 460 Change Parameters of PlaySound from (soundChannel: Instance, normalizedTimePosition: double = 0) to (sound: Instance, normalizedTimePosition: double = 0)
- 460 Change Parameters of PauseSound from (soundChannel: Instance) to (sound: Instance)
- 449 Change Parameters of PlaySound from (soundChannel: Instance) to (soundChannel: Instance, normalizedTimePosition: double = 0)
- 433 Change Security of SetItem from PluginSecurity to RobloxScriptSecurity
- 433 Change Security of OnSetItem from PluginSecurity to RobloxScriptSecurity
- 433 Change Security of OnInvoke from PluginSecurity to RobloxScriptSecurity
- 433 Change Security of Invoke from PluginSecurity to RobloxScriptSecurity
- 433 Change Security of GetItem from PluginSecurity to RobloxScriptSecurity
- 433 Change ReadSecurity of from PluginSecurity to RobloxScriptSecurity
- 433 Change WriteSecurity of from PluginSecurity to RobloxScriptSecurity
- 433 Change ReadSecurity of from PluginSecurity to RobloxScriptSecurity
- 433 Change WriteSecurity of from PluginSecurity to RobloxScriptSecurity
- 433 Change WriteSecurity of from PluginSecurity to RobloxScriptSecurity
- 433 Change ReadSecurity of from PluginSecurity to RobloxScriptSecurity
- 421 Change Security of SetItem from RobloxScriptSecurity to PluginSecurity
- 421 Change Security of OnSetItem from RobloxScriptSecurity to PluginSecurity
- 421 Change Security of OnInvoke from RobloxScriptSecurity to PluginSecurity
- 421 Change Security of Invoke from RobloxScriptSecurity to PluginSecurity
- 421 Change Security of GetItem from RobloxScriptSecurity to PluginSecurity
- 421 Change ReadSecurity of from RobloxScriptSecurity to PluginSecurity
- 421 Change WriteSecurity of from RobloxScriptSecurity to PluginSecurity
- 421 Change WriteSecurity of from RobloxScriptSecurity to PluginSecurity
- 421 Change ReadSecurity of from RobloxScriptSecurity to PluginSecurity
- 421 Change WriteSecurity of from RobloxScriptSecurity to PluginSecurity
- 421 Change ReadSecurity of from RobloxScriptSecurity to PluginSecurity
- 418 Change Tags of GetStudioUserId from [] to [Deprecated]
- 408 Change Parameters of SetItem from (key: string, value: string = ) to (key: string, value: Variant)
- 408 Remove RemoveItem
- 408 Add OnSetItem
- 408 Add OnInvoke
- 408 Add Invoke
- 408 Remove HasItem
- 408 Change ReturnType of GetItem from string to Variant
- 408 Change Parameters of GetItem from (key: string, defaultValue: string = ) to (key: string, defaultValue: Variant)
- 408 Remove Fire
- 408 Remove BindAndFire
- 408 Remove Bind
- 408 Add
- 408 Remove MDIInstance
- 407 Change Security of SetItem from PluginSecurity to RobloxScriptSecurity
- 407 Change Security of RemoveItem from PluginSecurity to RobloxScriptSecurity
- 407 Change Security of HasItem from PluginSecurity to RobloxScriptSecurity
- 407 Change Security of GetItem from PluginSecurity to RobloxScriptSecurity
- 407 Change Security of Fire from PluginSecurity to RobloxScriptSecurity
- 407 Change Security of BindAndFire from PluginSecurity to RobloxScriptSecurity
- 407 Change Security of Bind from PluginSecurity to RobloxScriptSecurity
- 407 Change ReadSecurity of MDIInstance from PluginSecurity to RobloxScriptSecurity
- 407 Change WriteSecurity of MDIInstance from PluginSecurity to RobloxScriptSecurity
- 407 Change ReadSecurity of from PluginSecurity to RobloxScriptSecurity
- 407 Change WriteSecurity of from PluginSecurity to RobloxScriptSecurity
- 407 Change WriteSecurity of from PluginSecurity to RobloxScriptSecurity
- 407 Change ReadSecurity of from PluginSecurity to RobloxScriptSecurity
- 402 Add
- 400 Change Security of SetItem from RobloxScriptSecurity to PluginSecurity
- 400 Change Security of RemoveItem from RobloxScriptSecurity to PluginSecurity
- 400 Change Security of HasItem from RobloxScriptSecurity to PluginSecurity
- 400 Change Security of GetItem from RobloxScriptSecurity to PluginSecurity
- 400 Change Security of Fire from RobloxScriptSecurity to PluginSecurity
- 400 Change Security of BindAndFire from RobloxScriptSecurity to PluginSecurity
- 400 Change Security of Bind from RobloxScriptSecurity to PluginSecurity
- 400 Change WriteSecurity of from RobloxScriptSecurity to PluginSecurity
- 400 Change ReadSecurity of from RobloxScriptSecurity to PluginSecurity
- 399 Add MDIInstance
- 398 Add SetItem
- 398 Add RemoveItem
- 398 Add HasItem
- 398 Add GetItem
- 398 Add Fire
- 398 Add BindAndFire
- 398 Add Bind
- 398 Add
- 377 Change Parameters of ImportFbxRig from () to (isR15: bool = true)
- 377 Change Parameters of ImportFbxAnimation from (rigModel: Instance) to (rigModel: Instance, isR15: bool = true)
- 371 Change ReturnType of ImportFbxAnimation from void to Instance
- 371 Change Tags of ImportFbxAnimation from [] to [Yields]
- 370 Add Unloading
- 366 Change Parameters of StartDrag from (drag: PluginDrag) to (dragData: Dictionary)
- 366 Change Security of StartDrag from RobloxScriptSecurity to PluginSecurity
- 364 Add CreatePluginMenu
- 364 Change Parameters of CreatePluginAction from (actionId: string, text: string, statusTip: string, iconName: string = ) to (actionId: string, text: string, statusTip: string, iconName: string = , allowBinding: bool = true)
- 355 Add StartDecalDrag
- 354 Add StartDrag
- 354 Add
- 351 Add CreateQWidgetPluginGui
- 350 Remove CreateQWidgetPluginGui
- 351 Add CreateQWidgetPluginGui
- 345 Add StopAllSounds
- 345 Add ResumeSound
- 345 Add PlaySound
- 345 Add PauseSound
- 345 Change Parameters of CreatePluginAction from (actionId: string, text: string, statusTip: string) to (actionId: string, text: string, statusTip: string, iconName: string = )
- 338 Add CreatePluginAction
- 330 Add IsActivatedWithExclusiveMouse
- 330 Add IsActivated
- 330 Add Deactivate
- 326 Remove CreatePluginGui
- 326 Add CreateDockWidgetPluginGui
- 323 Change Parameters of CreatePluginGui from (pluginGuiId: string) to (pluginGuiName: string, restoreEnabledState: bool, initialEnabledState: bool)
- 322 Change ReturnType of PromptForExistingAssetId from int to int64
- 322 Change ReturnType of GetStudioUserId from int to int64
- 319 Add CreatePluginGui
- 301 Change Parameters of OpenScript from (script: Instance, lineNumber: int = 0) to (script: Instance, lineNumber: int = 1)
- 301 Add GetSelectedRibbonTool
- 277 Add SelectRibbonTool
- 268 Add PromptSaveSelection
- 265 Change Tags of ImportFbxRig from [] to [Yields]
- 265 Change ReturnType of ImportFbxRig from void to Instance
- 264 Change Tags of ImportFbxRig from [Yields] to []
- 264 Change ReturnType of ImportFbxRig from Instance to void
- 265 Change Tags of ImportFbxRig from [] to [Yields]
- 265 Change ReturnType of ImportFbxRig from void to Instance
- 256 Add ImportFbxRig
- 256 Add ImportFbxAnimation
- 224 Change Tags of PromptForExistingAssetId from [] to [Yields]
- 224 Change Parameters of PromptForExistingAssetId from (assetId: int = -1) to (assetType: string)
- 220 Add PromptForExistingAssetId
- 213 Add OpenWikiPage
- 196 Add GetJoinMode
- 196 Add GridSize
- 196 Add CollisionEnabled
- 190 Add Union
- 190 Add Separate
- 190 Add Negate
- 151 Change Security of Deactivation from security1 to PluginSecurity
- 151 Change Security of SetSetting from security1 to PluginSecurity
- 151 Change Security of SaveSelectedToRoblox from security1 to PluginSecurity
- 151 Change Security of OpenScript from security1 to PluginSecurity
- 151 Change Security of GetStudioUserId from security1 to PluginSecurity
- 151 Change Security of GetSetting from security1 to PluginSecurity
- 151 Change Security of GetMouse from security1 to PluginSecurity
- 151 Change Security of CreateToolbar from security1 to PluginSecurity
- 151 Change Security of Activate from security1 to PluginSecurity
- 150 Change Security of Deactivation from None to security1
- 150 Change Security of SetSetting from LocalUserSecurity to security1
- 150 Change Security of SaveSelectedToRoblox from LocalUserSecurity to security1
- 150 Change Security of OpenScript from LocalUserSecurity to security1
- 150 Change Security of GetStudioUserId from LocalUserSecurity to security1
- 150 Change Security of GetSetting from LocalUserSecurity to security1
- 150 Change Security of GetMouse from LocalUserSecurity to security1
- 150 Change Security of CreateToolbar from LocalUserSecurity to security1
- 150 Change Security of Activate from LocalUserSecurity to security1
- 144 Add OpenScript
- 128 Add SetSetting
- 128 Add SaveSelectedToRoblox
- 128 Add GetStudioUserId
- 128 Add GetSetting
- 79 Change Tags of Plugin from [preliminary, NotCreatable] to [NotCreatable]
- 78 Change Tags of Plugin from [NotCreatable] to [preliminary, NotCreatable]
- 79 Change Tags of Plugin from [preliminary, NotCreatable] to [NotCreatable]
- 71 Change Parameters of Activate from (ExclusiveMouse: bool) to (exclusiveMouse: bool)
- 47 Add Deactivation
- 47 Add GetMouse
- 47 Add CreateToolbar
- 47 Add Activate
- 47 Add Plugin
Members 53
Activate
Parameters (1) | ||
---|---|---|
exclusiveMouse | bool | |
Returns (1) | ||
null |
This function sets the state of the calling plugin to activated. Activating the plugin allows mouse control through the Plugin:GetMouse() method.
At any given time there are either 0 or 1 Activated Plugins. Activating a plugin will deactivate all other plugins (they will receive a Plugin.Deactivation event).
See also:
- Plugin:IsActivatedWithExclusiveMouse(), returns true if this plugin is currently active with an exclusive mouse, after having been activated via this function
- Plugin.Unloading, fires immediately before the plugin is unloaded or reloaded via uninstallation, deactivation, or updating
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 6
- 573 Change ReturnType of Activate from void to null
- 462 Change ThreadSafety of Activate from to Unsafe
- 151 Change Security of Activate from security1 to PluginSecurity
- 150 Change Security of Activate from LocalUserSecurity to security1
- 71 Change Parameters of Activate from (ExclusiveMouse: bool) to (exclusiveMouse: bool)
- 47 Add Activate
CollisionEnabled
Type | Default | |
---|---|---|
bool |
Returns whether the user enabled Collisions
in studio under the Model
tab.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false |
History 4
- 553 Change Default of CollisionEnabled from to
- 486 Change ThreadSafety of CollisionEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of CollisionEnabled from to ReadOnly
- 196 Add CollisionEnabled
CreateDockWidgetPluginGui
Parameters (2) | ||
---|---|---|
pluginGuiId | string | |
dockWidgetPluginGuiInfo | DockWidgetPluginGuiInfo | |
Returns (1) | ||
DockWidgetPluginGui |
CreateDockWidgetPluginGui creates a new DockWidgetPluginGui
from the given DockWidgetPluginGuiInfo. The first parameter,
pluginGuiId
, should be a unique and consistent string. It is used to
save the state of the widget's dock state and other internal details.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 483 Change ReturnType of CreateDockWidgetPluginGui from Instance to DockWidgetPluginGui
- 462 Change ThreadSafety of CreateDockWidgetPluginGui from to Unsafe
- 326 Add CreateDockWidgetPluginGui
CreatePluginAction
Parameters (5) | Default | |
---|---|---|
actionId | string | |
text | string | |
statusTip | string | |
iconName | string | |
allowBinding | bool | true |
Returns (1) | ||
PluginAction |
This function creates a PluginAction which is an object that
represents a generic performable action in Roblox Studio, with no directly
associated Toolbar
or Button. In Roblox Studio, they can be
assigned a keyboard shortcut under
File → Advanced → Customize Shortcuts…
, and they can also be added to
the Quick Access Toolbar.
When an action is triggered, the PluginAction.Triggered event is signaled.
In order for PluginActions work as expected, they must be created using this function.
See also:
- PluginMenu, a context menu that can be shown in Studio which displays a list of PluginActions and supports submenus
- Plugin:CreatePluginMenu(), creates a PluginMenu
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 483 Change ReturnType of CreatePluginAction from Instance to PluginAction
- 462 Change ThreadSafety of CreatePluginAction from to Unsafe
- 364 Change Parameters of CreatePluginAction from (actionId: string, text: string, statusTip: string, iconName: string = ) to (actionId: string, text: string, statusTip: string, iconName: string = , allowBinding: bool = true)
- 345 Change Parameters of CreatePluginAction from (actionId: string, text: string, statusTip: string) to (actionId: string, text: string, statusTip: string, iconName: string = )
- 338 Add CreatePluginAction
CreatePluginMenu
Parameters (3) | Default | |
---|---|---|
id | string | |
title | string | |
icon | string | |
Returns (1) | ||
PluginMenu |
This function creates a new PluginMenu, which is a context menu that can be shown in Studio that displays a list of PluginActions and supports submenus.
In order for PluginMenus to work as expected, they must be created using this function.
See also:
- PluginAction, an object that represents a generic performable
action in Roblox Studio, with no directly associated
Toolbar
or Button. - 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
- PluginMenu: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
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 483 Change ReturnType of CreatePluginMenu from Instance to PluginMenu
- 462 Change ThreadSafety of CreatePluginMenu from to Unsafe
- 364 Add CreatePluginMenu
CreateQWidgetPluginGui
Parameters (2) | ||
---|---|---|
pluginGuiId | string | |
pluginGuiOptions | Dictionary | |
Returns (1) | ||
QWidgetPluginGui |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 483 Change ReturnType of CreateQWidgetPluginGui from Instance to QWidgetPluginGui
- 462 Change ThreadSafety of CreateQWidgetPluginGui from to Unsafe
- 351 Add CreateQWidgetPluginGui
- 350 Remove CreateQWidgetPluginGui
- 351 Add CreateQWidgetPluginGui
CreateToolbar
Parameters (1) | ||
---|---|---|
name | string | |
Returns (1) | ||
PluginToolbar |
The CreateToolbar function creates a new PluginToolbar with the given name. The toolbar can then be used to create plugin buttons.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 483 Change ReturnType of CreateToolbar from Instance to PluginToolbar
- 462 Change ThreadSafety of CreateToolbar from to Unsafe
- 151 Change Security of CreateToolbar from security1 to PluginSecurity
- 150 Change Security of CreateToolbar from LocalUserSecurity to security1
- 47 Add CreateToolbar
Deactivate
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Deactivates the plugin. This will disengage the associated PluginMouse if it has been activated
See also:
- Plugin:Activate(), sets the state of the calling plugin to activated
- Plugin.Deactivation, fires when the plugin is deactivated
- Plugin.Unloading, fires immediately before the plugin is unloaded or reloaded via uninstallation, deactivation, or updating
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of Deactivate from void to null
- 462 Change ThreadSafety of Deactivate from to Unsafe
- 330 Add Deactivate
Deactivation
Parameters (0) | ||
---|---|---|
No parameters. |
Fired when the Plugin is deactivated. This occurs when either the plugin code calls Plugin:Deactivate(), or because some other plugin called Plugin:Activate(), which forces all other plugins to lose their active state.
See also:
- Plugin.Unloading, fires immediately before the plugin is unloaded or reloaded via uninstallation, deactivation, or updating
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 462 Change ThreadSafety of Deactivation from to Unsafe
- 151 Change Security of Deactivation from security1 to PluginSecurity
- 150 Change Security of Deactivation from None to security1
- 47 Add Deactivation
DisableUIDragDetectorDrags
Type | Default | |
---|---|---|
bool |
Security | RobloxScriptSecurity |
---|---|
Thread safety | ReadSafe |
Category | Data |
Loaded/Saved | true |
History 1
GetItem
Parameters (2) | ||
---|---|---|
key | string | |
defaultValue | Variant | |
Returns (1) | ||
Variant |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 8
- 462 Change ThreadSafety of GetItem from to Unsafe
- 433 Change Security of GetItem from PluginSecurity to RobloxScriptSecurity
- 421 Change Security of GetItem from RobloxScriptSecurity to PluginSecurity
- 408 Change ReturnType of GetItem from string to Variant
- 408 Change Parameters of GetItem from (key: string, defaultValue: string = ) to (key: string, defaultValue: Variant)
- 407 Change Security of GetItem from PluginSecurity to RobloxScriptSecurity
- 400 Change Security of GetItem from RobloxScriptSecurity to PluginSecurity
- 398 Add GetItem
GetJoinMode
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
JointCreationMode |
Returns the JointCreationMode the user has set in studio under the Model tab.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetJoinMode from to Unsafe
- 196 Add GetJoinMode
GetMouse
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
PluginMouse |
GetMouse returns a PluginMouse that can be used while the plugin is active through Plugin:Activate().
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
GetPluginComponent
Parameters (1) | ||
---|---|---|
name | string | |
Returns (1) | ||
Variant |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 651 Change ReturnType of GetPluginComponent from Dictionary to Variant
- 619 Add GetPluginComponent
GetSelectedRibbonTool
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
RibbonTool |
GetSelectedRibbonTool return the currently selected RibbonTool. It returns an Enum that corresponds to a particular tool. This will return whether the tool is selected manually or programmatically via Plugin:SelectRibbonTool().
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of GetSelectedRibbonTool from to Unsafe
- 301 Add GetSelectedRibbonTool
GetSetting
Parameters (1) | ||
---|---|---|
key | string | |
Returns (1) | ||
Variant |
Retrieves a previously stored value with the given key, or nil if the given key doesn't exist.
Because multiple instances of the same plugin can run simultaneously (for example, if multiple Studio windows are open), you shouldn't depend on this value staying the same over time. The other plugin instances can update the setting at any time.
This call can silently fail and return nil
if multiple instances of the
same plugin are actively reading and writing data. If your plugin expects
to write to settings frequently, you should double-check the returned
value from this call after a short while to distinguish between a setting
being temporarily unavailable and a setting not existing.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 462 Change ThreadSafety of GetSetting from to Unsafe
- 151 Change Security of GetSetting from security1 to PluginSecurity
- 150 Change Security of GetSetting from LocalUserSecurity to security1
- 128 Add GetSetting
GetStudioUserId
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
int64 |
Returns the studio user's userId if they're logged in, otherwise returns 0.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 6
- 462 Change ThreadSafety of GetStudioUserId from to Unsafe
- 418 Change Tags of GetStudioUserId from [] to [Deprecated]
- 322 Change ReturnType of GetStudioUserId from int to int64
- 151 Change Security of GetStudioUserId from security1 to PluginSecurity
- 150 Change Security of GetStudioUserId from LocalUserSecurity to security1
- 128 Add GetStudioUserId
GetUri
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
Dictionary |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
GridSize
Type | Default | |
---|---|---|
float |
Returns the grid snapping size the user has set in Studio under the Model or Avatar tabs. Note that this property may have slight rounding errors; for example it may be 0.0099999997764826 for a user setting of 1 or 0.4000000059604645 for a user setting of 0.4.
Thread safety | ReadSafe |
---|---|
Category | Data |
Loaded/Saved | false |
ImportFbxAnimation
Parameters (2) | Default | |
---|---|---|
rigModel | Instance | |
isR15 | bool | true |
Returns (1) | ||
Instance |
This function prompts the user to open a .fbx animation file that can be
loaded onto the rigModel
, then proceeds to insert the animation as a
KeyframeSequence in the Workspace.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 462 Change ThreadSafety of ImportFbxAnimation from to Unsafe
- 377 Change Parameters of ImportFbxAnimation from (rigModel: Instance) to (rigModel: Instance, isR15: bool = true)
- 371 Change ReturnType of ImportFbxAnimation from void to Instance
- 371 Change Tags of ImportFbxAnimation from [] to [Yields]
- 256 Add ImportFbxAnimation
ImportFbxRig
Parameters (1) | Default | |
---|---|---|
isR15 | bool | true |
Returns (1) | ||
Instance |
Prompts the user to open a .fbx file, uploads the individual components of the model as meshes, and generates a character rig for use in animation, which is loaded into the Workspace.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 9
- 462 Change ThreadSafety of ImportFbxRig from to Unsafe
- 377 Change Parameters of ImportFbxRig from () to (isR15: bool = true)
- 265 Change Tags of ImportFbxRig from [] to [Yields]
- 265 Change ReturnType of ImportFbxRig from void to Instance
- 264 Change Tags of ImportFbxRig from [Yields] to []
- 264 Change ReturnType of ImportFbxRig from Instance to void
- 265 Change Tags of ImportFbxRig from [] to [Yields]
- 265 Change ReturnType of ImportFbxRig from void to Instance
- 256 Add ImportFbxRig
Intersect
Parameters (1) | ||
---|---|---|
objects | Instances | |
Returns (1) | ||
Instance |
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
Invoke
Parameters (2) | ||
---|---|---|
key | string | |
arguments | Tuple | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
IsActivated
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
This function returns true if this plugin is currently active, after having been activated via the Plugin:Activate() function.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of IsActivated from to Unsafe
- 330 Add IsActivated
IsActivatedWithExclusiveMouse
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
bool |
This function returns true if this plugin is currently active with an exclusive mouse, after having been activated via the Plugin:Activate() function. If this returns true, a PluginMouse can be retrieved via Plugin:GetMouse().
See also:
- Plugin.Deactivation, fires when the plugin is deactivated
- Plugin.Unloading, fires immediately before the plugin is unloaded or reloaded via uninstallation, deactivation, or updating
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of IsActivatedWithExclusiveMouse from to Unsafe
- 330 Add IsActivatedWithExclusiveMouse
Negate
Parameters (1) | ||
---|---|---|
objects | Instances | |
Returns (1) | ||
Instances |
Negates the given parts and returns the resulting NegateOperations.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
OnInvoke
Parameters (2) | ||
---|---|---|
key | string | |
callback | Function | |
Returns (1) | ||
Instance |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
OnSetItem
Parameters (2) | ||
---|---|---|
key | string | |
callback | Function | |
Returns (1) | ||
Instance |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
OpenScript
Parameters (2) | Default | |
---|---|---|
script | LuaSourceContainer | |
lineNumber | int | 1 |
Returns (1) | ||
null |
Used to open the given script instance in an editor window, in Roblox studio, at the given line. If no line is given as an argument it will default to 1.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 7
- 573 Change ReturnType of OpenScript from void to null
- 492 Change Parameters of OpenScript from (script: Instance, lineNumber: int = 1) to (script: LuaSourceContainer, lineNumber: int = 1)
- 462 Change ThreadSafety of OpenScript from to Unsafe
- 301 Change Parameters of OpenScript from (script: Instance, lineNumber: int = 0) to (script: Instance, lineNumber: int = 1)
- 151 Change Security of OpenScript from security1 to PluginSecurity
- 150 Change Security of OpenScript from LocalUserSecurity to security1
- 144 Add OpenScript
OpenWikiPage
Parameters (1) | ||
---|---|---|
url | string | |
Returns (1) | ||
null |
Opens the context help window to the wiki page that url
links to.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of OpenWikiPage from void to null
- 462 Change ThreadSafety of OpenWikiPage from to Unsafe
- 213 Add OpenWikiPage
PauseSound
Parameters (1) | ||
---|---|---|
sound | Instance | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 573 Change ReturnType of PauseSound from void to null
- 462 Change ThreadSafety of PauseSound from to Unsafe
- 460 Change Parameters of PauseSound from (soundChannel: Instance) to (sound: Instance)
- 345 Add PauseSound
PlaySound
Parameters (2) | Default | |
---|---|---|
sound | Instance | |
normalizedTimePosition | double | 0 |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 573 Change ReturnType of PlaySound from void to null
- 462 Change ThreadSafety of PlaySound from to Unsafe
- 460 Change Parameters of PlaySound from (soundChannel: Instance, normalizedTimePosition: double = 0) to (sound: Instance, normalizedTimePosition: double = 0)
- 449 Change Parameters of PlaySound from (soundChannel: Instance) to (soundChannel: Instance, normalizedTimePosition: double = 0)
- 345 Add PlaySound
ProcessAssetInsertionDrag
Parameters (3) | ||
---|---|---|
assetId | string | |
assetTypeId | int | |
instances | Instances | |
Returns (1) | ||
Instances |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 648 Change ReturnType of ProcessAssetInsertionDrag from Objects to Instances
- 648 Change Parameters of ProcessAssetInsertionDrag from (assetId: string, assetTypeId: int, instances: Objects) to (assetId: string, assetTypeId: int, instances: Instances)
- 532 Add ProcessAssetInsertionDrag
ProcessAssetInsertionDrop
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 573 Change ReturnType of ProcessAssetInsertionDrop from void to null
- 532 Add ProcessAssetInsertionDrop
PromptForExistingAssetId
Parameters (1) | ||
---|---|---|
assetType | string | |
Returns (1) | ||
int64 |
Opens a window in Roblox Studio, which prompts the user to select an asset
based on the assetType
specified. Returns what assetId was selected, or
-1 if the window was closed.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 462 Change ThreadSafety of PromptForExistingAssetId from to Unsafe
- 322 Change ReturnType of PromptForExistingAssetId from int to int64
- 224 Change Tags of PromptForExistingAssetId from [] to [Yields]
- 224 Change Parameters of PromptForExistingAssetId from (assetId: int = -1) to (assetType: string)
- 220 Add PromptForExistingAssetId
PromptSaveSelection
Parameters (1) | Default | |
---|---|---|
suggestedFileName | string | |
Returns (1) | ||
bool |
Prompts the user to save their current selection with the specified file name. Returns true if the user did save the file.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of PromptSaveSelection from to Unsafe
- 268 Add PromptSaveSelection
Ready
Parameters (0) | ||
---|---|---|
No parameters. |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
ResumeSound
Parameters (1) | ||
---|---|---|
sound | Instance | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 4
- 573 Change ReturnType of ResumeSound from void to null
- 462 Change ThreadSafety of ResumeSound from to Unsafe
- 460 Change Parameters of ResumeSound from (soundChannel: Instance) to (sound: Instance)
- 345 Add ResumeSound
SaveSelectedToRoblox
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Opens an upload window for the user's current selection.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 573 Change ReturnType of SaveSelectedToRoblox from void to null
- 462 Change ThreadSafety of SaveSelectedToRoblox from to Unsafe
- 151 Change Security of SaveSelectedToRoblox from security1 to PluginSecurity
- 150 Change Security of SaveSelectedToRoblox from LocalUserSecurity to security1
- 128 Add SaveSelectedToRoblox
SelectRibbonTool
Parameters (2) | ||
---|---|---|
tool | RibbonTool | |
position | UDim2 | |
Returns (1) | ||
null |
Activates the specified Roblox Studio tool. If the tool opens a window, the position parameter specifies where it should be shown on the screen.
Note:
- An object must be selected in order for this to work correctly.
- Altering the scale fields of the
position
property will not affect the dialog popups.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of SelectRibbonTool from void to null
- 462 Change ThreadSafety of SelectRibbonTool from to Unsafe
- 277 Add SelectRibbonTool
Separate
Parameters (1) | ||
---|---|---|
objects | Instances | |
Returns (1) | ||
Instances |
Separates the given UnionOperations and returns the resulting parts.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
SetItem
Parameters (2) | ||
---|---|---|
key | string | |
value | Variant | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 8
- 573 Change ReturnType of SetItem from void to null
- 462 Change ThreadSafety of SetItem from to Unsafe
- 433 Change Security of SetItem from PluginSecurity to RobloxScriptSecurity
- 421 Change Security of SetItem from RobloxScriptSecurity to PluginSecurity
- 408 Change Parameters of SetItem from (key: string, value: string = ) to (key: string, value: Variant)
- 407 Change Security of SetItem from PluginSecurity to RobloxScriptSecurity
- 400 Change Security of SetItem from RobloxScriptSecurity to PluginSecurity
- 398 Add SetItem
SetReady
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
SetSetting
Parameters (2) | ||
---|---|---|
key | string | |
value | Variant | |
Returns (1) | ||
null |
Stores a given value for later use under the given key. The value will persist even after Roblox Studio is closed. These settings are saved in JSON format as a map with string keys. Arrays are automatically converted to maps by converting the numeric keys to strings first.
Note that the JSON format imposes additional restrictions, including the following characters which can corrupt the settings file:
- Backslashes (
\
) in keys or values, in particular escaped quotes (\"
). - Newlines (
\n
) in keys. - Quotes (
"
) in keys. - Periods (
.
) in keys.
This call can silently fail if multiple instances of the same plugin are actively reading and writing data. If your plugin expects to write to settings frequently, you may check that the data has been properly written by calling Plugin:GetSetting().
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
History 5
- 573 Change ReturnType of SetSetting from void to null
- 462 Change ThreadSafety of SetSetting from to Unsafe
- 151 Change Security of SetSetting from security1 to PluginSecurity
- 150 Change Security of SetSetting from LocalUserSecurity to security1
- 128 Add SetSetting
StartDecalDrag
Parameters (1) | ||
---|---|---|
decal | Instance | |
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of StartDecalDrag from void to null
- 462 Change ThreadSafety of StartDecalDrag from to Unsafe
- 355 Add StartDecalDrag
StartDrag
Parameters (1) | ||
---|---|---|
dragData | Dictionary | |
Returns (1) | ||
null |
StartDrag initiates a drag action using a dictionary of parameters. The parameters are as follows:
Name | Type | Default | Description |
---|---|---|---|
Sender | string | "" | Identifies the source of the drag action to the drop target |
MimeType | string | "" | The MIME type of Data. |
Data | string | "" | Information about the drag action, for example what is being dragged. Should be used by the drop target. |
MouseIcon | Content | "" | The icon to use for the mouse cursor during the drag. If empty, uses the default cursor. |
DragIcon | Content | "" | An image to render under the mouse cursor during the drag. This should represent the item being dragged. |
HotSpot | Vector2 | Vector2.new(0, 0) | The pixel offset from the top-left where the cursor should "hold" the DragIcon. |
See also:
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
StopAllSounds
Parameters (0) | ||
---|---|---|
No parameters. | ||
Returns (1) | ||
null |
Security | RobloxScriptSecurity |
---|---|
Thread safety | Unsafe |
History 3
- 573 Change ReturnType of StopAllSounds from void to null
- 462 Change ThreadSafety of StopAllSounds from to Unsafe
- 345 Add StopAllSounds
Union
Parameters (1) | ||
---|---|---|
objects | Instances | |
Returns (1) | ||
Instance |
Unions the given parts and returns the resulting UnionOperation.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
Unloading
Parameters (0) | ||
---|---|---|
No parameters. |
This event fires immediately before the Plugin stops running. Plugins are unloaded when disabled, uninstalled, about to be updated, or when the place is closing.
It enables a plugin to clean up after itself before its scripts stop running, e.g. to remove unnecessary instances from the DataModel. If a plugin does not clean up properly, the old copies will remain. When this occurs, users may be forced to close and reopen the place which is a bad user experience.
Plugin-related instances such as PluginToolbarButtons, DockWidgetPluginGuis, and PluginGuis are automatically cleaned up when the plugin is unloaded so there is no need to remove them.
Security | PluginSecurity |
---|---|
Thread safety | Unsafe |
Removed members 7
Bind
Parameters (2) | ||
---|---|---|
key | string | |
callback | Function | |
Returns (1) | ||
Instance |
Security | RobloxScriptSecurity |
---|
BindAndFire
Parameters (2) | ||
---|---|---|
key | string | |
callback | Function | |
Returns (1) | ||
Instance |
Security | RobloxScriptSecurity |
---|
History 4
- 408 Remove BindAndFire
- 407 Change Security of BindAndFire from PluginSecurity to RobloxScriptSecurity
- 400 Change Security of BindAndFire from RobloxScriptSecurity to PluginSecurity
- 398 Add BindAndFire
CreatePluginGui
Parameters (3) | ||
---|---|---|
pluginGuiName | string | |
restoreEnabledState | bool | |
initialEnabledState | bool | |
Returns (1) | ||
Instance |
Security | PluginSecurity |
---|
History 3
- 326 Remove CreatePluginGui
- 323 Change Parameters of CreatePluginGui from (pluginGuiId: string) to (pluginGuiName: string, restoreEnabledState: bool, initialEnabledState: bool)
- 319 Add CreatePluginGui
Fire
Parameters (2) | Default | |
---|---|---|
key | string | |
value | string | |
Returns (1) | ||
void |
Security | RobloxScriptSecurity |
---|
HasItem
Parameters (1) | ||
---|---|---|
key | string | |
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|
MDIInstance
Type | Default | |
---|---|---|
MDIInstance |
Security | RobloxScriptSecurity |
---|---|
Category | Data |
Loaded/Saved | false |
History 4
- 408 Remove MDIInstance
- 407 Change ReadSecurity of MDIInstance from PluginSecurity to RobloxScriptSecurity
- 407 Change WriteSecurity of MDIInstance from PluginSecurity to RobloxScriptSecurity
- 399 Add MDIInstance
RemoveItem
Parameters (1) | ||
---|---|---|
key | string | |
Returns (1) | ||
bool |
Security | RobloxScriptSecurity |
---|
History 4
- 408 Remove RemoveItem
- 407 Change Security of RemoveItem from PluginSecurity to RobloxScriptSecurity
- 400 Change Security of RemoveItem from RobloxScriptSecurity to PluginSecurity
- 398 Add RemoveItem