I am making an antivirus plugin. I have scripted the GUI but I am really struggling. Upon clicking the Plugin icon in the toolbar, the GUI should appear and you should be able to interact with it, without having to go into the game.
However, nothing happens. No warnings. It just doesn't work.
--MalTrax // Property of iiPizzaCraver
--This script creates the icon in the toolbar and sets everything up for you with just one click!
--Designed to be as effective and as easy as possible for our fellow developers!
local toolbar = plugin:CreateToolbar("MalTrax Free AntiVirus")
local newscriptbutton = toolbar:CreateButton("Insert MalTrax", "Add MalTrax To Begin Protecting Your Game!", "rbxassetid://5061074269")
local status = false
local gui = script.Parent.Gui
gui.Parent = game.CoreGui
plugin.Click:Connect(function()
status = not status
plugin:SetActive(status)
gui.Enabled = status
end)
I am desperate for some help with this!

5 comments
You can't interact with CoreGuis.
What do i use instead then
My bad, you can interact with CoreGuis. Not sure what I was thinking of. Try creating the GUI instead of giving the already existing GUI a new parent.
Okay thx
Can't do it, my GUI requires a lot of scripts. It needs to be parented to work properly