Help needed with module scripts/requiring

Hi, so I tried making a module script with scripts inside of it, however when i use require(00000) it won’t run the scripts inside the module script. So I tried to require a Model with everything inside, still nothing worked.

image
local module = require(00000)
module.MainModule(GROUP_ID)

May you please show what is inside your module script?

function functions(id)
	print("Got!")
	print(id)
	script.Event:Fire(id)
end


return functions```

Since it is just returning one function, you can just do:

local module = require(path_to_module_script)
module(parameters) -- parameters will be passed
module() -- parameters not passed

Also, do local variables as it is much better in performance than global variables.

I’m trying to create this private from the public however, so I’m having it public with a whitelist on but saved to my roblox profile instead of the game.

What are you trying to achieve?

I’m trying to achieve a product that can be private and not stolen.

Any module script/server script in ServerScriptService cannot be replicated to the client. This, of course, an exception if you have a backdoor.

We’re defeating the purpose of this now, I’m trying to figure out how to make it so the scripts inside that work.

If by that you mean a private module, they have been deprecated.

As I have said, I am making the modules public with a whitelist inside of them to achieve that privacy.