On the ModuleScript page, the “Simple ModuleScript Example” code sample has a small problem:
-- Tables are store multiple values in one variable
local my_functions = {}
-- Add a few functions to the table
function my_functions.foo()
print("Foo!")
end
function functions.bar()
print("Bar!")
end
-- ModuleScripts must return exactly one value
return my_functions
“function functions.bar()” should be “function my_functions.bar()”