plugin = PluginManager():CreatePlugin()
toolbar = plugin:CreateToolbar("SVSE")
button = toolbar:CreateButton("", "", "icon.png")
on = false
function click(bon)
on = bon
print(on)
button:SetActive(on)
if on then
print("active plugin")
plugin:Activate()
s.Parent = game:GetService("CoreGui")
else s.Parent = nil
end
end
button.Click:connect(function () click(not on) end)
plugin.Deactivation:connect(function () click(false) end)
s = Instance.new("ScreenGui")
sf = Instance.new("Frame")
sf.Size = UDim2.new(1, 0, 1, 0)
sf.Position = UDim2.new(0, 0, 0, 0)
sf.Parent = s
Basically makes a GUI appear and cover the screen when you hit the button and remove it when you hit the button again or select a different plugin - for some reason I can't fathom the button won't select
halp |