Advertisement
gamesreboot

Testing EMBED script3

Dec 22nd, 2022 (edited)
903
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. LoadScriptsEnv()
  2. print(script)
  3. local ModuleService = GetModuleService() -- Loads the ModuleService
  4.  
  5. ModuleService:Add("print_hi") -- Creates the module
  6.  
  7. ModuleService:AddFunction("print_hi", function() -- Adds the function
  8.      print("hi")
  9. end, "PrintHi")
  10.  
  11. local module = ModuleService:Get("print_hi")
  12.  
  13. module.PrintHi() -- outputs to hi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement