Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can someone help me fix the button to my plugin? Gives no errors in the output.

Asked by 7 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

Basically, I have a plugin I am currently trying to make. It doesn't even load in the first place and I'm not sure why. The studio output gives no errors. If anyone could help me, it'd be very much appreciated! My code has been posted below also!

--Anti-Virus by fireking100489
print ("GRASS Anti-Virus has loaded")
local PluginManagerObject = PluginManager()
local Plugin = PluginManagerObject:CreatePlugin()
local Toolbar = Plugin:CreateToolbar("Blazing Computer Software")
local Button = Toolbar:CreateButton("GRASS Anti-Virus", "Click to open the scanner and fix your game's issues!","")

Button.Click:connect(function()
local GUI = script.GrassAntiVirus
GUI.Parent = game.CoreGui
GUI.Grass.Visible = true
end)
0
You don't need to use `PluginManager():CreatePlugin()` anymore. Just right click your script and publish it as a plugin, then install it from the Roblox website. Link150 1355 — 7y
0
The "script" is actually a GUI, though. So, that's why I have the function for duplicating a GUI into the CoreGui. TheRings0fSaturn 28 — 7y

Answer this question