so i am trying to create my first ever plugin, and as its my first time, i kinda have no idea what im doing, i used a tutorial i found here on the devforum an i thought i did everything correct so i just need help
so my issue is that it keeps giving me this error everytime i save it as a local plugin:
and then it doesnt appear in my plugins area
this is how my plugin folders are set up:
and this is how my script looks:
-- >> Creating variables for all the necessary folders
local PluginEnvironment = script.Parent
local PluginSettings = PluginEnvironment.Settings
local Utils = PluginEnvironment.Utils
local Modules = PluginEnvironment.Modules
local Menus = PluginEnvironment.Menus
local MainGui = Menus.MainGui
-- >> Creating the Plugin Items
local toolbar = plugin:CreateToolbar("screte")
local pluginButton = toolbar:CreateButton(
"secret",
"do better secret stuff hahahah",
"rbxassetid://0")
-- >> Accessing the the Modules
local insertModule = require(Modules.Insert)
local insertFunction = insertModule.Start()
-- >> setting the Gui to be in the coreGUI
local CoreGUI = game:GetService("CoreGui")
MainGui.Parent = CoreGUI
-- >> toggling the main Gui when the button is clicked
pluginButton.Click:Connect(function()
GUI.Enabled = not GUI.Enabled
end)
i went through everything and it seems it should work, but for some reason it keeps on doing that.
this is my first time as i said before and i have close to no clue what im doing, so yea i need a little bit of help, and i dont think its the way i set up the modules because it is giving me the error about the folder…