--[[
____ _ | __ ) __ _ ___(_) ___ | _ \ / _` / __| |/ __| | |_) | (_| \__ \ | (__ |____/ \__,_|___/_|\___| Admin Essentials 2.0 Created by TheFurryFish Instructions: Place this Model in "ServerScriptService" Note: You can remove the Model and place the script itself in ServerScriptService if you wish. There is more information regarding this admin script in the description of the actual model if you are interested. If you are confused as to how to configure this, please scroll to the bottom of this script for examples. As the creator of the game, you are automatically owner-admined, so you do not have to add yourself to any of the tables below.
--]]
local Configuration = { ['Loader ID'] = 2135455447,
['Super Admins'] = { }, ['Admins'] = { }, ['Mods'] = { }, ['Banned'] = { }, ['Group Configuration'] = { { ['Group ID'] = 3391301, ['Group Rank'] = 13, ['Tolerance Type'] = '==', ['Admin Level'] = 4, }, { ['Group ID'] = 3391301, ['Group Rank'] = 11, ['Tolerance Type'] = '==', ['Admin Level'] = 3, }, { ['Group ID'] = 3391301, ['Group Rank'] = 10, ['Tolerance Type'] = '==', ['Admin Level'] = 2, }, { ['Group ID'] = 3391301, ['Group Rank'] = 12, ['Tolerance Type'] = '==', ['Admin Level'] = 4, }, { ['Group ID'] = 3391301, ['Group Rank'] = 9, ['Tolerance Type'] = '==', ['Admin Level'] = 2, }, { ['Group ID'] = 3391301, ['Group Rank'] = 8, ['Tolerance Type'] = '==', ['Admin Level'] = 1, }, }, ['Command Configuration'] = { ['respawn'] = {['Permission'] = 2}, ['res'] = {['Permission'] = 4}, ['kick'] = {['Permission'] = 1}, ['ban'] = {['Permission'] = 2}, ['unban'] = {['Permission'] = 2}, ['sm'] = {['Permission'] = 4}, ['cmds'] = {['Permission'] = 1}, ['superadmin'] = {['Permission'] = 4}, ['admin'] = {['Permission'] = 4}, ['mod'] = {['Permission'] = 4}, ['unadmin'] = {['Permission'] = 3}, ['admins'] = {['Permission'] = 3}, ['ingameadmins'] = {['Permission'] = 4}, ['chatlogs'] = {['Permission'] = 1}, ['logs'] = {['Permission'] = 1}, ['bans'] = {['Permission'] = 1}, ['smtest'] = {['Permission'] = 4}, ['debuglogs'] = {['Permission'] = 4}, ['addlog'] = {['Permission'] = 4}, ['pm'] = {['Permission'] = 1}, ['shutdown'] = {['Permission'] = 3}, ['m'] = {['Permission'] = 1}, ['slock'] = {['Permission'] = 4}, ['unslock'] = {['Permission'] = 4}, ['h'] = {['Permission'] = 1}, ['tp'] = {['Permission'] = 2}, ['to'] = {['Permission'] = 1}, ['bring'] = {['Permission'] = 2}, ['team'] = {['Permission'] = 4}, ['info'] = {['Permission'] = 4}, ['gear'] = {['Permission'] = 4}, ['hat'] = {['Permission'] = 4}, ['joinlogs'] = {['Permission'] = 4}, ['iteminfo'] = {['Permission'] = 4}, ['awardcape'] = {['Permission'] = 4}, ['uncape'] = {['Permission'] = 4}, ['pban'] = {['Permission'] = 2}, ['pbanid'] = {['Permission'] = 1}, ['unpban'] = {['Permission'] = 2}, ['unpbanid'] = {['Permission'] = 2}, ['pbans'] = {['Permission'] = 1}, ['shutdownlogs'] = {['Permission'] = 4}, ['btools'] = {['Permission'] = 3}, ['segway'] = {['Permission'] = 4}, ['s'] = {['Permission'] = 4}, ['getadmin'] = {['Permission'] = 4}, ['jump'] = {['Permission'] = 4}, ['sit'] = {['Permission'] = 4}, ['view'] = {['Permission'] = 1}, ['unview'] = {['Permission'] = 1}, ['promptpurchase'] = {['Permission'] = 4}, ['clean'] = {['Permission'] = 4}, ['speed'] = {['Permission'] = 3}, ['ws'] = {['Permission'] = 4}, ['refresh'] = {['Permission'] = 2}, ['ref'] = {['Permission'] = 4}, ['rejoin'] = {['Permission'] = 1}, ['place'] = {['Permission'] = 4}, ['god'] = {['Permission'] = 3}, ['ungod'] = {['Permission'] = 3}, ['ff'] = {['Permission'] = 2}, ['unff'] = {['Permission'] = 2}, ['play'] = {['Permission'] = 4}, ['volume'] = {['Permission'] = 4}, ['vol'] = {['Permission'] = 4}, ['stopsound'] = {['Permission'] = 4}, ['countdown'] = {['Permission'] = 4}, ['debugstats'] = {['Permission'] = 4}, ['tools'] = {['Permission'] = 2}, ['give'] = {['Permission'] = 3}, ['startergear'] = {['Permission'] = 3}, ['time'] = {['Permission'] = 4}, ['removetools'] = {['Permission'] = 2}, ['clearstartergear'] = {['Permission'] = 3}, ['clear'] = {['Permission'] = 4}, ['clr'] = {['Permission'] = 4}, ['createserver'] = {['Permission'] = 4}, ['deleteserver'] = {['Permission'] = 4}, ['joinserver'] = {['Permission'] = 4}, ['privateservers'] = {['Permission'] = 4}, ['name'] = {['Permission'] = 4}, ['unname'] = {['Permission'] = 4}, ['change'] = {['Permission'] = 4}, ['heal'] = {['Permission'] = 4}, ['jumppower'] = {['Permission'] = 4}, ['insert'] = {['Permission'] = 4}, ['crash'] = {['Permission'] = 4}, ['fly'] = {['Permission'] = 3}, ['unfly'] = {['Permission'] = 4}, ['trellobans'] = {['Permission'] = 4}, ['viewtools'] = {['Permission'] = 2} }, ['Prefix'] = (':'), -- The prefix to the admin, i.e :cmds or :sm hi ['Kick Reason'] = ('You have been kicked from the server.'), -- Displayed to people that are kicked. ['Ban Reason'] = ('You have been banned from the game.'), -- Displayed to people that are banned. ['Shutdown Reason'] = ('This server is shutting down..\nTry joining a different server!'), -- Displayed to people when the server is shut down. ['Server Message'] = ('Server Message'), -- Displayed in the :sm command's title. ['Server Lock Reason'] = ('The server is locked.'), -- Displayed to people being kicked that try to enter a locked server. ['Trello'] = false, -- Use trello? HttpService must be enabled. ['Trello Board'] = (''), -- Trello board ID. ['Trello App Key'] = (''), -- Private trello application key. ['Trello Token'] = (''), -- Private trello token. ['Creator Debugging'] = false, -- Allows the creator to debug potential issues with the admin. ['Donor Perks'] = false, -- Gives people who purchase an admin donation the ability to cape, put hats on, etc. ['Public Commands'] = false, -- Will people that are not admin be able to say :cmds, or !clean? ['Auto Clean'] = false, -- Will hats and gear automatically be cleaned up every so often? ['System Color'] = Color3.new(31/255,31/255,31/255), -- Color of the admin's guis. ['Tools Location'] = game.ServerStorage, -- Where the :tools and :give command will get tools from. ['Command Confirmation'] = true, -- Validates certain commands like :Ban all, or :PBan all. ['Datastore Key'] = ('SAE_#$DGF') -- What cape data, ban data, etc. is stored under. Changing will wipe it.
}
require(Configuration['Loader ID'])(nil, Configuration)
Inside the Configuration module script, make sure you have the __call
metamethod. Basically it's like a signal/event that fires when the table is called like a function
-- Inside the 2135455447 Configuration Module local module = {} local metatable = { __call = function(self, ...) -- anything you want end, } setmetatable(module, metatable) -- multiple lines of code later return module
But if it still won't work., it might be you don't own the module, or you're calling it as a function without the __call
metamethod.