plugin.Unloading not firing

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.

We’ve filed a ticket into our internal database for this issue, and will come back as soon as we have updates!

Thanks for flagging!

1 Like

Although it works well with Immediate, the Immediate behavior is no longer recommended.