How can i use variable from module in other scripts

ik its simple but i cant figure it out
for example

utilitychess.a = {"a"}

in a different script, print(utilitychess.a)

Use return utilitychess at the end of your module. You can then require the module using something like local module = require(modulePath) and print out module.a

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.