daily pastebin goal
74%
SHARE
TWEET

as

a guest Feb 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2.      __        __  _______  __    __  __   __  ________
  3.     /  \      / / / _____/  \ \  / /  \ \  \ \ \  _____\
  4.    / /\ \    / / / /____     \ \/ /    \ \  \ \ \ \_____
  5.   / /  \ \  / / / _____/     / /\ \     \ \  \ \ \_____ \
  6.  / /    \ \/ / / /____      / /  \ \     \ \__\ \  ____\ \
  7. /_/      \__/ /______/     /_/    \_\     \______\ \______\
  8.  
  9. Nexus Admin, by FromLegoUniverse
  10.  
  11.  
  12. API for creating own commands:
  13. http://roblox.wikia.com/wiki/User:FromLegoUniverse/Nexus_Admin
  14.  
  15. Ranks (without changing config below):
  16. -1  New users, commands such as !commands, !fps, !usage, and not much else.
  17. 0   Debug commands. I (FromLegoUniverse) automatically give myself this so I can diagnose issues.
  18. 1   Moderators. No access to additional integrated commands, but by default given Build Utility and Basic
  19. 2   Admin. Access to kick and unbanning, and useful fun commands
  20. 3   Full Admin. Access to banning, and fun commands, can kick Admins.
  21. 4   Owner admin. Can kick/ban Full Admins and Admins.
  22. 5   Creator admin. Access to :admin and :unadmin. Can kick/ban Owner Admin and below. Game owner automatically gets this rank.
  23. --]]
  24.  
  25. local Config = {
  26.     --Default rank a new player would have.
  27.     DefaultAdminLevel = -1,
  28.    
  29.     --Prefix for standard commands. Other command set creators may or may not use this.
  30.     CommandPrefix = ":",
  31.    
  32.     --Default admin levels needed to use a set of default commands.
  33.     BuildUtilityLevel = 1,
  34.     BasicCommandsLevel = 1,
  35.     UsefulFunCommandsLevel = 2,
  36.     FunCommandsLevel = 3,
  37.    
  38.     --This is for setting up other admins in your game. You don't need to add yourself as long as you are the owner
  39.     --[[
  40.     Set up:
  41.     Admins = {
  42.         [SomeId] = AdminLevel,
  43.         [261] = 4,
  44.         [1] = 3,
  45.         [99] = 1,
  46.         [6] = 2,
  47.     }
  48.     --]]
  49.     Admins = {polikilopl}
  50.        
  51.     },
  52.     --This is for setting up certain ranks in a group being able to use certain levels of commands.
  53.     --You will need to have access to the roles in the group admin page for the rank ids.
  54.     --Each rank will default to the highest admin level
  55.     --[[
  56.     Set up:
  57.     GroupAdminLevels = {
  58.         [GroupId] = {
  59.             [RankId] = 2,
  60.             [RankId] = 3,
  61.             [RankId] = 4,
  62.         },
  63.         [1] = {
  64.             [10] = 1,
  65.             [15] = 5,
  66.         },
  67.         [12] = {
  68.             [100] = 1,
  69.             [150] = 5,
  70.         },
  71.         ... (You can add/remove groups)
  72.     }, 
  73.    
  74.     --]]
  75.     GroupAdminLevels = {
  76.        
  77.     },
  78.    
  79.    
  80.    
  81.     --Banned users is for preventing certain users from entering the game.
  82.     --Setting an id equal to true doesn't give a message, and a string is the ban message.
  83.     --[[
  84.     Set up:
  85.     BannedUsers = {
  86.         [UserId] = true, --Banned without a ban message
  87.         [UserId] = "Some Ban Message", --Bans with a ban message
  88.         [1] = "Banned for being ROBLOX",
  89.         [261] = true, --Too awesome to have a ban message
  90.     }
  91.     --]]
  92.     BannedUsers = {
  93.        
  94.     },
  95.    
  96.     --Below is for overriding the defaults levels
  97.     --If a value is nil, it will default to the default command level of the group
  98.     --If a value is a number, it will override the default command level of the group
  99.     --This can be useful to make an abusive command un-usable or make a useful command usable.
  100.     CommandLevelOverrides = {
  101.         BasicCommands = {
  102.             vote = nil,
  103.             pchat = nil,
  104.             track = nil,
  105.             untrack = nil,
  106.             chatlogs = nil,
  107.             batch = nil,
  108.             loop = nil,
  109.             m = nil,
  110.             h = nil,
  111.             pm = nil,
  112.             ph = nil,
  113.             sm = nil,
  114.             sh = nil,
  115.             clear = nil,
  116.             mute = nil,
  117.             unmute = nil,
  118.             crash = nil,
  119.             shutdown = nil,
  120.             countdown = nil,
  121.             age = nil,
  122.             refresh = nil,
  123.             clean = nil,
  124.             punish = nil,
  125.             respawn = nil,
  126.             team = nil,
  127.             tools = nil,
  128.             give = nil,
  129.             startergive = nil,
  130.             startertool = nil,
  131.             sword = nil,
  132.             atksword = nil,
  133.             removetools = nil,
  134.             resetstats = nil,
  135.             change = nil,
  136.             gear = nil,
  137.         },
  138.         BuildUtility = {
  139.             clearterrain = nil,
  140.             fixlighting = nil,
  141.             time = nil,
  142.             brightness = nil,
  143.             ambient = nil,
  144.             outdoorambient = nil,
  145.             shadowcolor = nil,
  146.             fogcolor = nil,
  147.             fogend = nil,
  148.             fogstart = nil,
  149.             outlines = nil,
  150.             shadows = nil,
  151.             btools = nil,
  152.             posterize = nil,
  153.             s = nil,
  154.             insert = nil,
  155.         },
  156.         UsefulFunCommands = {
  157.             name = nil,
  158.             unname = nil,
  159.             ff = nil,
  160.             unff = nil,
  161.             kill = nil,
  162.             damage = nil,
  163.             heal = nil,
  164.             health = nil,
  165.             god = nil,
  166.             ungod = nil,
  167.             walkspeed = nil,
  168.             place = nil,
  169.             tp = nil,
  170.             to = nil,
  171.             bring = nil,
  172.             flip = nil,
  173.             stun = nil,
  174.             unstun = nil,
  175.             jump = nil,
  176.             sit = nil,
  177.             unsit = nil,
  178.             buy = nil,
  179.             lock = nil,
  180.             unlock = nil,
  181.             clone = nil,
  182.             explode = nil,
  183.             view = nil,
  184.             jail = nil,
  185.             unjail = nil,
  186.             fling = nil,
  187.             grav = nil,
  188.             setgrav = nil,
  189.             fly = nil,
  190.             unfly = nil,
  191.             collide = nil, --NEW (May 28th)
  192.             uncollide = nil, --NEW (May 28th)
  193.         },
  194.         FunCommnads = {
  195.             removehats = nil,
  196.             play = nil,
  197.             pitch = nil,
  198.             volume = nil,
  199.             pause = nil,
  200.             resume = nil,
  201.             stop = nil,
  202.             blind = nil,
  203.             unblind = nil,
  204.             char = nil,
  205.             unchar = nil,
  206.             hat = nil,
  207.             disco = nil,
  208.             spin = nil,
  209.             unspin = nil,
  210.             freeze = nil,
  211.             thaw = nil,
  212.             invisible = nil,
  213.             visible = nil,
  214.             light = nil,
  215.             unlight = nil,
  216.             fire = nil,
  217.             unfire = nil,
  218.             smoke = nil,
  219.             unsmoke = nil,
  220.             sparkles = nil,
  221.             unsparkles = nil,
  222.             face = nil,
  223.             rocket = nil,
  224.             unrocket = nil,
  225.             vibrate = nil,
  226.             unvibrate = nil,
  227.         }
  228.     },
  229. }
  230.  
  231. --This is where the actual loading happens. Feel free to use this in another script
  232. --Doubt you will need to, but here it is.
  233.  
  234.  
  235. local Worked,Return = pcall(function() require(386507112)(script,Config) end)
  236. if not Worked then
  237.     warn("NEXUS ADMIN FAILED TO LOAD: "..tostring(Return))
  238. end
RAW Paste Data
Top