[Plugin Update] Script RunContext: Enable Parallel Luau & “Plugin” Global Autocomplete

When I save a plugin as a local plugin, it seems to run my Plugin context scripts twice. Here’s the code I was testing:

print("Loading")
plugin.Unloading:Connect(function()
   print("Unloading")
end)

I get:

Unloading [Previously saved one]
Loading
Unloading
Loading
Loading [This is the second execution]

I don’t know why it goes through a load twice. I’m less concerned about that. I’m more concerned that the plugin context script runs twice after the last load.

It works fine when booting up a place in Studio. But this double execution seems to happen every time I do a local plugin save.

1 Like

Ah, yes, I know what’s happening, you’ll want to turn off the PluginDebugService if this is causing undesired behavior. Coincidentally, I believe there’s already a fix for this on its way in the next release or two.

1 Like

The fix for this is rolled out now. Hopefully this is the last time I have to say that :sweat_smile:

Edit: unfortunately, the fix interacted poorly with other changes that got released at the same time. Both changes should be rolling out next week.

3 Likes