Advertisement
Guest User

Nexus Admin SCRIPT BUILDER

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