Help with Module scripts

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!

Actually, they will have names and work like dictionaries. It is not a common practice to declare modules this way. Usually the whole module is returned in a single dictionary.

The identifier of the module in the script itself is however lost and defined by the script requiring it instead.

1 Like

I see. It’s just me trying to be organised I suppose.
I hate having things in more than one script just bugs me

I don’t recommend that way to use the module script. It is better to use two module script because if you use two dictionary in one module script, it can makes you confused.