spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
|
| 02 Oct 2016 10:29 PM |
Module script: AdminModule = {}
Admins = { "spinywind"; }
return AdminModule
Script:
local Admins = require(game.ServerScriptService.Admins.AdminModule.Admins
print(Admins[1])
why isnt this working
|
|
|
| Report Abuse |
|
|
spinywind
|
  |
| Joined: 26 Jan 2012 |
| Total Posts: 3580 |
|
| |
|
|
| 02 Oct 2016 10:42 PM |
Admins is equal to the returned value of the module (AdminModule). You'd have to return something like:
return {AdminModule=AdminModule, Admins=Admins} |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2016 11:50 PM |
"AdminModule = {}"
"return AdminModule"
that is an empty table
also
"local Admins = require(game.ServerScriptService.Admins.AdminModule.Admins"
never closed that parenthesis
|
|
|
| Report Abuse |
|
|