I'm working on a plugin in ROBLOX Studio and would like to make a script and edit it with the plugin script, How can I make this?
Also please explain everything clear, thanks! :)
Hi!
You can edit scripts by directly changing the .Source
property of the specified script. Keep in mind that .Source
is PluginSecurity and can only be changed by Plugins, the command bar, and CoreScripts. Like incapaz said, after editing, calling plugin:OpenScript will open up the script.
local s = someScriptPath s.Source = "--[[line1\nline2\nline3\n\nline5]]" -- Sets the script source. plugin:OpenScript(s) -- Opens the script.