Ok, so I was scripting, and I know i’m being really dumb. (I’m new to modulescripts but I don’t think thats what is wrong)
local Config = require(script.KronosConfig)
local Admins = Config.Council_Members
local Handler = {}
Handler.AddGui = function addGui(player) --errors right here saying "excepted ( when parsing function, got addGui"
newGui = script.Parent.Assets["GUI's"].MainGui:Clone
end
return Handler
That is all I need help with, Figuring out what is causing that error.
Handler.AddGui = function addGui(player) --errors right here saying "excepted ( when parsing function, got addGui"
newGui = script.Parent.Assets["GUI's"].MainGui:Clone
end
to
Handler.AddGui = function(player)
newGui = script.Parent.Assets["GUI's"].MainGui:Clone
end
because the function should be anonymous without a name when you assign it to a variable