Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LoadScriptsEnv()
- print(script)
- local ModuleService = GetModuleService() -- Loads the ModuleService
- ModuleService:Add("print_hi") -- Creates the module
- ModuleService:AddFunction("print_hi", function() -- Adds the function
- print("hi")
- end, "PrintHi")
- local module = ModuleService:Get("print_hi")
- module.PrintHi() -- outputs to hi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement