Fix plugin unloading

This commit is contained in:
Lucien Greathouse
2019-03-21 22:35:30 -07:00
parent 3faf3d2a56
commit 07c7b28c03
2 changed files with 3 additions and 2 deletions

View File

@@ -10,8 +10,8 @@ local app = Roact.createElement(App, {
plugin = plugin,
})
Roact.mount(app, game:GetService("CoreGui"), "Rojo UI")
local tree = Roact.mount(app, game:GetService("CoreGui"), "Rojo UI")
plugin.Unloading:Connect(function()
Roact.unmount(app)
Roact.unmount(tree)
end)