Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local HDAdmin = Instance.new("Folder")
- local CustomFeatures = Instance.new("Configuration")
- local Server = Instance.new("Folder")
- local Assets = Instance.new("Folder")
- local Modules = Instance.new("Folder")
- local Morphs = Instance.new("Folder")
- local Tools = Instance.new("Folder")
- local Client = Instance.new("Folder")
- local StarterKit = Instance.new("Folder")
- local Assets_2 = Instance.new("Folder")
- local Audio = Instance.new("Folder")
- local Modules_2 = Instance.new("Folder")
- local SharedModules = Instance.new("Folder")
- local Signals = Instance.new("Folder")
- --Properties:
- HDAdmin.Name = "HD Admin"
- HDAdmin.Parent = game.Workspace
- CustomFeatures.Name = "CustomFeatures"
- CustomFeatures.Parent = HDAdmin
- Server.Name = "Server"
- Server.Parent = CustomFeatures
- Assets.Name = "Assets"
- Assets.Parent = Server
- Modules.Name = "Modules"
- Modules.Parent = Server
- Morphs.Name = "Morphs"
- Morphs.Parent = Server
- Tools.Name = "Tools"
- Tools.Parent = Server
- Client.Name = "Client"
- Client.Parent = CustomFeatures
- StarterKit.Name = "StarterKit"
- StarterKit.Parent = Client
- Assets_2.Name = "Assets"
- Assets_2.Parent = Client
- Audio.Name = "Audio"
- Audio.Parent = Client
- Modules_2.Name = "Modules"
- Modules_2.Parent = Client
- SharedModules.Name = "SharedModules"
- SharedModules.Parent = Client
- Signals.Name = "Signals"
- Signals.Parent = Client
- -- Module Scripts:
- local fake_module_scripts = {}
- do -- HDAdmin.Settings
- local script = Instance.new('ModuleScript', HDAdmin)
- script.Name = "Settings"
- local function module_script()
- --[[
- --------------| ABOUT RANKS |--------------
- RANK | DEFAULT NAME | COMMANDS | EXTRA DETAILS
- -------------------------------------------------------------------------------------------------------------------
- 5 | Owner | All | Is automtically set. The Owner has full access to commands and features.
- -------------------------------------------------------------------------------------------------------------------
- 4 | HeadAdmin | 1,2,3,4 |
- 3 | Admin | 1,2,3 |
- 2 | Mod | 1,2 | Can only use commands on one person at a time.
- 1 | VIP | 1 | Can only use commands on theirself.
- -------------------------------------------------------------------------------------------------------------------
- 0 | NonAdmin | 0 | The default rank. Players are limited to basic features.
- --------------| SETUP RANKS |-------------- ]] return{
- -- RANK, RANK NAMES & SPECIFIC USERS
- Ranks = {
- {5, "Owner", };
- {4, "HeadAdmin", {"",0}, };
- {3, "Admin", {"",0}, };
- {2, "Mod", {"",0}, };
- {1, "VIP", {"",0}, };
- {0, "NonAdmin", };
- };
- -- GAMEPASSES
- Gamepasses = {
- [0] = "VIP";
- };
- -- ASSETS
- Assets = {
- [0] = "VIP";
- };
- -- GROUPS
- Groups = {
- [0] = {
- [254] = "Admin";
- [1] = "VIP";
- };
- };
- -- FRIENDS
- Friends = "NonAdmin";
- -- VIP SERVER OWNER
- VipServerOwner = "NonAdmin";
- -- FREE ADMIN
- FreeAdmin = "NonAdmin";
- --------------| BANLAND |--------------
- Banned = {"",0};
- --------------| SYSTEM SETTINGS |--------------
- Prefix = ";"; -- The character you use before every command (e.g. ';jump me').
- SplitKey = " "; -- The character inbetween command arguments (e.g. setting it to '/' would change ';jump me' to ';jump/me').
- 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'
- QualifierBatchKey = ","; -- The character used to split up qualifiers (e.g. ;jump player1,player2,player3)
- Theme = "Blue"; -- The default UI theme.
- NoticeSoundId = 2865227271; -- The SoundId for notices.
- NoticeVolume = 0.1; -- The Volume for notices.
- NoticePitch = 1; -- The Pitch/PlaybackSpeed for notices.
- ErrorSoundId = 2865228021; -- The SoundId for error notifications.
- ErrorVolume = 0.1; -- The Volume for error notifications.
- ErrorPitch = 1; -- The Pitch/PlaybackSpeed for error notifications.
- AlertSoundId = 9161622880; -- The SoundId for alerts.
- AlertVolume = 0.5; -- The Volume for alerts.
- AlertPitch = 1; -- The Pitch/PlaybackSpeed for alerts.
- WelcomeBadgeId = 0; -- Award new players a badge, such as 'Welcome to the game!'. Set to 0 for no badge.
- CommandDebounce = true; -- Wait until the command effect is over to use again. Helps to limit abuse & lag. Set to 'false' to disable.
- 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.
- LoopCommands = 3; -- The minimum rank required to use LoopCommands.
- MusicList = {}; -- Songs which automatically appear in a user's radio. Type '!radio' to display the radio.
- ThemeColors = { -- The colours players can set their HD Admin UI (in the 'Settings' menu). | Format: {ThemeName, ThemeColor3Value};
- {"Red", Color3.fromRGB(150, 0, 0), };
- {"Orange", Color3.fromRGB(150, 75, 0), };
- {"Brown", Color3.fromRGB(120, 80, 30), };
- {"Yellow", Color3.fromRGB(130, 120, 0), };
- {"Green", Color3.fromRGB(0, 120, 0), };
- {"Blue", Color3.fromRGB(0, 100, 150), };
- {"Purple", Color3.fromRGB(100, 0, 150), };
- {"Pink", Color3.fromRGB(150, 0, 100), };
- {"Black", Color3.fromRGB(60, 60, 60), };
- };
- Colors = { -- The colours for ChatColors and command arguments. | Format: {"ShortName", "FullName", Color3Value};
- {"r", "Red", Color3.fromRGB(255, 0, 0) };
- {"o", "Orange", Color3.fromRGB(250, 100, 0) };
- {"y", "Yellow", Color3.fromRGB(255, 255, 0) };
- {"g", "Green" , Color3.fromRGB(0, 255, 0) };
- {"dg", "DarkGreen" , Color3.fromRGB(0, 125, 0) };
- {"b", "Blue", Color3.fromRGB(0, 255, 255) };
- {"db", "DarkBlue", Color3.fromRGB(0, 50, 255) };
- {"p", "Purple", Color3.fromRGB(150, 0, 255) };
- {"pk", "Pink", Color3.fromRGB(255, 85, 185) };
- {"bk", "Black", Color3.fromRGB(0, 0, 0) };
- {"w", "White", Color3.fromRGB(255, 255, 255) };
- };
- ChatColors = { -- The colour a player's chat will appear depending on their rank. '["Owner"] = "Yellow";' makes the owner's chat yellow.
- [5] = "Yellow";
- };
- Cmdbar = 1; -- The minimum rank required to use the Cmdbar.
- Cmdbar2 = 3; -- The minimum rank required to use the Cmdbar2.
- ViewBanland = 3; -- The minimum rank required to view the banland.
- OnlyShowUsableCommands = false; -- Only display commands equal to or below the user's rank on the Commands page.
- RankRequiredToViewPage = { -- || The pages on the main menu ||
- ["Commands"] = 0;
- ["Admin"] = 0;
- ["Settings"] = 0;
- };
- RankRequiredToViewRank = { -- || The rank categories on the 'Ranks' subPage under Admin ||
- ["Owner"] = 0;
- ["HeadAdmin"] = 0;
- ["Admin"] = 0;
- ["Mod"] = 0;
- ["VIP"] = 0;
- };
- RankRequiredToViewRankType = { -- || The collection of loader-rank-rewarders on the 'Ranks' subPage under Admin ||
- ["Owner"] = 0;
- ["SpecificUsers"] = 5;
- ["Gamepasses"] = 0;
- ["Assets"] = 0;
- ["Groups"] = 0;
- ["Friends"] = 0;
- ["FreeAdmin"] = 0;
- ["VipServerOwner"] = 0;
- };
- RankRequiredToViewIcon = 0;
- WelcomeRankNotice = true; -- The 'You're a [rankName]' notice that appears when you join the game. Set to false to disable.
- WelcomeDonorNotice = true; -- The 'You're a Donor' notice that appears when you join the game. Set to false to disable.
- WarnIncorrectPrefix = true; -- Warn the user if using the wrong prefix | "Invalid prefix! Try using [correctPrefix][commandName] instead!"
- DisableAllNotices = false; -- Set to true to disable all HD Admin notices.
- 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.
- IgnoreScaleLimit = 3; -- Any ranks equal or above this value will ignore 'ScaleLimit'
- 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.
- ["fly"] = {
- Limit = 10000;
- IgnoreLimit = 3;
- };
- ["fly2"] = {
- Limit = 10000;
- IgnoreLimit = 3;
- };
- ["noclip"] = {
- Limit = 10000;
- IgnoreLimit = 3;
- };
- ["noclip2"] = {
- Limit = 10000;
- IgnoreLimit = 3;
- };
- ["speed"] = {
- Limit = 10000;
- IgnoreLimit = 3;
- };
- ["jumpPower"] = {
- Limit = 10000;
- IgnoreLimit = 3;
- };
- };
- VIPServerCommandBlacklist = {"permRank", "permBan", "globalAnnouncement"}; -- Commands players are probihited from using in VIP Servers.
- GearBlacklist = {67798397}; -- The IDs of gear items to block when using the ;gear command.
- IgnoreGearBlacklist = 4; -- The minimum rank required to ignore the gear blacklist.
- PlayerDataStoreVersion = "V1.0"; -- Data about the player (i.e. permRanks, custom settings, etc). Changing the Version name will reset all PlayerData.
- SystemDataStoreVersion = "V1.0"; -- Data about the game (i.e. the banland, universal message system, etc). Changing the Version name will reset all SystemData.
- CoreNotices = { -- Modify core notices. You can find a table of all CoreNotices under [MainModule > Client > SharedModules > CoreNotices]
- --NoticeName = NoticeDetails;
- };
- --------------| MODIFY COMMANDS |--------------
- SetCommandRankByName = {
- --["jump"] = "VIP";
- };
- SetCommandRankByTag = {
- --["abusive"] = "Admin";
- };
- };
- end
- fake_module_scripts[script] = module_script
- end
- do -- Modules.Commands
- local script = Instance.new('ModuleScript', Modules)
- script.Name = "Commands"
- local function module_script()
- -- << RETRIEVE FRAMEWORK >>
- local main = _G.HDAdminMain
- local settings = main.settings
- -- << COMMANDS >>
- local module = {
- -----------------------------------
- {
- Name = "";
- Aliases = {};
- Prefixes = {settings.Prefix};
- Rank = 1;
- RankLock = false;
- Loopable = false;
- Tags = {};
- Description = "";
- Contributors = {};
- --
- Args = {};
- Function = function(speaker, args)
- end;
- UnFunction = function(speaker, args)
- end;
- --
- };
- -----------------------------------
- {
- Name = "";
- Aliases = {};
- Prefixes = {settings.Prefix};
- Rank = 1;
- RankLock = false;
- Loopable = false;
- Tags = {};
- Description = "";
- Contributors = {};
- --
- Args = {};
- --[[
- ClientCommand = true;
- FireAllClients = true;
- BlockWhenPunished = true;
- PreFunction = function(speaker, args)
- end;
- Function = function(speaker, args)
- wait(1)
- end;
- --]]
- --
- };
- -----------------------------------
- };
- return module
- end
- fake_module_scripts[script] = module_script
- end
- do -- Modules_2.ClientCommands
- local script = Instance.new('ModuleScript', Modules_2)
- script.Name = "ClientCommands"
- local function module_script()
- -- << RETRIEVE FRAMEWORK >>
- local main = _G.HDAdminMain
- -- << CLIENT COMMANDS >>
- local module = {
- ----------------------------------------------------------------------
- ["commandName1"] = {
- Function = function(speaker, args)
- end;
- };
- ----------------------------------------------------------------------
- ["commandName2"] = {
- Function = function(speaker, args)
- end;
- };
- ----------------------------------------------------------------------
- };
- -- << SETUP >>
- for commandName, command in pairs(module) do
- command.Name = commandName
- end
- return module
- end
- fake_module_scripts[script] = module_script
- end
- do -- SharedModules.Events
- local script = Instance.new('ModuleScript', SharedModules)
- script.Name = "Events"
- local function module_script()
- -- << RETRIEVE FRAMEWORK >>
- local main = _G.HDAdminMain
- -- << EVENTS >>
- local module = {
- ----------------------------------------------------------------------
- ["EventName"] = function(bindable, parent, ...)
- end;
- ----------------------------------------------------------------------
- ["EventName"] = function(bindable, parent, ...)
- end;
- ----------------------------------------------------------------------
- };
- return module
- end
- fake_module_scripts[script] = module_script
- end
- -- Scripts:
- local function QOCVFZO_fake_script() -- HDAdmin.About
- local script = Instance.new('Script', HDAdmin)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- --[[
- For information on how to setup and use HD Admin, visit:
- https://devforum.roblox.com/t/HD/216819
- --]]
- end
- coroutine.wrap(QOCVFZO_fake_script)()
- local function XHGH_fake_script() -- nil.Loader
- local script = Instance.new('Script', nil)
- local req = require
- local require = function(obj)
- local fake = fake_module_scripts[obj]
- if fake then
- return fake()
- end
- return req(obj)
- end
- --[[
- This loads HD Admin into your game.
- Require the 'HD Admin MainModule' by the HD Admin group for automatic updates.
- You can view the HD Admin Main Module here:
- https://www.roblox.com/library/3239236979/HD
- --]]
- local loaderFolder = script.Parent.Parent
- local mainModule = require(3239236979)
- mainModule:Initialize(loaderFolder)
- loaderFolder:Destroy()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement