As the title suggests, the plugin.Unloading
function never seems to fire when overwriting a local plugin. This is extremely annoying to test plugins in a lot of cases.
Simple repro:
TestPlugin.rbxmx (2.2 KB)
It has both a script and local script with the same code, neither of which work.
Expected result:
- Plugin prints “Plugin loaded!” when the plugin is first saved
- Plugin prints “Plugin unloaded!” when the plugin is overwritten
- Plugin prints “Plugin loaded!” again
Actual result:
- “Plugin unloaded!” never gets printed
On another note, the message for when the plugin loads gets printed twice from each script, not entirely sure why.