Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Note: This loader shouldn't be used compared to the model on the website
- __ __ _______ __ __ __ __ ________
- / \ / / / _____/ \ \ / / \ \ \ \ \ _____\
- / /\ \ / / / /____ \ \/ / \ \ \ \ \ \_____
- / / \ \ / / / _____/ / /\ \ \ \ \ \ \_____ \
- / / \ \/ / / /____ / / \ \ \ \__\ \ ____\ \
- /_/ \__/ /______/ /_/ \_\ \______\ \______\
- Nexus Admin
- Ranks (without changing config below):
- -1 New users, commands such as !commands, !fps, !usage, and not much else.
- 0 Debug commands. I (FromLegoUniverse) automatically give myself this so I can diagnose issues.
- 1 Moderators. No access to additional integrated commands, but by default given Build Utility and Basic
- 2 Admin. Access to kick and unbanning, and useful fun commands
- 3 Full Admin. Access to banning, and fun commands, can kick Admins.
- 4 Owner admin. Can kick/ban Full Admins and Admins.
- 5 Creator admin. Access to :admin and :unadmin. Can kick/ban Owner Admin and below. Game owner automatically gets this rank.
- --]]
- local Config = {
- DefaultAdminLevel = -1, --This makes it so everyone has the admin level of -1. (This is default)
- CommandPrefix = ":", --Prefix used by all included commands
- BuildUtilityLevel = 3, --Sets the default admin level of the build commands to 3
- BasicCommandsLevel = 3, --Sets the default admin level of the basic commands to 3
- UsefulFunCommandsLevel = 3, --Sets the default admin level of the useful fun commands to 3
- FunCommandsLevel = 4, --Sets the default admin level of the fun commands to 4
- Admins = {
- [261] = 3, --Sets the admin level of Shedletsky to 3
- [25691148] = 1, --Sets the admin level of TheNexusAvenger to 1
- [1] = 2, --Sets the admin level of ROBLOX to 2
- },
- GroupAdminLevels = {
- [901313] = { --For Innovation Security
- [150] = 3, --Rank of 150 or above gets admin level 3
- [200] = 3.1, --Rank of 200 or above get admin level 3.1; Can kick admin level of 3
- [240] = 5, --Rank of 240 or above gets admin level 5
- },
- [979242] = { --For RBXDev
- [1] = 1, --Rank of 1 or above gets admin level of 1
- }
- },
- BannedUsers = {
- [67088605] = true, --Bans NarbraWalters with no ban message
- [111187295] = "Being a noob", --Bans Narbra_Walters with the ban message of "Being a noob"
- },
- CommandLevelOverrides = {
- BasicCommands = {
- vote = nil,
- pchat = nil,
- track = nil,
- untrack = nil,
- chatlogs = nil,
- batch = nil,
- loop = 5, --Overrides the loop command to require admin level of 5
- m = nil,
- h = nil,
- pm = nil,
- ph = nil,
- sm = nil,
- sh = nil,
- clear = nil,
- mute = nil,
- unmute = nil,
- crash = nil,
- shutdown = nil,
- countdown = nil,
- age = nil,
- refresh = nil,
- clean = nil,
- punish = nil,
- respawn = nil,
- team = nil,
- tools = nil,
- give = nil,
- startergive = nil,
- startertool = nil,
- sword = nil,
- atksword = nil,
- removetools = nil,
- resetstats = nil,
- change = nil,
- gear = nil,
- },
- BuildUtility = {
- clearterrain = nil,
- fixlighting = nil,
- time = nil,
- brightness = nil,
- ambient = nil,
- outdoorambient = nil,
- shadowcolor = nil,
- fogcolor = nil,
- fogend = nil,
- fogstart = nil,
- outlines = 5, --Overrides the loop command to require admin level of 5
- shadows = nil,
- btools = nil,
- posterize = nil,
- s = nil,
- insert = nil,
- },
- UsefulFunCommands = {
- name = nil,
- unname = nil,
- ff = 2, --Overrides the loop command to require admin level of 2
- unff = 2, --Overrides the loop command to require admin level of 2
- kill = nil,
- damage = nil,
- heal = nil,
- health = nil,
- god = nil,
- ungod = nil,
- walkspeed = nil,
- place = 5, --Overrides the loop command to require admin level of 5
- tp = nil,
- to = nil,
- bring = nil,
- flip = nil,
- stun = nil,
- unstun = nil,
- jump = nil,
- sit = nil,
- unsit = nil,
- buy = 5, --Overrides the loop command to require admin level of 5
- lock = nil,
- unlock = nil,
- clone = nil,
- explode = nil,
- view = nil,
- jail = nil,
- unjail = nil,
- fling = nil,
- grav = nil,
- setgrav = nil,
- fly = nil,
- unfly = nil,
- freeze = nil,
- thaw = nil,
- },
- FunCommands = {
- removehats = nil,
- play = nil,
- pitch = nil,
- volume = nil,
- pause = nil,
- resume = nil,
- stop = nil,
- blind = nil,
- unblind = nil,
- char = nil,
- unchar = nil,
- hat = nil,
- disco = nil,
- spin = nil,
- unspin = nil,
- invisible = 3, --Overrides the loop command to require admin level of 3
- visible = 3, --Overrides the loop command to require admin level of 3
- light = 3, --Overrides the loop command to require admin level of 3
- unlight = 3, --Overrides the loop command to require admin level of 3
- fire = nil,
- unfire = nil,
- smoke = nil,
- unsmoke = nil,
- sparkles = nil,
- unsparkles = nil,
- face = nil,
- rocket = nil,
- unrocket = nil,
- vibrate = nil,
- unvibrate = nil,
- }
- },
- }
- local NexusAdmin_UseLocalVersion = game.ServerStorage:FindFirstChild("NexusAdmin_UseLocalVersion")
- if NexusAdmin_UseLocalVersion and NexusAdmin_UseLocalVersion.Value == true then --This is used in the test environment loading. No public utility.
- local Module = game.ServerScriptService:WaitForChild("MainModule")
- require(Module)(script,Config)
- else
- local Worked,Return = pcall(function() require(386507112)(script,Config) end)
- if not Worked then
- warn("NEXUS ADMIN FAILED TO LOAD: "..tostring(Return))
- end
- end
- return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement