Advertisement
Guest User

Admin script for roblox

a guest
Mar 1st, 2019
2,615
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.60 KB | None | 0 0
  1. --[[
  2.  
  3. ____ _
  4. | __ ) __ _ ___(_) ___
  5. | _ \ / _` / __| |/ __|
  6. | |_) | (_| \__ \ | (__
  7. |____/ \__,_|___/_|\___|
  8.  
  9. Admin Essentials 2.0
  10. Created by TheFurryFish
  11.  
  12. Instructions:
  13. Place this Model in
  14. "ServerScriptService"
  15.  
  16. Note:
  17. You can remove the Model and
  18. place the script itself in
  19. ServerScriptService if you wish.
  20.  
  21. There is more information regarding
  22. this admin script in the description
  23. of the actual model if you are interested.
  24.  
  25. If you are confused as to how to configure this,
  26. please scroll to the bottom of this script
  27. for examples.
  28.  
  29. As the creator of the game, you are automatically
  30. owner-admined, so you do not have to add yourself
  31. to any of the tables below.
  32.  
  33. --]]
  34.  
  35. -------------------
  36. -- Configuration --
  37. -------------------
  38.  
  39. local Configuration = {
  40. ['Loader ID'] = 563619835,
  41.  
  42. --[[
  43.  
  44. Example:
  45.  
  46. ['Super Admins'] = {
  47. ["1"] = "ROBLOX",
  48. ["2"] = "John Doe",
  49. ["3"] = "Jane Doe",
  50. },
  51.  
  52. ["1"] is the User ID
  53. "ROBLOX" is their Username
  54.  
  55. This format is the same for
  56. Super Admins, Admins, Mods,
  57. and Banned.
  58.  
  59. --]]
  60.  
  61. ['Super Admins'] = {
  62.  
  63.  
  64. },
  65.  
  66. ['Admins'] = {
  67.  
  68. },
  69.  
  70. ['Mods'] = {
  71.  
  72. },
  73.  
  74. ['Banned'] = {
  75. ["1"] = "ROBLOX",
  76.  
  77. },
  78.  
  79. ['Group Configuration'] = {
  80. {
  81. ['Group ID'] = 0,
  82. ['Group Rank'] = 0,
  83. ['Tolerance Type'] = '>=',
  84. ['Admin Level'] = 0,
  85. },
  86. },
  87.  
  88. ['Command Configuration'] = {
  89. ['fly'] = {
  90. ['Permission'] = 1,
  91. },
  92. ['unfly'] = {
  93. ['Permission'] = 1,
  94. },
  95. },
  96.  
  97. ['Prefix'] = (':'), -- The prefix to the admin, i.e :cmds or :sm hi
  98. ['Kick Reason'] = ('You have been kicked from the server.'), -- Displayed to people that are kicked.
  99. ['Ban Reason'] = ('You have been banned from the game.'), -- Displayed to people that are banned.
  100. ['Shutdown Reason'] = ('This server is shutting down..\nTry joining a different server!'), -- Displayed to people when the server is shut down.
  101. ['Server Message'] = ('Server Message'), -- Displayed in the :sm command's title.
  102. ['Server Lock Reason'] = ('The server is locked.'), -- Displayed to people being kicked that try to enter a locked server.
  103. ['Trello'] = false, -- Use trello? HttpService must be enabled.
  104. ['Trello Board'] = (''), -- Trello board ID.
  105. ['Trello App Key'] = (''), -- Private trello application key.
  106. ['Trello Token'] = (''), -- Private trello token.
  107. ['Creator Debugging'] = true, -- Allows the creator to debug potential issues with the admin.
  108. ['Donor Perks'] = true, -- Gives people who purchase an admin donation the ability to cape, put hats on, etc.
  109. ['Public Commands'] = true, -- Will people that are not admin be able to say :cmds, or !clean?
  110. ['Auto Clean'] = true, -- Will hats and gear automatically be cleaned up every so often?
  111. ['System Color'] = Color3.new(31/255,31/255,31/255), -- Color of the admin's guis.
  112. ['Tools Location'] = game.ServerStorage, -- Where the :tools and :give command will get tools from.
  113. ['Command Confirmation'] = false, -- Validates certain commands like :Ban all, or :PBan all.
  114. ['Datastore Key'] = ('BAE_#$DGF') -- What cape data, ban data, etc. is stored under. Changing will wipe it.
  115. }
  116.  
  117. --------------------------
  118. -- End of Configuration --
  119. --------------------------
  120.  
  121. ------------------
  122. -- Help Section --
  123. ------------------
  124.  
  125. --[[
  126.  
  127. * Trello Bans Help
  128.  
  129. Steps to follow:
  130. 1) Make sure HttpService is enabled, to do so, paste
  131. "game:GetService('HttpService').HttpEnabled = true" into the command bar.
  132. 2) Make sure Trello Bans is enabled
  133. 3) Make sure the trello board is public
  134. 4) Paste the trello board ID into the Trello Board ID option
  135. 5) On the trello board, create a list called "Ban List"
  136. 6) Add bans
  137.  
  138. Note that the ban format for the name of the card is:
  139. Shedletsky:261
  140.  
  141. -----------------------------------------------------------------------------
  142.  
  143. * Group Admin Help:
  144. Types of admin
  145. 1 = Mod
  146. 2 = Admin
  147. 3 = Super Admin
  148.  
  149. The empty table should appear as this:
  150. ['Group Configuration'] = {
  151. {
  152. ['Group ID'] = 0,
  153. ['Group Rank'] = 0,
  154. ['Tolerance Type'] = '>=',
  155. ['Admin Level'] = 0,
  156. },
  157. },
  158.  
  159. To add a group, create another table inside of the existing one;
  160. this should look like this:
  161. ['Group Configuration'] = {
  162. {
  163. ['Group ID'] = 0,
  164. ['Group Rank'] = 0,
  165. ['Tolerance Type'] = '>=',
  166. ['Admin Level'] = 0,
  167. },
  168. {
  169. ['Group ID'] = 0,
  170. ['Group Rank'] = 0,
  171. ['Tolerance Type'] = '>=',
  172. ['Admin Level'] = 0,
  173. },
  174. },
  175.  
  176. Now add the group id into it, followed by a comma, followed by the group rank,
  177. - followed by the level of admin those users should receive.
  178.  
  179. An example of a finished product is:
  180. {
  181. ['Group ID'] = 950346,
  182. ['Group Rank'] = 20,
  183. ['Tolerance Type'] = '>=',
  184. ['Admin Level'] = 2,
  185. },
  186.  
  187. That will give people in the group id "950346", whom are at rank 20 or higher, level 2 admin,
  188. - which is regular admin.
  189.  
  190. ------------------------------------------------------------------------------
  191.  
  192. * Command Configuration Help
  193.  
  194. ['Command Configuration'] = {
  195. ['fly'] = {
  196. ['Permission'] = 1,
  197. },
  198. },
  199.  
  200. ['fly'] is the command being altered or changed.
  201. ['Permission'] is the property of the command being changed.
  202.  
  203. There are 5 levels of admin,
  204. 0 = Everyone
  205. 1 = Mod
  206. 2 = Admin
  207. 3 = Superadmin
  208. 4 = Game Creator
  209.  
  210. If you only wanted admins to fly, change
  211. the 1 to a 2.
  212.  
  213. ['Command Configuration'] = {
  214. ['fly'] = {
  215. ['Permission'] = 2,
  216. },
  217. ['unfly'] = {
  218. ['Permission'] = 2,
  219. },
  220. },
  221.  
  222. --]]
  223.  
  224. ----------------------------
  225. -- Configuration Examples --
  226. ----------------------------
  227.  
  228. --[[
  229.  
  230. Note that if you have multiple
  231. admins, mods, banned, etc., you
  232. must have a comma after the previous
  233. entry.
  234.  
  235. local Configuration = {
  236. ['Loader ID'] = script.MainModule,
  237.  
  238. ['Super Admins'] = {
  239. ['261'] = "Shedletsky",
  240. },
  241.  
  242. ['Admins'] = {
  243. ['261'] = "Shedletsky",
  244. },
  245.  
  246. ['Mods'] = {
  247. ['261'] = "Shedletsky"
  248. },
  249.  
  250. ['Banned'] = {
  251. ['261'] = "Shedletsky",
  252. },
  253.  
  254. ['Group Configuration'] = {
  255. {
  256. ['Group ID'] = 0,
  257. ['Group Rank'] = 0,
  258. ['Tolerance Type'] = '>=',
  259. ['Admin Level'] = 0,
  260. },
  261. },
  262.  
  263. ['Command Configuration'] = {
  264. ['fly'] = {
  265. ['Permission'] = 1,
  266. },
  267. ['unfly'] = {
  268. ['Permission'] = 1,
  269. },
  270. },
  271.  
  272. ['Prefix'] = (':'),
  273. ['Kick Reason'] = ('You have been kicked from the server.'),
  274. ['Ban Reason'] = ('You have been banned from the game.'),
  275. ['Shutdown Reason'] = ('This server is shutting down..\nTry joining a different server!'),
  276. ['Server Message'] = ('Server Message'),
  277. ['Server Lock Reason'] = ('The server is locked.'),
  278. ['Trello'] = false,
  279. ['Trello Board'] = (''),
  280. ['Trello App Key'] = (''),
  281. ['Trello Token'] = (''),
  282. ['Creator Debugging'] = true,
  283. ['Donor Perks'] = true,
  284. ['Public Commands'] = true,
  285. ['Auto Clean'] = true,
  286. ['System Color'] = Color3.new(31/255,31/255,31/255),
  287. ['Tools Location'] = game.ServerStorage,
  288. ['Command Confirmation'] = false, -- Validates certain commands like :Ban all, or :PBan all.
  289. ['Datastore Key'] = ('BAE_#$DGF') -- What cape data, ban data, etc. is stored under. Changing will wipe it.
  290. }
  291.  
  292. --]]
  293.  
  294. ---------------------
  295. -- End of Examples --
  296. ---------------------
  297.  
  298. local Plugins
  299. if script:FindFirstChild('Plugins') and #(script:FindFirstChild('Plugins'):GetChildren()) >= 1 then
  300. Plugins = script:FindFirstChild('Plugins')
  301. end
  302.  
  303. if script.Parent ~= game:GetService('ServerScriptService') then
  304. script.Parent = game:GetService('ServerScriptService')
  305. end
  306.  
  307. require(Configuration['Loader ID'])(Plugins,Configuration)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement