Advertisement
ExecutorForALLdomain

Untitled

Feb 20th, 2024 (edited)
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.04 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local HDAdmin = Instance.new("Folder")
  7. local CustomFeatures = Instance.new("Configuration")
  8. local Server = Instance.new("Folder")
  9. local Assets = Instance.new("Folder")
  10. local Modules = Instance.new("Folder")
  11. local Morphs = Instance.new("Folder")
  12. local Tools = Instance.new("Folder")
  13. local Client = Instance.new("Folder")
  14. local StarterKit = Instance.new("Folder")
  15. local Assets_2 = Instance.new("Folder")
  16. local Audio = Instance.new("Folder")
  17. local Modules_2 = Instance.new("Folder")
  18. local SharedModules = Instance.new("Folder")
  19. local Signals = Instance.new("Folder")
  20.  
  21. --Properties:
  22.  
  23. HDAdmin.Name = "HD Admin"
  24. HDAdmin.Parent = game.Workspace
  25.  
  26. CustomFeatures.Name = "CustomFeatures"
  27. CustomFeatures.Parent = HDAdmin
  28.  
  29. Server.Name = "Server"
  30. Server.Parent = CustomFeatures
  31.  
  32. Assets.Name = "Assets"
  33. Assets.Parent = Server
  34.  
  35. Modules.Name = "Modules"
  36. Modules.Parent = Server
  37.  
  38. Morphs.Name = "Morphs"
  39. Morphs.Parent = Server
  40.  
  41. Tools.Name = "Tools"
  42. Tools.Parent = Server
  43.  
  44. Client.Name = "Client"
  45. Client.Parent = CustomFeatures
  46.  
  47. StarterKit.Name = "StarterKit"
  48. StarterKit.Parent = Client
  49.  
  50. Assets_2.Name = "Assets"
  51. Assets_2.Parent = Client
  52.  
  53. Audio.Name = "Audio"
  54. Audio.Parent = Client
  55.  
  56. Modules_2.Name = "Modules"
  57. Modules_2.Parent = Client
  58.  
  59. SharedModules.Name = "SharedModules"
  60. SharedModules.Parent = Client
  61.  
  62. Signals.Name = "Signals"
  63. Signals.Parent = Client
  64.  
  65. -- Module Scripts:
  66.  
  67. local fake_module_scripts = {}
  68.  
  69. do -- HDAdmin.Settings
  70. local script = Instance.new('ModuleScript', HDAdmin)
  71. script.Name = "Settings"
  72. local function module_script()
  73. --[[
  74.  
  75. --------------| ABOUT RANKS |--------------
  76.  
  77. RANK | DEFAULT NAME | COMMANDS | EXTRA DETAILS
  78. -------------------------------------------------------------------------------------------------------------------
  79. 5 | Owner | All | Is automtically set. The Owner has full access to commands and features.
  80. -------------------------------------------------------------------------------------------------------------------
  81. 4 | HeadAdmin | 1,2,3,4 |
  82. 3 | Admin | 1,2,3 |
  83. 2 | Mod | 1,2 | Can only use commands on one person at a time.
  84. 1 | VIP | 1 | Can only use commands on theirself.
  85. -------------------------------------------------------------------------------------------------------------------
  86. 0 | NonAdmin | 0 | The default rank. Players are limited to basic features.
  87.  
  88.  
  89.  
  90.  
  91. --------------| SETUP RANKS |-------------- ]] return{
  92.  
  93. -- RANK, RANK NAMES & SPECIFIC USERS
  94. Ranks = {
  95. {5, "Owner", };
  96. {4, "HeadAdmin", {"",0}, };
  97. {3, "Admin", {"",0}, };
  98. {2, "Mod", {"",0}, };
  99. {1, "VIP", {"",0}, };
  100. {0, "NonAdmin", };
  101. };
  102.  
  103.  
  104.  
  105. -- GAMEPASSES
  106. Gamepasses = {
  107. [0] = "VIP";
  108. };
  109.  
  110.  
  111. -- ASSETS
  112. Assets = {
  113. [0] = "VIP";
  114. };
  115.  
  116.  
  117. -- GROUPS
  118. Groups = {
  119. [0] = {
  120. [254] = "Admin";
  121. [1] = "VIP";
  122. };
  123. };
  124.  
  125.  
  126. -- FRIENDS
  127. Friends = "NonAdmin";
  128.  
  129.  
  130. -- VIP SERVER OWNER
  131. VipServerOwner = "NonAdmin";
  132.  
  133.  
  134. -- FREE ADMIN
  135. FreeAdmin = "NonAdmin";
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. --------------| BANLAND |--------------
  145. Banned = {"",0};
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. --------------| SYSTEM SETTINGS |--------------
  155. Prefix = ";"; -- The character you use before every command (e.g. ';jump me').
  156. SplitKey = " "; -- The character inbetween command arguments (e.g. setting it to '/' would change ';jump me' to ';jump/me').
  157. BatchKey = ""; -- The character inbetween batch commands (e.g. setting it to '|' would change ';jump me ;fire me ;smoke me' to ';jump me | ;fire me | ;smoke me'
  158. QualifierBatchKey = ","; -- The character used to split up qualifiers (e.g. ;jump player1,player2,player3)
  159.  
  160. Theme = "Blue"; -- The default UI theme.
  161. NoticeSoundId = 2865227271; -- The SoundId for notices.
  162. NoticeVolume = 0.1; -- The Volume for notices.
  163. NoticePitch = 1; -- The Pitch/PlaybackSpeed for notices.
  164. ErrorSoundId = 2865228021; -- The SoundId for error notifications.
  165. ErrorVolume = 0.1; -- The Volume for error notifications.
  166. ErrorPitch = 1; -- The Pitch/PlaybackSpeed for error notifications.
  167. AlertSoundId = 9161622880; -- The SoundId for alerts.
  168. AlertVolume = 0.5; -- The Volume for alerts.
  169. AlertPitch = 1; -- The Pitch/PlaybackSpeed for alerts.
  170.  
  171. WelcomeBadgeId = 0; -- Award new players a badge, such as 'Welcome to the game!'. Set to 0 for no badge.
  172.  
  173. CommandDebounce = true; -- Wait until the command effect is over to use again. Helps to limit abuse & lag. Set to 'false' to disable.
  174. SaveRank = true; -- Saves a player's rank in the server they received it. (e.g. ;rank plrName rank). Use ';permRank plrName rank' to permanently save a rank. Set to 'false' to disable.
  175. LoopCommands = 3; -- The minimum rank required to use LoopCommands.
  176. MusicList = {}; -- Songs which automatically appear in a user's radio. Type '!radio' to display the radio.
  177.  
  178. ThemeColors = { -- The colours players can set their HD Admin UI (in the 'Settings' menu). | Format: {ThemeName, ThemeColor3Value};
  179. {"Red", Color3.fromRGB(150, 0, 0), };
  180. {"Orange", Color3.fromRGB(150, 75, 0), };
  181. {"Brown", Color3.fromRGB(120, 80, 30), };
  182. {"Yellow", Color3.fromRGB(130, 120, 0), };
  183. {"Green", Color3.fromRGB(0, 120, 0), };
  184. {"Blue", Color3.fromRGB(0, 100, 150), };
  185. {"Purple", Color3.fromRGB(100, 0, 150), };
  186. {"Pink", Color3.fromRGB(150, 0, 100), };
  187. {"Black", Color3.fromRGB(60, 60, 60), };
  188. };
  189.  
  190. Colors = { -- The colours for ChatColors and command arguments. | Format: {"ShortName", "FullName", Color3Value};
  191. {"r", "Red", Color3.fromRGB(255, 0, 0) };
  192. {"o", "Orange", Color3.fromRGB(250, 100, 0) };
  193. {"y", "Yellow", Color3.fromRGB(255, 255, 0) };
  194. {"g", "Green" , Color3.fromRGB(0, 255, 0) };
  195. {"dg", "DarkGreen" , Color3.fromRGB(0, 125, 0) };
  196. {"b", "Blue", Color3.fromRGB(0, 255, 255) };
  197. {"db", "DarkBlue", Color3.fromRGB(0, 50, 255) };
  198. {"p", "Purple", Color3.fromRGB(150, 0, 255) };
  199. {"pk", "Pink", Color3.fromRGB(255, 85, 185) };
  200. {"bk", "Black", Color3.fromRGB(0, 0, 0) };
  201. {"w", "White", Color3.fromRGB(255, 255, 255) };
  202. };
  203. ChatColors = { -- The colour a player's chat will appear depending on their rank. '["Owner"] = "Yellow";' makes the owner's chat yellow.
  204. [5] = "Yellow";
  205. };
  206.  
  207. Cmdbar = 1; -- The minimum rank required to use the Cmdbar.
  208. Cmdbar2 = 3; -- The minimum rank required to use the Cmdbar2.
  209. ViewBanland = 3; -- The minimum rank required to view the banland.
  210. OnlyShowUsableCommands = false; -- Only display commands equal to or below the user's rank on the Commands page.
  211. RankRequiredToViewPage = { -- || The pages on the main menu ||
  212. ["Commands"] = 0;
  213. ["Admin"] = 0;
  214. ["Settings"] = 0;
  215. };
  216. RankRequiredToViewRank = { -- || The rank categories on the 'Ranks' subPage under Admin ||
  217. ["Owner"] = 0;
  218. ["HeadAdmin"] = 0;
  219. ["Admin"] = 0;
  220. ["Mod"] = 0;
  221. ["VIP"] = 0;
  222. };
  223. RankRequiredToViewRankType = { -- || The collection of loader-rank-rewarders on the 'Ranks' subPage under Admin ||
  224. ["Owner"] = 0;
  225. ["SpecificUsers"] = 5;
  226. ["Gamepasses"] = 0;
  227. ["Assets"] = 0;
  228. ["Groups"] = 0;
  229. ["Friends"] = 0;
  230. ["FreeAdmin"] = 0;
  231. ["VipServerOwner"] = 0;
  232. };
  233. RankRequiredToViewIcon = 0;
  234.  
  235. WelcomeRankNotice = true; -- The 'You're a [rankName]' notice that appears when you join the game. Set to false to disable.
  236. WelcomeDonorNotice = true; -- The 'You're a Donor' notice that appears when you join the game. Set to false to disable.
  237. WarnIncorrectPrefix = true; -- Warn the user if using the wrong prefix | "Invalid prefix! Try using [correctPrefix][commandName] instead!"
  238. DisableAllNotices = false; -- Set to true to disable all HD Admin notices.
  239.  
  240. ScaleLimit = 4; -- The maximum size players with a rank lower than 'IgnoreScaleLimit' can scale theirself. For example, players will be limited to ;size me 4 (if limit is 4) - any number above is blocked.
  241. IgnoreScaleLimit = 3; -- Any ranks equal or above this value will ignore 'ScaleLimit'
  242. CommandLimits = { -- Enables you to set limits for commands which have a number argument. Ranks equal to or higher than 'IgnoreLimit' will not be affected by Limit.
  243. ["fly"] = {
  244. Limit = 10000;
  245. IgnoreLimit = 3;
  246. };
  247. ["fly2"] = {
  248. Limit = 10000;
  249. IgnoreLimit = 3;
  250. };
  251. ["noclip"] = {
  252. Limit = 10000;
  253. IgnoreLimit = 3;
  254. };
  255. ["noclip2"] = {
  256. Limit = 10000;
  257. IgnoreLimit = 3;
  258. };
  259. ["speed"] = {
  260. Limit = 10000;
  261. IgnoreLimit = 3;
  262. };
  263. ["jumpPower"] = {
  264. Limit = 10000;
  265. IgnoreLimit = 3;
  266. };
  267. };
  268.  
  269. VIPServerCommandBlacklist = {"permRank", "permBan", "globalAnnouncement"}; -- Commands players are probihited from using in VIP Servers.
  270. GearBlacklist = {67798397}; -- The IDs of gear items to block when using the ;gear command.
  271. IgnoreGearBlacklist = 4; -- The minimum rank required to ignore the gear blacklist.
  272.  
  273. PlayerDataStoreVersion = "V1.0"; -- Data about the player (i.e. permRanks, custom settings, etc). Changing the Version name will reset all PlayerData.
  274. SystemDataStoreVersion = "V1.0"; -- Data about the game (i.e. the banland, universal message system, etc). Changing the Version name will reset all SystemData.
  275.  
  276. CoreNotices = { -- Modify core notices. You can find a table of all CoreNotices under [MainModule > Client > SharedModules > CoreNotices]
  277. --NoticeName = NoticeDetails;
  278. };
  279.  
  280.  
  281.  
  282.  
  283. --------------| MODIFY COMMANDS |--------------
  284. SetCommandRankByName = {
  285. --["jump"] = "VIP";
  286. };
  287. SetCommandRankByTag = {
  288. --["abusive"] = "Admin";
  289. };
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298. };
  299. end
  300. fake_module_scripts[script] = module_script
  301. end
  302. do -- Modules.Commands
  303. local script = Instance.new('ModuleScript', Modules)
  304. script.Name = "Commands"
  305. local function module_script()
  306. -- << RETRIEVE FRAMEWORK >>
  307. local main = _G.HDAdminMain
  308. local settings = main.settings
  309.  
  310.  
  311.  
  312. -- << COMMANDS >>
  313. local module = {
  314.  
  315. -----------------------------------
  316. {
  317. Name = "";
  318. Aliases = {};
  319. Prefixes = {settings.Prefix};
  320. Rank = 1;
  321. RankLock = false;
  322. Loopable = false;
  323. Tags = {};
  324. Description = "";
  325. Contributors = {};
  326. --
  327. Args = {};
  328. Function = function(speaker, args)
  329.  
  330. end;
  331. UnFunction = function(speaker, args)
  332.  
  333. end;
  334. --
  335. };
  336.  
  337.  
  338.  
  339.  
  340. -----------------------------------
  341. {
  342. Name = "";
  343. Aliases = {};
  344. Prefixes = {settings.Prefix};
  345. Rank = 1;
  346. RankLock = false;
  347. Loopable = false;
  348. Tags = {};
  349. Description = "";
  350. Contributors = {};
  351. --
  352. Args = {};
  353. --[[
  354. ClientCommand = true;
  355. FireAllClients = true;
  356. BlockWhenPunished = true;
  357. PreFunction = function(speaker, args)
  358.  
  359. end;
  360. Function = function(speaker, args)
  361. wait(1)
  362. end;
  363. --]]
  364. --
  365. };
  366.  
  367.  
  368.  
  369.  
  370. -----------------------------------
  371.  
  372. };
  373.  
  374.  
  375.  
  376. return module
  377.  
  378. end
  379. fake_module_scripts[script] = module_script
  380. end
  381. do -- Modules_2.ClientCommands
  382. local script = Instance.new('ModuleScript', Modules_2)
  383. script.Name = "ClientCommands"
  384. local function module_script()
  385. -- << RETRIEVE FRAMEWORK >>
  386. local main = _G.HDAdminMain
  387.  
  388.  
  389.  
  390. -- << CLIENT COMMANDS >>
  391. local module = {
  392.  
  393. ----------------------------------------------------------------------
  394. ["commandName1"] = {
  395. Function = function(speaker, args)
  396.  
  397. end;
  398. };
  399.  
  400.  
  401.  
  402.  
  403. ----------------------------------------------------------------------
  404. ["commandName2"] = {
  405. Function = function(speaker, args)
  406.  
  407. end;
  408. };
  409.  
  410.  
  411.  
  412.  
  413. ----------------------------------------------------------------------
  414.  
  415. };
  416.  
  417.  
  418.  
  419. -- << SETUP >>
  420. for commandName, command in pairs(module) do
  421. command.Name = commandName
  422. end
  423.  
  424.  
  425.  
  426. return module
  427. end
  428. fake_module_scripts[script] = module_script
  429. end
  430. do -- SharedModules.Events
  431. local script = Instance.new('ModuleScript', SharedModules)
  432. script.Name = "Events"
  433. local function module_script()
  434. -- << RETRIEVE FRAMEWORK >>
  435. local main = _G.HDAdminMain
  436.  
  437.  
  438.  
  439. -- << EVENTS >>
  440. local module = {
  441.  
  442. ----------------------------------------------------------------------
  443. ["EventName"] = function(bindable, parent, ...)
  444.  
  445. end;
  446.  
  447.  
  448.  
  449.  
  450. ----------------------------------------------------------------------
  451. ["EventName"] = function(bindable, parent, ...)
  452.  
  453. end;
  454.  
  455.  
  456.  
  457.  
  458. ----------------------------------------------------------------------
  459.  
  460. };
  461.  
  462.  
  463.  
  464. return module
  465. end
  466. fake_module_scripts[script] = module_script
  467. end
  468.  
  469.  
  470. -- Scripts:
  471.  
  472. local function QOCVFZO_fake_script() -- HDAdmin.About
  473. local script = Instance.new('Script', HDAdmin)
  474. local req = require
  475. local require = function(obj)
  476. local fake = fake_module_scripts[obj]
  477. if fake then
  478. return fake()
  479. end
  480. return req(obj)
  481. end
  482.  
  483. --[[
  484.  
  485. For information on how to setup and use HD Admin, visit:
  486.  
  487. https://devforum.roblox.com/t/HD/216819
  488.  
  489. --]]
  490. end
  491. coroutine.wrap(QOCVFZO_fake_script)()
  492. local function XHGH_fake_script() -- nil.Loader
  493. local script = Instance.new('Script', nil)
  494. local req = require
  495. local require = function(obj)
  496. local fake = fake_module_scripts[obj]
  497. if fake then
  498. return fake()
  499. end
  500. return req(obj)
  501. end
  502.  
  503. --[[
  504. This loads HD Admin into your game.
  505.  
  506. Require the 'HD Admin MainModule' by the HD Admin group for automatic updates.
  507.  
  508. You can view the HD Admin Main Module here:
  509. https://www.roblox.com/library/3239236979/HD
  510.  
  511. --]]
  512.  
  513. local loaderFolder = script.Parent.Parent
  514. local mainModule = require(3239236979)
  515. mainModule:Initialize(loaderFolder)
  516. loaderFolder:Destroy()
  517. end
  518.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement