#How do I require My DataStore from my modulescripts
1 messages · Page 1 of 1 (latest)
do you need something specic that isn't a function
im trying to understand what you mean lol
yh I've learnt/ learning DataStores
** You are now Level 2! **
and i want to put said data into module scripts instead of main
but then i want to know how to specifically require that data into main script without it having to be a function of some sort
so you want to call info from the module script? basically lol
** You are now Level 24! **
i think you can store variables, but i'll let someone more informed answer since i started learning modules too
thoguh you might be trying to something like
local Module = {}
Module.myInfo = {
[1] = "a",
[2] = "b",
[3] = "c"
}
return Module
from script:
-- require() blah blah
local value = Module.myInfo[3]
print(value) -- will be 'c'