Hi all, I’ve been experimenting with Module scripts but I’ve come across a slight issue.
I have created a core Module Script calling “Functions” where I will eventually keep all my classes and such. But when I try and return more than one table to my server script it only gives me one option.
Sorry if it isnt clear in my explanation, I’ll supply scripts below aswell as a screenshot
Module Script
local Notif = {}
local CreateInstance = {}
function Notif:Create()
-- code
end
function CreateInstance:Create()
--code
end
return {Notif, CreateInstance}
Server Script
local ReturnedFunctions = require(ModulesFolder.Functions)
local Notif, CreateInstance = ReturnedFunctions[1], ReturnedFunctions[2]
the second instance I’m calling only gives me the “Notif” option which is strange, It’s 100% my error but I don’t know what it is.
Thank you!