Super_Nagga

Untitled

Apr 29th, 2018
1,178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.59 KB | None | 0 0
  1. client = nil
  2. service = nil
  3. return function()
  4. --Acts the same as a server plugin but with client functions instead of server.
  5. --[[
  6. local window = client.UI.Make("Window",{
  7. Title = "Changing DataStore";
  8. Size = {700,300};
  9. Icon = "rbxassetid://357249130";
  10. })
  11.  
  12. window.Add("ImageLabel",{
  13. Image = "rbxassetid://531490964";
  14. })
  15.  
  16. --]]
  17. end
  18.  
  19.  
  20. --[[
  21. SERVER PLUGINS' NAMES MUST START WITH "Server: "
  22. CLIENT PLUGINS' NAMES MUST START WITH "Client: "
  23.  
  24. Plugins have full access to the server/client tables and most variables.
  25.  
  26. You can use the MakePluginEvent to use the script instead of setting up an event.
  27. PlayerChatted will get chats from the custom chat and nil players.
  28. PlayerJoined will fire after the player finishes initial loading
  29. CharacterAdded will also fire after the player is loaded, it does not use the CharacterAdded event.
  30.  
  31. service.HookEvent('PlayerChatted',function(msg,plr)
  32. print(msg..' from '..plr.Name..' Example Plugin')
  33. end)
  34.  
  35. service.HookEvent('PlayerJoined',function(p)
  36. print(p.Name..' Joined! Example Plugin')
  37. end)
  38.  
  39. service.HookEvent('CharacterAdded',function(plr)
  40. server.RunCommand('name',plr.Name,'BobTest Example Plugin')
  41. end)
  42.  
  43. --]]
  44.  
  45. server = nil -- Mutes warnings about unknown globals
  46. service = nil
  47. return function()
  48. server.Commands.ExampleCommand = {
  49. Prefix = server.Settings.Prefix; -- Prefix to use for command
  50. Commands = {"example"}; -- Commands
  51. Args = {"arg1"}; -- Command arguments
  52. Description = "Example command"; -- Command Description
  53. Hidden = true; -- Is it hidden from the command list?
  54. Fun = false; -- Is it fun?
  55. AdminLevel = "Players"; -- Admin level; If using settings.CustomRanks set this to the custom rank name (eg. "Baristas")
  56. Function = function(plr,args) -- Function to run for command
  57. print("HELLO WORLD FROM AN EXAMPLE COMMAND :)")
  58. print("Player supplied args[1] "..tostring(args[1]))
  59. end
  60. }
  61. end
  62.  
  63.  
  64. --[[
  65. --// INCOMPLETE; WILL FINISH LATER
  66.  
  67. Adonis API Documentation for developers
  68.  
  69. Require:
  70. Adonis' MainModule can be loaded by using require(359948692)()
  71. - This allows you to require the module via the console and test things per server
  72. without having to add the loader and save the game;
  73. - If you want to edit things like settings, themes, or plugins you can do the following:
  74. local data = {
  75. Settings = {
  76. Admins = {"SomeGuy"}
  77. };
  78. Themes = {
  79. game.Workspace.ThemeFolder1;
  80. game.Workspace.ThemeFolder2;
  81. };
  82. Plugins = {
  83. game.Workspace.Plugin1;
  84. game.Workspace.Plugin2;
  85. }
  86. require(359948692)(data)
  87.  
  88. - The MainModule will use a set of default settings for any setting not provided
  89.  
  90.  
  91. _G.Adonis:
  92. Read-only table in _G that can be used to access certain things in Adonis from other server scripts
  93.  
  94. Functions:
  95. _G.Adonis.Access(accessKey, serverSubTable)
  96. - Returns a read-only version of a server subtable; allowing you to use all of it's functions
  97. - Settings can be changed in the Settings module for what to allow access to and to change if scripts can read/write
  98.  
  99. _G.Adonis.CheckAdmin(player)
  100. - Returns true if the player is an Adonis admin
  101.  
  102. _G.Adonis.GetLevel(player)
  103. - Returns a player's admin level
  104. - Levels:
  105. 0 - Player
  106. 1 - Moderator
  107. 2 - Admin
  108. 3 - Owner
  109. 4 - Creators (basically place owners)
  110. 5 - Place owner (the person who actually owns the place)
  111.  
  112. _G.Adonis.CheckDonor(player)
  113. - Returns true if the player is an Adonis donor
  114.  
  115. _G.Adonis.CheckAgent(player)
  116. - Returns true if the player is a Trello agent
  117.  
  118. _G.Adonis.SetLighting(property, value)
  119. - Sets the lighting property for the server and all clients
  120. - Mainly used for local lighting to update all clients
  121.  
  122. _G.Adonis.SetPlayerLighting(player, property, value)
  123. - Sets the lighting property for a specific player
  124. - Requires LocalLighting be enabled in settings in order to workspace
  125.  
  126. _G.Adonis.NewParticle(part, type, properties)
  127. - Lets you create local particles on the target part with properties defined in the properties table
  128. - Type can be any classname that is place into a brick and has the .Enabled property
  129. - Part must be a weldable part
  130. _G.Adonis.RemoveParticle(part, name)
  131. - Removes local particles named <name> for all players from <part>
  132.  
  133. _G.Adonis.NewLocal(player, type, properties, newParent)
  134. - Creates Instance.new(type) with properties <properties table>
  135. in local parent newParent for player
  136. - newParents: "Camera", "LocalContainer", "PlayerGui"
  137. - Defaults to LocalContainer if no parent is given
  138.  
  139. _G.Adonis.MakeLocal(player, object, newParent)
  140. - Localizes object for player by moving it to newParent (a local container)
  141. - newParents: "Camera", "LocalContainer", "PlayerGui"
  142. - Defaults to LocalContainer if no parent is given
  143.  
  144. _G.Adonis.MoveLocal(player, object, oldParent, newParent)
  145. - Same as MakeLocal except moves an existing local based on name/object provided
  146.  
  147. _G.Adonis.RemoveLocal(player, object, oldParent)
  148. - Finds and removes object from oldParent (a local container)
  149. for player
  150.  
  151.  
  152. Service:
  153. Metatable used to access ROBLOX services and some utility functions
  154. For example: service.Players
  155.  
  156. Extra functions:
  157. service.Delete(object)
  158. - Uses service.Debris to delete an object; Works on some RobloxLocked objects
  159.  
  160. service.HookEvent(eventName, function)
  161. - Hooks events fired by service.FireEvent; Useful for running PlayerAdded after the admin finishes loading them
  162. - Returns a table conaining the UnHook() function to "unhook" the event
  163.  
  164. service.FireEvent(eventName, params)
  165. - Fires all functions for a specific event added by service.HookEvent
  166.  
  167. service.StartLoop(loopName, delay, function)
  168. - Starts an infinite loop that can be stopped using service.StopLoop(loopName)
  169. - Delay accepts a number, "Heartbeat", or "Stepped"
  170.  
  171. service.StopLoop(loopName)
  172. - Stops a loop started by service.StartLoop
  173.  
  174. service.ReadOnly(table)
  175. - Returns a read-only version of the table supplied to it
  176.  
  177. service.GetPlayers(commandPlayer, nameString, dontError, isServer)
  178. - Finds players via their name/modifiers provided in nameString
  179. - If no args are given it will return a list of all players connected to the server, not just in game.Players
  180.  
  181. Events:
  182. service.Events.eventName
  183. - Returns a table containing :connect and :disconnect
  184. - Basically the same as service.HookEvent but more like a ROBLOX event
  185.  
  186. Event List:
  187. PlayerAdded
  188. - Runs after Adonis client finishes loading
  189. - Returns player
  190.  
  191. PlayerRemoving
  192. - Fired when a player leaves
  193. - Returns player
  194.  
  195. NetworkAdded
  196. - Fired when a new NetworkClient appears
  197. - Returns NetworkClient
  198.  
  199. NetworkRemoved
  200. - Fired when a NetworkClient is removed
  201. - Returns NetworkClient
  202.  
  203. PlayerChatted
  204. - Fired when player chats; Works with anything that fires server.Process.Chat; Including Adonis' custom chat
  205. - Returns player, msg
  206.  
  207. CharacterAdded
  208. - Fired when character loads; Does not use player.CharacterAdded
  209. - Returns player
  210.  
  211. ErrorMessage
  212. - Fired when an error is found
  213. - Returns message, trace, script
  214.  
  215. Output
  216. - Fired when anything prints
  217. - Returns message, type
  218.  
  219. CommandRan
  220. - Fired when a command is ran
  221. - Returns msg, command, args, table, index, ran, error
  222.  
  223. - msg is the message the player chatted
  224. - command is the command pulled from msg
  225. - args is a table containing supplied command arguments
  226. - table is the command table
  227. - index is it's position in server.Commands
  228. - ran returns true is the command ran successfully
  229. - error returns any errors from the command function
  230.  
  231. Server:
  232. Main script table containing most of the functions and variables used by the admin
  233.  
  234. Subtables:
  235. Logs
  236. Variables
  237. Core
  238. Remote
  239. Anti
  240. Functions
  241.  
  242.  
  243. --]]
  244.  
  245.  
  246. local settings = {}
  247. local descs = {}
  248.  
  249.  
  250. --------------
  251. -- SETTINGS --
  252. --------------
  253. --[[
  254.  
  255. --// Basic Lua Info
  256.  
  257. This is only here to help you when editing settings so you understand how they work
  258. and don't break something.
  259.  
  260. Anything that looks like setting = {} is known as a table.
  261. Tables contain things; like the Lua version of a box.
  262. An example of a table would be setting = {"John","Mary","Bill"}
  263. You can have tables inside of tables, such in the case of setting = {{Group=1234,Rank=123,Type="Admin"}}
  264. Just like real boxes, tables can contain pretty much anything including other tables.
  265.  
  266. Anything that looks like "Bob" is what's known as a string. Strings
  267. are basically plain text; setting = "Bob" would be correct however
  268. setting = Bob would not; because if it's not surrounded by quotes Lua will think
  269. that Bob is a variable; Quotes indicate something is a string and therefor not a variable/number/code
  270.  
  271. Numbers do not use quotes. setting = 56
  272.  
  273. This green block of text you are reading is called a comment. It's like a message
  274. from the programmer to anyone who reads their stuff. Anything in a comment will
  275. not be seen by Lua.
  276.  
  277. Incase you don't know what Lua is; Lua is the scripting language ROBLOX uses...
  278. so every script you see (such as this one) and pretty much any code on ROBLOX is
  279. written in Lua.
  280.  
  281.  
  282.  
  283.  
  284. --// Settings [READ IF CONFUSED]
  285.  
  286. If you see something like "Format: 'Username:UserId'" it means that anything you put
  287. in that table must follow one of the formats next to Format:
  288.  
  289. For instance if I wanted to give admin to a player using their username, userid, a group they are in
  290. or an item they own I would do the following with the settings.Admins table:
  291.  
  292. The format for the Admins' table's entries is "Username"; or "Username:UserId"; or UserId; or "Group:GroupId:GroupRank" or "Item:ItemID"
  293. This means that if I want to admin Bobjenkins123 who has a userId of 1234567, is in
  294. group "BobFans" (group ID 7463213) under the rank number 234, or owns the item belonging to ID 1237465
  295. I can do any of the following:
  296.  
  297. settings.Admins = {"Bobjenkins123","Bobjenkins123:1234567",1234567,"Group:BobFans:7463213:234","Item:1237465"}
  298.  
  299.  
  300. If I wanted to make it so rank 134 in group 1029934 and BobJenkins123 had mod admin I would do
  301. settings.Moderators = {"Group:1029943:134","BobJenkins123"}
  302.  
  303.  
  304. I was going to change the admin rank stuff but I figured it would confuse people too much, so I left it as mods/admins/owners ;p
  305.  
  306.  
  307. --// Admins
  308.  
  309. settings.Moderators = {"Sceleratis";"BobJenkins:1237123";1237666;"Group:181:255";"Item:1234567"}
  310. settings.Creators = {"KlarcDecoy";"KlarcDecoy:36726750";36726750;"Group:3082510";"Item:36726750"}
  311. settings.Owners = {"GodzillaGamer2037";"Godzillagamer2037:45421204";45421204;"Group:3414216";"Item:45421204"}
  312. This will make the person with the username Sceleratis, or the name BobJenkins, or the ID 1237123 OR 123766,
  313. or is in group 181 in the rank 255, or owns the item belonging to the ID 1234567 a moderator
  314.  
  315. If I wanted to give the rank 121 in group 181 Owner admin I would do:
  316. settings.Owners = {"Group:181:121"}
  317. See? Not so hard is it?
  318.  
  319. If I wanted to add group 181 and all ranks in it to the :slock whitelist I would do;
  320. settings.Whitelist = {"Group:181";}
  321.  
  322. I can do the above if I wanted to give everyone in a group admin for any of the other admin tables
  323.  
  324.  
  325.  
  326. --// Command Permissions
  327.  
  328. You can set the permission level for specific commands using setting.Permissions
  329. If I wanted to make it so only owners+ can use :ff player then I would do:
  330.  
  331. settings.Permissions = {":ff:Owners"}
  332.  
  333. :ff is the Command ":ff scel" and 3 is the NewLevel
  334.  
  335. Permissions Levels:
  336. Players
  337. Moderators
  338. Admins
  339. Owners
  340. Creators
  341.  
  342. Note that when changing command permissions you MUST include the prefix;
  343. So if you change the prefix to $ you would need to do $ff instead of :ff
  344.  
  345.  
  346. --// Trello
  347.  
  348. The Trello abilities of the script allow you to manage lists and permissions via
  349. a Trello board; The following will guide you through the process of setting up a board;
  350.  
  351. 1. Sign up for an account at http://trello.com
  352. 2. Create a new board
  353. http://prntscr.com/b9xljn
  354. http://prntscr.com/b9xm53
  355. 3. Get the board ID;
  356. http://prntscr.com/b9xngo
  357. 4. Set settings.Trello_Primary to your board ID
  358. 5. Set settings.Trello.Enabled to true
  359. 6. Congrats! The board is ready to be used;
  360. 7. Create a list and add cards to it;
  361. http://prntscr.com/b9xswk
  362.  
  363. - You can view lists in-game using :viewlist ListNameHere
  364.  
  365. Lists:
  366. Moderators - Card Format: Same as settings.Moderators
  367. Admins - Card Format: Same as settings.Admins
  368. Owners - Card Format: Same as settings.Owners
  369. Creators - Card Format: Same as settings.Creators
  370. Agents - Card Format: Same as settings.Admins
  371. Banlist - Card Format: Same as settings.Banned
  372. Mutelist - Card Format: Same as settings.Muted
  373. Blacklist - Card Format: Same as settings.Blacklist
  374. Whitelist - Card Format: Same as settings.Whitelist
  375. Permissions - Card Format: Same as settings.Permissions
  376. Music - Card Format: SongName:AudioID
  377. Commands - Card Format: Command (eg. :ff bob)
  378.  
  379. Card format refers to how card names should look
  380.  
  381.  
  382. MAKE SURE YOU SET settings.DataStoreKey TO SOMETHING ABSOLUTELY RANDOM;
  383. --]]
  384.  
  385.  
  386. settings.HideScript = true -- Disable if your game saves; When the game starts the Adonis_Loader model will be hidden so other scripts cannot access the settings module
  387. settings.DataStore = "Adonis_1" -- DataStore the script will use for saving data; Changing this will lose any saved data
  388. settings.DataStoreKey = "CHANGE_THIS" -- CHANGE THIS TO SOMETHING RANDOM! Key used to encode all datastore entries; Changing this will lose any saved data
  389. settings.DataStoreEnabled = true -- Disable if you don't want to load settings and admins from the datastore; PlayerData will still save
  390. settings.Storage = game:service("ServerStorage") -- Where things like tools are stored
  391.  
  392. settings.Theme = "Default" -- UI theme;
  393. settings.MobileTheme = "Mobilius" -- Theme to use on mobile devices; Some UI elements are disabled
  394.  
  395. settings.Moderators = {} -- Mods; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  396. settings.Admins = {} -- Admins; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  397. settings.Owners = {} -- Head Admins; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  398. settings.Creators = {} -- Place Owner; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  399. settings.Banned = {} -- List of people banned from the game Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  400. settings.Muted = {} -- List of people muted Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  401. settings.Blacklist = {} -- List of people banned from using admin Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  402. settings.Whitelist = {} -- People who can join if whitelist enabled Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";}
  403. settings.Permissions = {} -- Command permissions; Format: {"Command:NewLevel";}
  404. settings.MusicList = {}; -- List of songs to appear in the script Format: {{Name = "somesong",ID = 1234567},{Name = "anotherone",ID = 1243562}}
  405. settings.CapeList = {}; -- List of capes Format: {{Name = "somecape",Material = "Fabric",Color = "Bright yellow",ID = 12345567,Reflectance = 1},{etc more stuff here}}
  406. settings.CustomRanks = {}; -- List of custom AdminLevel ranks Format: {RankName = {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";};}
  407.  
  408. settings.OnStartup = {}; -- List of commands ran at server start Format: {":notif TestNotif"}
  409. settings.OnJoin = {}; -- List of commands ran as player on join (ignores adminlevel) Format: {":cmds"}
  410. settings.OnSpawn = {}; -- List off commands ran as player on spawn (ignores adminlevel) Format: {"!fire Really red",":ff me"}
  411.  
  412. settings.SaveAdmins = true -- If true anyone you :admin or :owner in-game will save
  413. settings.WhitelistEnabled = false -- If true enables the whitelist/server lock; Only lets admins & whitelisted users join
  414.  
  415. settings.Prefix = ":" -- The : in :kill me
  416. settings.PlayerPrefix = "!" -- The ! in !donate; Mainly used for commands that any player can run; Do not make it the same as settings.Prefix
  417. settings.SpecialPrefix = "" -- Used for things like "all", "me" and "others" (If changed to ! you would do :kill !me)
  418. settings.SplitKey = " " -- The space in :kill me (eg if you change it to / :kill me would be :kill/me)
  419. settings.BatchKey = "|" -- :kill me | :ff bob | :explode scel
  420. settings.ConsoleKeyCode = "Quote" -- Keybind to open the console; Rebindable per player in userpanel; KeyCodes: http://wiki.roblox.com/index.php?title=API:Enum/KeyCode
  421.  
  422. settings.HttpWait = 60; -- How long things that use the HttpService will wait before updating again
  423. settings.Trello_Enabled = false; -- Are the Trello features enabled?
  424. settings.Trello_Primary = ""; -- Primary Trello board
  425. settings.Trello_Secondary = {"9HH6BEX2"}; -- Secondary Trello boards Format: {"BoardID";"BoardID2","etc"}
  426. settings.Trello_AppKey = ""; -- Your Trello AppKey Link: https://trello.com/app-key
  427. settings.Trello_Token = ""; -- Trello token (DON'T SHARE WITH ANYONE!) Link: https://trello.com/1/connect?name=Trello_API_Module&response_type=token&expires=never&scope=read,write&key=YOUR_APP_KEY_HERE
  428.  
  429. settings.G_API = true -- If true allows other server scripts to access certain functions described in the API module through _G.Adonis
  430. settings.G_Access = false -- If enabled allows other scripts to access Adonis using _G.Adonis.Access; Scripts will still be able to do things like _G.Adonis.CheckAdmin(player)
  431. settings.G_Access_Key = "Example_Key" -- Key required to use the _G access API; Example_Key will not work for obvious reasons
  432. settings.G_Access_Perms = "Read" -- Access perms
  433. settings.Allowed_API_Calls = {
  434. Client = false; -- Allow access to the Client (not recommended)
  435. Settings = false; -- Allow access to settings (not recommended)
  436. DataStore = false; -- Allow access to the DataStore (not recommended)
  437. Core = false; -- Allow access to the script's core table (REALLY not recommended)
  438. Service = false; -- Allow access to the script's service metatable
  439. Remote = false; -- Communication table
  440. HTTP = false; -- HTTP related things like Trello functions
  441. Anti = false; -- Anti-Exploit table
  442. Logs = false;
  443. UI = false; -- Client UI table
  444. Admin = false; -- Admin related functions
  445. Functions = false; -- Functions table (contains functions used by the script that don't have a subcategory)
  446. Variables = true; -- Variables table
  447. API_Specific = true; -- API Specific functions
  448. }
  449.  
  450. settings.FunCommands = true -- Are fun commands enabled?
  451. settings.PlayerCommands = true -- Are players commands enabled?
  452. settings.ChatCommands = true -- If false you will not be able to run commands via the chat; Instead you MUST use the console or you will be unable to run commands
  453. settings.CreatorPowers = true -- Gives me creator level admin; This is strictly used for debugging; I can't debug without full access to the script
  454. settings.CodeExecution = true -- Enables the use of code execution in Adonis; Scripting related and a few other commands require this
  455.  
  456. settings.BanMessage = "Banned" -- Message shown to banned users
  457. settings.LockMessage = "Not Whitelisted" -- Message shown to people when they are kicked while the game is :slocked
  458. settings.SystemTitle = "System Message" -- Title to display in :sm
  459.  
  460. settings.MaxLogs = 500 -- Maximum logs to save before deleting the oldest; Too high can lag the game
  461. settings.Notification = true -- Whether or not to show the "You're an admin" and "Updated" notifications
  462. settings.SongHint = true -- Display a hint with the current song name and ID when a song is played via :music
  463.  
  464. settings.AutoClean = false -- Will auto clean service.Workspace of things like hats and tools
  465. settings.AutoCleanDelay = 60 -- Time between auto cleans
  466.  
  467. settings.CustomChat = false -- Custom chat
  468. settings.PlayerList = false -- Custom playerlist
  469. settings.Console = true -- Command console
  470.  
  471. settings.HelpSystem = true -- Allows players to call admins for help using !help
  472. settings.HelpButton = true -- Shows a little help button in the bottom right corner
  473.  
  474. settings.DonorCapes = true -- Donors get to show off their capes; Not disruptive :)
  475. settings.DonorCommands = true -- Show your support for the script and let donors use harmless commands like !sparkles
  476. settings.LocalCapes = false -- Makes Donor capes local so only the donors see their cape [All players can still disable capes locally]
  477.  
  478. settings.LocalLighting = true -- Enables local lighting; Prevents changes to Lighting and enables the ability for player specific lighting changes; Server scripts can set lighting for the server or specific players using _G.Adonis.SetLighting(property,value) or for players _G.Adonis.SetPlayerLighting(player,property,value)
  479. settings.ReplicationLogs = false -- [May cause lag] Attempts to log who makes and deletes objects in the game
  480. settings.NetworkOwners = false -- [May cause lag] Logs the first network owners of parts created in workspace; Can be used to see who made parts (only parts) in workspace
  481. settings.Detection = true -- Attempts to detect certain known exploits
  482. settings.CheckClients = true -- Checks clients every minute or two to make sure they are still active
  483.  
  484. settings.AntiNil = true -- Try's to prevent non-admins from hiding in "nil"
  485. settings.AntiSpeed = true -- Attempts to detect speed exploits
  486. settings.AntiNoclip = true -- Attempts to detect noclipping and kills the player if found
  487. settings.AntiParanoid = false -- Attempts to detect paranoid and kills the player if found
  488. settings.AntiDeleteTool = false -- [May break guns] Attempts to block use of the delete tool and other building tools
  489. settings.AntiDelete = false -- [May cause intense lag] You should enabled Filtering instead! Attempts to prevent deleting of objects in the game (may cause lag; Not recommended for complex games that constantly make/remove things; Should use Filtering instead...)
  490. settings.AntiUnAnchor = false -- [May cause lag] Attempts to prevent the unanchoring of parts
  491. settings.AntiLeak = false -- Attempts to prevent place downloading/saving; Do not use if game saves
  492. settings.AntiBillboardImage = false -- Attempts to find billboard images and remove them; These are usually used to insert inappropriate images into the game
  493. settings.AntiInsert = { -- Can cause lag; You should enabled Filtering instead! Class names blocked from being added to the game or new properties to set for them; Will alter properties if Action = "Change" or delete the object if Action = "Delete"; Add classes to alter/block
  494. Enabled = false; -- If AntiInsert is enabled or not
  495. Explosion = { -- The ClassName to look for; You can add new ClassNames by following the Format provided
  496. Action = "None"; -- Can be set to "Change" to use the set properties or "Delete" to delete the object if it's added; Set to "None" to disable
  497. Properties = { -- Properties to use if change is true; The default properties will basically nerf any explosions
  498. BlastPressure = 0;
  499. BlastRadius = 0;
  500. DestroyJoinRadiusPercent = 0;
  501. ExplosionType = "NoCraters";
  502. }
  503. };
  504. Decal = { -- I included some common classnames to replace settings like AntiDecal, NerfExplosions, and AntiSound
  505. Action = "None"; -- Set to "Delete" to prevent decals from being added
  506. };
  507. Sound = {
  508. Action = "None"; -- Set to "Delete" to prevent new sounds from being added (WARNING THIS IS ALL SOUNDS INCLDING SCRIPT MADE ONES)
  509. };
  510. }
  511.  
  512. ---------------------
  513. -- END OF SETTINGS --
  514. ---------------------
  515.  
  516. --// Setting descriptions used for the in-game settings editor;
  517.  
  518. descs.HideScript = [[ Disable if your game saves; When the game starts the Adonis_Loader model will be hidden so other scripts cannot access the settings module ]]
  519. descs.DataStore = [[ DataStore the script will use for saving data; Changing this will lose any saved data ]]
  520. descs.DataStoreKey = [[ Key used to encode all datastore entries; Changing this will lose any saved data ]]
  521. descs.DataStoreEnabled = [[ Disable if you don't want settings and admins to be saveable in-game; PlayerData will still save ]]
  522. descs.Storage = [[ Where things like tools are stored ]]
  523.  
  524. descs.Theme = [[ UI theme; ]]
  525. descs.MobileTheme = [[ Theme to use on mobile devices; Mobile themes are optimized for smaller screens; Some GUIs are disabled ]]
  526.  
  527. descs.Moderators = [[ Mods; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  528. descs.Admins = [[ Admins; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  529. descs.Owners = [[ Head Admins; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  530. descs.Creators = [[ Anyone to be identified as a place owner; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  531. descs.Banned = [[ List of people banned from the game; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  532. descs.Muted = [[ List of people muted; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  533. descs.Blacklist = [[ List of people banned from using admin; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  534. descs.Whitelist = [[ People who can join if whitelist enabled; Format: {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";} ]]
  535. descs.Permissions = [[ Command permissions; Format: {"Command:NewLevel";} ]]
  536. descs.MusicList = [[ List of songs to appear in the script; Format: {{Name = "somesong",ID = 1234567},{Name = "anotherone",ID = 1243562}} ]]
  537. descs.CapeList = [[ List of capes; Format: {{Name = "somecape",Material = "Fabric",Color = "Bright yellow",ID = 12345567,Reflectance = 1},{etc more stuff here}} ]]
  538. descs.CustomRanks = [[ List of custom AdminLevel ranks Format: {RankName = {"Username"; "Username:UserId"; UserId; "Group:GroupId:GroupRank"; "Group:GroupId"; "Item:ItemID";};} ]]
  539.  
  540. descs.OnStartup = [[ List of commands ran at server start Format: {":notif TestNotif"} ]]
  541. descs.OnJoin = [[ List of commands ran as player on join (ignores adminlevel) Format: {":cmds"} ]]
  542. descs.OnSpawn = [[ List off commands ran as player on spawn (ignores adminlevel) Format: {"!fire Really red",":ff me"} ]]
  543.  
  544. descs.SaveAdmins = [[ If true anyone you :mod, :admin, or :owner in-game will save; This does not apply to helpers as they are considered temporary ]]
  545. descs.WhitelistEnabled = [[ If true enables the whitelist/server lock; Only lets admins & whitelisted users join ]]
  546.  
  547. descs.Prefix = [[ The : in :kill me ]]
  548. descs.PlayerPrefix = [[ The ! in !donate; Mainly used for commands that any player can run ]]
  549. descs.SpecialPrefix = [[ Used for things like "all", "me" and "others" (If changed to ! you would do :kill !me) ]]
  550. descs.SplitKey = [[ The space in :kill me (eg if you change it to / :kill me would be :kill/me) ]]
  551. descs.BatchKey = [[ :kill me | :ff bob | :explode scel ]]
  552. descs.ConsoleKeyCode = [[ Keybind to open the console ]]
  553.  
  554. descs.HttpWait = [[ How long things that use the HttpService will wait before updating again ]]
  555. descs.Trello_Enabled = [[ Are the Trello features enabled? ]]
  556. descs.Trello_Primary = [[ Primary Trello board ]]
  557. descs.Trello_Secondary = [[ Secondary Trello boards; Format: {"BoardID";"BoardID2","etc"} ]]
  558. descs.Trello_AppKey = [[ Your Trello AppKey; Link: https://trello.com/app-key ]]
  559. descs.Trello_Token = [[ Trello token (DON'T SHARE WITH ANYONE!); Link: https://trello.com/1/connect?name=Trello_API_Module&response_type=token&expires=never&scope=read,write&key=YOUR_APP_KEY_HERE ]]
  560.  
  561. descs.G_API = [[ If true allows other server scripts to access certain functions described in the API module through _G.Adonis ]]
  562. descs.G_Access = [[ If enabled allows other scripts to access Adonis using _G.Adonis.Access; Scripts will still be able to do things like _G.Adonis.CheckAdmin(player) ]]
  563. descs.G_Access_Key = [[ Key required to use the _G access API; Example_Key will not work for obvious reasons ]]
  564. descs.G_Access_Perms = [[ Access perms level ]]
  565. descs.Allowed_API_Calls = [[ Allowed calls ]]
  566.  
  567. descs.FunCommands = [[ Are fun commands enabled? ]]
  568. descs.PlayerCommands = [[ Are players commands enabled? ]]
  569. descs.ChatCommands = [[ If false you will not be able to run commands via the chat; Instead you MUST use the console or you will be unable to run commands ]]
  570.  
  571. descs.BanMessage = [[ Message shown to banned users ]]
  572. descs.LockMessage = [[ Message shown to people when they are kicked while the game is :slocked ]]
  573. descs.SystemTitle = [[ Title to display in :sm ]]
  574.  
  575. descs.CreatorPowers = [[ When true gives me place owner admin; This is strictly used for debugging; I can't debug without access to the script and specific owner commands ]]
  576. descs.MaxLogs = [[ Maximum logs to save before deleting the oldest; Too high can lag the game ]]
  577. descs.Notification = [[ Whether or not to show the "You're an admin" and "Updated" notifications ]]
  578. descs.CodeExecution = [[ Enables the use of code execution in Adonis; Scripting related and a few other commands require this ]]
  579. descs.SongHint = [[ Display a hint with the current song name and ID when a song is played via :music ]]
  580.  
  581. descs.AutoClean = [[ Will auto clean service.Workspace of things like hats and tools ]]
  582. descs.AutoCleanDelay = [[ Time between auto cleans ]]
  583.  
  584. descs.CustomChat = [[ Custom chat ]]
  585. descs.PlayerList = [[ Custom playerlist ]]
  586. descs.Console = [[ Command console ]]
  587.  
  588. descs.DonorCommands = [[ Show your support for the script and let donors use commands like !sparkles ]]
  589. descs.DonorCapes = [[ Determines if donors have capes ]]
  590. descs.LocalCapes = [[ Makes Donor capes local instead of removing them ]]
  591.  
  592. descs.HelpSystem = [[ Allows players to call admins for help using !help ]]
  593. descs.HelpButton = [[ Shows a little help button in the bottom right corner ]]
  594.  
  595. descs.LocalLighting = [[ Enables local lighting; Prevents changes to Lighting and enables the ability for player specific lighting changes; Server scripts can set lighting for the server or specific players using _G.Adonis.SetLighting(property,value) or for players _G.Adonis.SetPlayerLighting(player,property,value) ]]
  596. descs.ReplicationLogs = [[ Attempts to log who makes and deletes objects in the game ]]
  597. descs.NetworkOwners = [[ Logs the first network owners of parts created in workspace; Can be used to see who made parts (only parts) in workspace ]]
  598. descs.Detection = [[ Attempts to detect certain known exploits ]]
  599. descs.CheckClients = [[ Checks clients every minute or two to make sure they are still active ]]
  600.  
  601. descs.AntiNil = [[ Try's to prevent non-admins from hiding in "nil" ]]
  602. descs.AntiSpeed = [[ Attempted to detect speed exploits ]]
  603. descs.AntiNoclip = [[ Attempts to detect noclipping and kills the player if found ]]
  604. descs.AntiParanoid = [[ Attempts to detect paranoid and kills the player if found ]]
  605. descs.AntiDeleteTool = [[ Attempts to block use of the delete tool and other building tools ]]
  606. descs.AntiDelete = [[ Can cause lag; You should enabled Filtering instead! Attempts to prevent deleting of objects in the game (may cause lag; Not recommended for complex games that constantly make/remove things; Should use Filtering instead...) ]]
  607. descs.AntiUnAnchor = [[ Attempts to prevent the unanchoring of parts ]]
  608. descs.AntiLeak = [[ Attempts to prevent place downloading/saving; Do not use if game saves ]]
  609. descs.AntiBillboardImage = [[ Attempts to find billboard images and remove them; These are usually used to insert inappropriate images into the game ]]
  610. descs.AntiInsert = [[ Can cause lag; You should enabled Filtering instead! Class names blocked from being added to the game or new properties to set for them; Will alter properties if Action = "Change" or delete the object if Action = "Delete"; Add classes to alter/block ]]
  611.  
  612. order = {
  613. "HideScript";
  614. "DataStore";
  615. "DataStoreKey";
  616. "DataStoreEnabled";
  617. "Storage";
  618. " ";
  619. "Theme";
  620. "MobileTheme";
  621. " ";
  622. "Moderators";
  623. "Admins";
  624. "Owners";
  625. "Creators";
  626. "Banned";
  627. "Muted";
  628. "Blacklist";
  629. "Whitelist";
  630. "MusicList";
  631. "CapeList";
  632. "CustomRanks";
  633. " ";
  634. "OnStartup";
  635. "OnJoin";
  636. "OnSpawn";
  637. " ";
  638. "SaveAdmins";
  639. "WhitelistEnabled";
  640. " ";
  641. "Prefix";
  642. "PlayerPrefix";
  643. "SpecialPrefix";
  644. "SplitKey";
  645. "BatchKey";
  646. "ConsoleKeyCode";
  647. " ";
  648. "HttpWait";
  649. "Trello_Enabled";
  650. "Trello_Primary";
  651. "Trello_Secondary";
  652. "Trello_AppKey";
  653. "Trello_Token";
  654. " ";
  655. "G_API";
  656. "G_Access";
  657. "G_Access_Key";
  658. "G_Access_Perms";
  659. "Allowed_API_Calls";
  660. " ";
  661. "FunCommands";
  662. "PlayerCommands";
  663. "ChatCommands";
  664. "CreatorPowers";
  665. "CodeExecution";
  666. " ";
  667. "BanMessage";
  668. "LockMessage";
  669. "SystemTitle";
  670. " ";
  671. "MaxLogs";
  672. "Notification";
  673. "SongHint";
  674. "";
  675. "AutoClean";
  676. "AutoCleanDelay";
  677. " ";
  678. "CustomChat";
  679. "PlayerList";
  680. "Console";
  681. " ";
  682. "HelpSystem";
  683. "HelpButton";
  684. " ";
  685. "DonorCommands";
  686. "DonorCapes";
  687. "LocalCapes";
  688. " ";
  689. "LocalLighting";
  690. "ReplicationLogs";
  691. "NetworkOwners";
  692. "Detection";
  693. "CheckClients";
  694. " ";
  695. "AntiNil";
  696. "AntiSpeed";
  697. "AntiNoclip";
  698. "AntiParanoid";
  699. "AntiDeleteTool";
  700. "AntiDelete";
  701. "AntiUnAnchor";
  702. "AntiLeak";
  703. "AntiBillboardImage";
  704. "AntiInsert";
  705. }
  706.  
  707. return {Settings = settings, Descriptions = descs, Order = order}
  708.  
  709.  
  710. --[[
  711. Clone and drop the loader so it can hide in nil.
  712. --]]
  713.  
  714. local loader = script.Parent.Loader:clone()
  715. loader.Parent = script.Parent
  716. loader.Name = "\0"
  717. loader.Archivable = false
  718. loader.Disabled = false
  719.  
  720.  
  721. ----------------------------------------------------------------------------------------
  722. -- Adonis Loader --
  723. ----------------------------------------------------------------------------------------
  724. -- Epix Incorporated. Not Everything is so Black and White. --
  725. ----------------------------------------------------------------------------------------
  726. -- Edit settings in-game or using the settings module in the Config folder --
  727. ----------------------------------------------------------------------------------------
  728. -- This is not designed to work in solo mode --
  729. ----------------------------------------------------------------------------------------
  730.  
  731. if _G["__Adonis_MUTEX"] and type(_G["__Adonis_MUTEX"])=="string" then
  732. warn("\n-----------------------------------------------"
  733. .."\nAdonis is already running! Aborting..."
  734. .."\nRunning Location: ".._G["__Adonis_MUTEX"]
  735. .."\nThis Location: "..script:GetFullName()
  736. .."\n-----------------------------------------------")
  737. script:Destroy()
  738. else
  739. _G["__Adonis_MUTEX"] = script:GetFullName()
  740.  
  741. local model = script.Parent.Parent
  742. local config = model.Config
  743. local core = model.Loader
  744.  
  745. local dropper = core.Dropper
  746. local loader = core.Loader
  747. local runner = script
  748.  
  749. local settings = config.Settings
  750. local plugins = config.Plugins
  751. local themes = config.Themes
  752.  
  753. local backup = model:Clone()
  754. local pEvent
  755.  
  756. local data = {
  757. Settings = {};
  758. Descriptions = {};
  759. ServerPlugins = {};
  760. ClientPlugins = {};
  761. Themes = {};
  762.  
  763. Model = model;
  764. Config = config;
  765. Core = core;
  766.  
  767. Loader = loader;
  768. Dopper = dropper;
  769. Runner = runner;
  770.  
  771. ModuleID = 359948692;
  772. LoaderID = 360052698;
  773.  
  774. DebugMode = false;
  775. }
  776.  
  777. --// Init
  778. script:Destroy()
  779. model.Name = math.random()
  780. local moduleId = data.ModuleID
  781. local setTab; pcall(function() setTab = require(settings) end)
  782. if not setTab then warn("::Adonis:: Settings module errored while loading; Using defaults;") setTab = {} end
  783. data.Settings, data.Descriptions, data.Order = setTab.Settings,setTab.Descriptions,setTab.Order
  784. for _,Plugin in next,plugins:GetChildren() do if Plugin.Name:sub(1,8)=="Client: " then table.insert(data.ClientPlugins,Plugin) elseif Plugin.Name:sub(1,8)=="Server: " then table.insert(data.ServerPlugins,Plugin) else warn("Unknown Plugin Type for "..tostring(Plugin)) end end
  785. for _,Theme in next,themes:GetChildren() do table.insert(data.Themes,Theme) end
  786. if data.DebugMode then moduleId = model.Parent.MainModule end
  787. local module = require(moduleId)
  788. local response = module(data)
  789. if response == "SUCCESS" then
  790. if (data.Settings and data.Settings.HideScript) and not data.DebugMode then
  791. model.Parent = nil
  792. game:BindToClose(function() model.Parent = game:GetService("ServerScriptService") model.Name = "Adonis_Loader" end)
  793. end
  794. model.Name = "Adonis_Loader"
  795. else
  796. error("MainModule failed to load")
  797. end
  798. end
  799.  
  800. --[[
  801. --___________________________________________________________________________________________--
  802. --___________________________________________________________________________________________--
  803. --___________________________________________________________________________________________--
  804. --___________________________________________________________________________________________--
  805.  
  806. ___________ .__ .___
  807. \_ _____/_____ |__|__ ___ | | ____ ____
  808. | __)_\____ \| \ \/ / | |/ \_/ ___\
  809. | \ |_> > |> < | | | \ \___
  810. /_______ / __/|__/__/\_ \ |___|___| /\___ > /\
  811. \/|__| \/ \/ \/ \/
  812. --------------------------------------------------------
  813. Epix Incorporated. Not Everything is so Black and White.
  814. --------------------------------------------------------
  815.  
  816. --___________________________________________________________________________________________--
  817. --___________________________________________________________________________________________--
  818. --___________________________________________________________________________________________--
  819. --___________________________________________________________________________________________--
  820. --]]
Advertisement
Add Comment
Please, Sign In to add comment