Can't set plugin GUI to coreUI

It just gives me error of index nil Parent

local toolbar = plugin:CreateToolbar("Fishe Industries Whitelister")
local Initiate = toolbar:CreateButton("Initiate", "Initiate", "rbxassetid://489322673")

Initiate.Click:Connect(function()
	local Module = script.Parent
	local MainFrame = Module:FindFirstChild("FisheIndustries")
	MainFrame.Parent = game.CoreGui
end)

image

1 Like

Fixed, had to put the screengui into a folder and export the folder as the plugin