CreatePlugin (Method): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">"
Tags: mobile web edit mobile edit
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>"
 
(One intermediate revision 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:
<SyntaxHighlight 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()