Modulescripts only run once?

" ModuleScripts run once and only once per Lua environment and return the exact same value for subsequent calls to require ." - roblox developer hub

Could you please explain what you need help with? ModuleScripts run every time you call a variable or function in it.

That’s correct. They only run once and then return the exact same value for subsequent calls

Regardel of parameters inputted for the functions stored in it?

They run once and then return the table to any script that calls require on it. This is not to say that any function you call in the module will run the exact same way each time. Only that the module itself is ran initially before being returned to other scripts.

1 Like

No, functions are functions and act as functions. When you require a ModuleScript however, it always returns the same thing.

1 Like