Title says it all. Is there any way to use a plugin (preferably by pressing a toolbar button) while editing a script to modify said script?
1 Like
No, plugins are disabled when you are in a script. You could try using a widget which modifys the script’s source, but that would be quite hacky. You really can’t make a plugin the modifys a script while viewing it.
You can set the ClickableWhenViewportHidden property to true for a PluginToolbarButton so that it’s enabled everywhere.
local toolbar = plugin:CreateToolbar("PluginName")
local pluginToolbarButton = toolbar:CreateButton("ButtonName", "Description", "")
pluginToolbarButton.ClickableWhenViewportHidden = true
EDIT: Replied to wrong person. Whoops. Anyway:
You can set the script’s Source property and the text on the script editor will update, even while you’re viewing it.
7 Likes