I am currently working on an admin script but I am having some issues with the settings area mainly because I have never worked with ModuleScripts before but I feel like it is the best route to take. So my question is, how would I access the contents like admins etc. in this module script from another script? I am making a function that checks to see if the player is an admin (found below the module script) and I don't know how I would check the admin table inside the ranks dictionary.
Any advice would be great (wiki links, etc.). Thanks!
ModuleScript
--[[
These are the settings for Bman's Admin, if you have any questions or issues please contact
me (Bman8765) by sending me a message and I'll try to help!
--]]
return {
----------------[[ ADMINS ]]-----------------
Ranks = {
["Admin"] = {"Bman8765"}; -- Can use everything
["Banned"] = {"Noob", "Butt", "Idiot"}; -- Locked out of the server
}
---------------------------------------------
----------------[[ SETTINGS ]]---------------
---------------------------------------------
}
The Function for checking if an admin
function adminCheck(name)
for _, Name in pairs (IDK HOW TO ACCESS THE TABLE HERE) do
if (Name == name) then
return true
end
end
return false
end

1 comment
Yea mine runs off a module script, I feel your confusion..