adj_44
(adj_44)
1
I am trying to make load a list of admins into another script, when I run it it prints nil :
local admins = require(script.AdminsList)
for i, v in pairs(admins) do
print(v.Name)
end
The module script:
local admins = {"falcon2666"}
return admins
I am sure my referencing is correct. What’s the problem?
Change the script to this:
local admins = require(script.AdminsList)
for i, v in pairs(admins) do
print(v)
end
The item in the table doesn’t have a name property. You could only do it, if it were an object
i = Index; v = Value
In this case, v is equal to “falcon2666”.