ElementsAdvanced integrations
CreatePluginFromSource
Creates a plugin definition from supplied Luau source.
CreatePluginFromSource
What it does
Creates a plugin definition from supplied Luau source.
When to use it
Use it only for source you trust and have reviewed; do not execute untrusted remote plugin code.
XLQPGen1:CreatePluginFromSource(name,code,executeNow)
local Result = Library:CreatePluginFromSource(
"Example",
[[return { Name = "Example Plugin" }]],
)Behavior and return value
Store the returned controller or object when later code needs to update its state, call its methods, or close it.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.