CreatePlugin (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "</code>" to "</SyntaxHighlight>"
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
{{Example|
{{Example|
This code will create a plugin using the PluginManager:
This code will create a plugin using the PluginManager:
<code lua>
<syntaxhighlight lang="lua">
plugin = PluginManager():CreatePlugin()
plugin = PluginManager():CreatePlugin()
</SyntaxHighlight>
</syntaxhighlight>
}}
}}


[[Category:Methods]]
[[Category:Methods]]

Latest revision as of 06:07, 27 April 2023

Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
CreatePlugin( )
Returns Instance
Description: Returns a Plugin.
Member of: PluginManager


Example

This code will create a plugin using the PluginManager:

plugin = PluginManager():CreatePlugin()