mvvrgan
(mvvrgan)
June 5, 2020, 1:24pm
#1
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.
local module = require(00000)
module.MainModule(GROUP_ID)
Quwanterz
(Quwanterz)
June 5, 2020, 1:25pm
#2
May you please show what is inside your module script?
mvvrgan
(mvvrgan)
June 5, 2020, 1:26pm
#3
function functions(id)
print("Got!")
print(id)
script.Event:Fire(id)
end
return functions```
Quwanterz
(Quwanterz)
June 5, 2020, 1:27pm
#4
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.
mvvrgan
(mvvrgan)
June 5, 2020, 1:28pm
#5
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.
Quwanterz
(Quwanterz)
June 5, 2020, 1:29pm
#6
What are you trying to achieve?
mvvrgan
(mvvrgan)
June 5, 2020, 1:29pm
#7
I’m trying to achieve a product that can be private and not stolen.
Quwanterz
(Quwanterz)
June 5, 2020, 1:30pm
#8
Any module script/server script in ServerScriptService cannot be replicated to the client. This, of course, an exception if you have a backdoor.
mvvrgan
(mvvrgan)
June 5, 2020, 1:32pm
#9
We’re defeating the purpose of this now, I’m trying to figure out how to make it so the scripts inside that work.
EramsorGR
(eramsorgr)
June 5, 2020, 1:33pm
#10
If by that you mean a private module, they have been deprecated .
mvvrgan
(mvvrgan)
June 5, 2020, 1:34pm
#11
As I have said, I am making the modules public with a whitelist inside of them to achieve that privacy.