diff --git a/scripts/dumpRobloxTypes.py b/scripts/dumpRobloxTypes.py index 379aea8c..b2ac936f 100644 --- a/scripts/dumpRobloxTypes.py +++ b/scripts/dumpRobloxTypes.py @@ -104,6 +104,7 @@ "GetPlayerFromCharacter", ], "ContextActionService": ["BindAction", "BindActionAtPriority"], + "Plugin": ["OpenScript"], "PluginToolbar": [ "CreateButton", ], @@ -335,6 +336,9 @@ "function BindAction(self, actionName: string, functionToBind: (actionName: string, inputState: EnumUserInputState, inputObject: InputObject) -> EnumContextActionResult?, createTouchButton: boolean, ...: EnumUserInputType | EnumKeyCode): ()", "function BindActionAtPriority(self, actionName: string, functionToBind: (actionName: string, inputState: EnumUserInputState, inputObject: InputObject) -> EnumContextActionResult?, createTouchButton: boolean, priorityLevel: number, ...: EnumUserInputType | EnumKeyCode): ()", ], + "Plugin": [ + "function OpenScript(self, script: LuaSourceContainer, lineNumber: number?): nil" + ], "PluginToolbar": [ "function CreateButton(self, id: string, toolTip: string, iconAsset: string, text: string?): PluginToolbarButton", ], diff --git a/scripts/globalTypes.d.lua b/scripts/globalTypes.d.lua index 74776e3a..78ed9272 100644 --- a/scripts/globalTypes.d.lua +++ b/scripts/globalTypes.d.lua @@ -8388,7 +8388,7 @@ declare class Plugin extends Instance function Negate(self, objects: { Instance }): { NegateOperation } function OnInvoke(self, key: string, callback: ((...any) -> ...any)): Instance function OnSetItem(self, key: string, callback: ((...any) -> ...any)): Instance - function OpenScript(self, script: BaseScript, lineNumber: number?): nil + function OpenScript(self, script: LuaSourceContainer, lineNumber: number?): nil function OpenWikiPage(self, url: string): nil function PauseSound(self, sound: Instance): nil function PlaySound(self, sound: Instance, normalizedTimePosition: number?): nil