Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 234.45 KB | None | 0 0
  1. ---------------------
  2. local set={}--Main Script Table (Don't Touch)
  3. ---------------------
  4. -- IMPORTANT --
  5. ---------------------
  6. -- true=on -- false=off --
  7.  
  8. set['ChangedSettingsStick'] = true --Do settings you change in-game save? (this includes bans, admins, etc etc)
  9. set['SettingsToIgnore'] = {} --Place settings to ignore here
  10. set['DataStoreKey'] = "Kohl's Admin [Epix Edit][JK$KJh3]" --Datastore key
  11.  
  12. -----------------------------------------------------------------------
  13.  
  14. set['CustomChat'] = false --Custom chat system, aside from chat modes and various other things, the custom chat cannot be muted by exploiters and exploiters can not use it to run chat commands.
  15. set['CustomChatType'] = 'Both' --Classic/Bubbles/Both, Determines chat mode, simular to ROBLOX's chat settings.
  16.  
  17. --[[-------------------------------------------------------------------
  18. Scroll down for the rest of the settings.
  19. ------------------------------------------------------------------------
  20. For information about LoadStringEnabled please refer to the following:
  21.  
  22. http://wiki.roblox.com/index.php?title=Security#LoadStringEnabled
  23. http://wiki.roblox.com/index.php?title=Points_tutorial#Restrictions
  24.  
  25. If you want to use the :s command you will need to set LoadStringEnabled
  26. to true. It can be found by going into studio, opening the explorer and properties
  27. windows, clicking on ServerScriptService and under properties checking
  28. LoadStringEnabled. Loadstring is only used in the script for Output and
  29. the scripting command. The script will function fine without it.
  30. ------------------------------------------------------------------------
  31. IF THERE ARE NEW SETTINGS YOU WILL NEED TO MANUALLY UPDATE THE SCRIPT TO
  32. CHANGE THEM, THEY WILL OTHERWISE BE LEFT AS THE DEFAULT.
  33. ------------------------------------------------------------------------
  34. Please carefully read each setting's description BEFORE changing something
  35. as you could break something if you set something the wrong way.
  36. ------------------------------------------------------------------------
  37. If you decide to take something from this or decide to make your own
  38. edited version, please leave credit to Kohltastrohpe (Scripth) and
  39. myself (montano60). Taking something and changing it while leaving credit
  40. is fine, however taking something, claiming it is yours, and not changing
  41. ANYTHING is stealing it, which would only make you look bad. Please
  42. don't be that person.
  43. Credits:
  44. -Kohltastrophe (Scripth) for the original script
  45. -montano60 (me) for this super edited version of Kohl's script
  46. -einsteinK for helping me figure some things out, he honestly lives up to his username.
  47. -Everyone who helped me with testing, and suggested new ideas, features, and commands.
  48. The ideas that you guys suggest are what makes this the constantly evolving and changing
  49. thing that it is, so thank you :D
  50. ------------------------------------------------------------------------
  51. You can find Epix members and my self from time to time in Keynet's (Epix Inc. CEO Mr. Failz)
  52. Twitch stream! Check it out when you get a chance: twitch.tv/ekeynet
  53. --]]
  54. ---------------------
  55. -- Tables
  56. ---------------------
  57. set['Owners'] = {"TheYoungGod"} -- Are able to set Admins who can ban/etc... using :pa name
  58. set['Admins'] = {""} -- Sets Admins who can use ban/kick/admin or shutdown
  59. set['TempAdmins'] = {} -- Sets Admins who can't use ban/kick/admin or shutdown
  60. set['BanList'] = {'Test_User123=1235674'} -- Add people to ban here. Format to use UserId is "Name=UserId" EX: "John32=192845", this bans any player named John32 or has an id of 192845 (This way they can't bypass the ban by changing their username) use $group=GROUPID to ban groups.
  61. set['MuteList'] = {} -- Add the names of people to mute (makes it so they cant talk)
  62. ----------------------
  63. -- Basic Settings --
  64. ----------------------
  65. set['Prefix'] = "" -- This comes before each admin command (:kill kohl)
  66. set['AnyPrefix'] = "" -- This comes before each player command (commands that can be run by anyone, !rejoin, !ping, etc)
  67. set['SpecialPrefix'] = "" -- Prefix to use with special functions (!admin,!nonadmins,!all,!others,!random) By default this is now set to nothing to avoid confusion.
  68. set['SplitKey'] = " " -- This is what seperates command argumantes eg: player raiders in :team player raiders
  69. set['AutoUpdate'] = true -- Automatically get the newest version? You need to have the model in your inventory on your profile in order for autoupdate to work.
  70. set['FunCommands'] = true -- Set to false if you only want the basic commands (For Strict Places)
  71. set['NoTalk'] = true -- Enable notalk cmds (Good for group trainings)?
  72. set['HelpSystem'] = true -- Enable the Help System? (!help command)
  73. set['ChatLog'] = true -- Log all chats for the server?
  74. set['MaxNumberOfLogs'] = 1000 -- How many logs to display at a time (MAX is 1500 to avoid server lag/other issues)
  75. set['JoinMessage'] = true -- Display a message with player info when a player joins, set group id in group settings if you want it to display if a player is in a group or not and if so what rank they are.
  76. set['DonorStuff'] = true -- Sets if donors are allowed to show off that they donated
  77. set['PermBanKey'] = '0.49971007415998' -- Key (Random String) to use in persistent perm ban (change if you perm banned someone by accident, make it 100% random, if you want a random key generator, put print(math.random()) into the command bar in studio and hit enter, then just copy what it gives you in the output window)
  78. set['FreeAdmin'] = false -- Set to true if you want everyone to get the set type of admin (not recommended)
  79. set['FreeAdminType'] = 'TempAdmin' -- Type of admin for FreeAdmin (TempAdmin/Admin/Owner)
  80. set['AutoClean'] = true -- AutoClean the server? (!clean)
  81. set['AutoCleanDelay'] = 60 -- How long to wait between AutoCleans (in seconds)
  82. set['PlayerCommands'] = true -- Sets whether or not nonadmins can use player commands (!rejoin,!ping,!cmds,etc)
  83. set['OwnersAreTrueOwners'] = false -- This indicates whether or not Owners are considered True Owners, if set to true Owners get the same commands as the place owner (permban and other true owner cmds)
  84. set['PMUsableByAnyone'] = true -- Set this to true if you want it so anyone can use the PM command
  85. set['AdminsSpawnWithGuis'] = true -- This determines if admins spawn with the admin chat and cmd box, note the admin chat is disabled when custom chat is enabled (has a admin mode)
  86. set['HelpGui'] = true --This determines if players spawn with the helpgui or not
  87. ---------------------
  88. -- SyncedBanList --
  89. ---------------------
  90. set['SyncedBanList'] = true --Banlist that updates every set number of seconds on every server of everygame this script is in (that has the same SBLSetId)
  91. set['SBLSetId'] = 1104294 --ID of set containing ban databases, leave as default to use our exploiter database.
  92. set['SBLWait'] = 5 --How often (in seconds) should the list update? Recommeneded 5+
  93. --[[TO USE YOUR OWN BAN DATABASE FOLLOW THE FOLLOWING INSTRUCTIONS:
  94. 1. Make a new set, name it what ever you want.
  95. 2. Make a new model, does not matter what the model is.
  96. 3. Change the model's description to BANLIST:
  97. 4. Put the model into the set you created
  98. 5. Set SBLSetId to the ID of the set you just made, the ID is the number at the end of the set url, EX: http://www.roblox.com/My/Sets.aspx?id=1104294 --1104294 is the set ID
  99. 6. Place the names of people to ban into the description the model.(Seperate names with commas (,) and NO SPACES) EX: BANLIST:JohnJo13,Billy4,H4X0r1
  100. *To ban specific UserId's to stop people from bypassing the ban by changing their name, use the following format when adding a name to the list: Username=UserId, so BANLIST:john324=2918573,bob134215,doggy44=1241634,$group=1928342 (bans a group)
  101. 7. Your Done! If the description of the model runs out of space and starts cutting names make a new model and repeat steps 2,3,4 and 6.
  102. When you add people to the list in the model's description(s), they will be removed from any game this admin is in with these settings, and will not be able to rejoin.
  103. --]]
  104. ---------------------
  105. -- Anti-Exploit --
  106. ---------------------
  107. set['AntiExploit'] = true -- Prevents non-admins from running code/commands via chat, stops a large number of other things including selection changed (finds if a user is using studio)
  108. set['AntiRobloxLocked'] = true -- Disconnects any player who is or becomes RobloxLocked. (Recommended you keem this enabled, if a player joins RobloxLocked they will not be hooked by the script, this removes them before they break something.)
  109. set['AntiNewAccount'] = false -- Prevents accounts under the set age from joining.
  110. set['MinimumAge'] = 100 -- Age a player must be above (in days) if AntiNewAge is enabled.
  111. set['AntiSpeed'] = false -- Trys to stop speed hackers
  112. set['AntiGui'] = false -- Prevents non-game/kohls guis from being spawned on players, such as the account stealing gui.
  113. set['AntiNil'] = true -- Crashes anyone who goes "nil"
  114. set['AntiNoclip'] = false -- (USELESS AGAINST CURRENT NOCLIP EXPLOIT however can stop script based noclipping and will update when a usable antiexploit method is found.) Attempts to stop noclipping, not 100% but is better then nothing, can be buggy.
  115. set['AntiAnimation'] = false -- Prevents animation exploit
  116. set['AntiExploitWordList'] = {} -- Add kick words to this list, will kick a player if they say something on the list, works with string patterns.
  117. set['AllowedGuiList'] = {}
  118. --If there is a gui in your game that is not in startergui
  119. --then add its name to this table, do note that if the
  120. --name of the gui is just ScreenGui or something like
  121. --that, if a hacker inserts a gui with the same name
  122. --it will not be removed, so make sure you make the name
  123. --of the gui very specific.
  124. ---------------------
  125. -- Group Settings --
  126. ---------------------
  127. set['GroupAdmin'] = true -- If a certain group can have admin
  128. set['GroupOnlyJoin'] = false -- Makes it so ONLY people in the set group can join the game.
  129. set['GroupId'] = 1133981 -- Id of group, used for group admin and info/join message, if set will display a user's rank when the info command is used on them.
  130. set['RankType'] = "Specific" -- Specific/NonSpecific, sets how to check ranks, NonSpecific uses the old kohls method for checking ranks (rank+) Specific checks the SpecificRanks table for if a player has the rank.
  131. set['SpecificRanks'] = {"Helpers"}-- Add what ranks have admin to this table. EX: set['SpecificRanks'] = {"RANKNAME=Owner/Admin/TempAdmin/Banned","Generals=Admin","Intern Director=TempAdmin"} (NOTE THAT RANK NAMES CONTAINING = ARE NOT SUPPORTED, USE ITS RANK NUMBER INSTEAD!
  132. set['NonSpecificRank'] = 0 --(Old Kohls Method) Set rank here if RankType="NonSpecific", needs to be rank number NOT NAME, otherwise add ranks to have admin into the SpecificRanks table.
  133. set['NonSpecificRankType'] = 'TempAdmin'
  134. ---------------------
  135. -- VIP Admin --
  136. ---------------------
  137. set['VipAdmin'] = false -- If someone can have admin for owning an item
  138. set['ItemId'] = 0 -- The item they must own in order to have admin
  139. set['ItemType'] = 'GamePass' -- type of item. (GamePass/Badge)
  140. set['FriendAdmin'] = false -- Set to true if you want people on your friendlist to have admin
  141. ---------------------
  142. -- GUI Settings --
  143. ---------------------
  144. set['PrimaryColor'] = Color3.new(0,0,0)
  145. set['SecondaryColor'] = Color3.new(1,1,1)
  146. set['TextColor'] = Color3.new(1,1,1)
  147. set['TextStrokeColor'] = Color3.new(0,0,0)
  148. set['Transparency'] = 0.5
  149. ---------------------
  150. -- Extra --
  151. ---------------------
  152. set['MusicList'] = {{Name='SadPiano',Id=130798493}} -- Add music to this table using the format: {Name='ExampleSong',Id=1234567} so that the table would look like local MusicList={{Name='ExampleSong',Id=1234567};{Name='ExampleSong2',Id=1234568}}, if you want to add pitch/volume simply insert Pitch and Volume EX: {Name='ExampleSong2',Id=1234568,Pitch=2,Volume=0.5}
  153. ---------------------
  154. -- Updatable --
  155. ---------------------
  156. UpdatableSettings={
  157. 'Owners';
  158. 'Admins';
  159. 'TempAdmins';
  160. 'BanList';
  161. 'MuteList';
  162. 'Prefix';
  163. 'AnyPrefix';
  164. 'SpecialPrefix';
  165. 'SplitKey';
  166. 'AutoUpdate';
  167. 'FunCommands';
  168. 'NoTalk';
  169. 'HelpSystem';
  170. 'ChatLog';
  171. 'MaxNumberOfLogs';
  172. 'JoinMessage';
  173. 'DonorStuff';
  174. 'PermBanKey';
  175. 'FreeAdmin';
  176. 'FreeAdminType';
  177. 'AutoClean';
  178. 'AutoCleanDelay';
  179. 'PlayerCommands';
  180. 'OwnersAreTrueOwners';
  181. 'PMUsableByAnyone';
  182. 'AdminsSpawnWithGuis';
  183. 'HelpGui';
  184. 'CustomChat';
  185. 'CustomChatType';
  186. 'SyncedBanList';
  187. 'SBLSetId';
  188. 'SBLWait';
  189. 'AntiExploit';
  190. 'AntiRobloxLocked';
  191. 'AntiNewAccount';
  192. 'MinimumAge';
  193. 'AntiSpeed';
  194. 'AntiGui';
  195. 'AntiNil';
  196. 'AntiNoclip';
  197. 'AntiAnimation';
  198. 'AntiExploitWordList';
  199. 'AllowedGuiList';
  200. 'GroupAdmin';
  201. 'GroupOnlyJoin';
  202. 'GroupId';
  203. 'RankType';
  204. 'NonSpecificRank';
  205. 'NonSpecificRankType';
  206. 'VipAdmin';
  207. 'ItemId';
  208. 'ItemType';
  209. 'FriendAdmin';
  210. 'PrimaryColor';
  211. 'SecondaryColor';
  212. 'TextColor';
  213. 'TextStrokeColor';
  214. 'Transparency';
  215. }
  216. coroutine.wrap(function()
  217. repeat wait() until game:GetService("DataStoreService")
  218. local DataStore = game:GetService("DataStoreService"):GetDataStore(set.DataStoreKey)
  219. if set.ChangedSettingsStick and game.CreatorId>0 then
  220. repeat wait() until DataStore
  221. for imp,ves in pairs(UpdatableSettings) do
  222. local run=true
  223. for k,m in pairs(set.SettingsToIgnore) do if m and v==m then run=false end end
  224. if DataStore:GetAsync(ves)~=nil and run then
  225. set[ves]=DataStore:GetAsync(ves)
  226. end
  227. end
  228. end
  229. end)()
  230. ---------------------
  231. -- Tips and Tricks --
  232. ---------------------
  233. --[[
  234. With this admin you can do a command on multiple people at a time;
  235. :kill me,noob1,noob2,!random,%raiders,$123456,!nonadmins
  236. -- kills you, noob1, noob2, a random person, team raiders, people in group 123456, and nonadmins.
  237. You can also run silent commands using /e, for example:
  238. "/e :kill kohl" Do not that this will still show up in logs.
  239.  
  240. You can also use a variety commands for different people;
  241. !all --everyone in the server
  242. !others --like !all but not you
  243. me --you
  244. %TEAMNAME --Ex: :kill %raiders will kill everyone in team Raiders.
  245. $GROUPID -- Let you kill anyone in a specific group, if an id is not given it will use the GroupId setting.
  246. !admins --admins in the server
  247. !nonadmins --people who are not admins in the server
  248. !random --a random person, this can include you.
  249.  
  250. If you want to add cameras to your game (like saved into your game so you don't need to use the admin script to spawn them every new server)
  251. then just make a camera, needs to be a single part, so a sphere, brick, what ever it may be, make sure its anchored and locked
  252. just simply position it where you want in workspace, then make its name Camera: NAMEHERE
  253. so for example: Camera: Cam1
  254. the name is very important as the script will look for it in workspace when the game starts.
  255. make sure you name each camera something diffierent.
  256.  
  257. MESSAGES/HINTS FOR OTHER SCRIPTS:
  258. If you would like to have the hints/messages from this script usable in other SERVER (not local)
  259. scripts, then simply put the follow at the top of your script,
  260.  
  261. message=_G['Message']
  262. hint=_G['Hint']
  263.  
  264. USAGE EXAMPLES:
  265. hint(msg,playerstable) - message(title,msg,playerstable)
  266.  
  267. (Do note that playerstable needs to be a table containing players.
  268. Use game.Players:children() to send a message ot everyone.)
  269.  
  270. hint('Hello people',game.Players:children()) <=== sends "Hello people" to all people in game
  271. hint('Heyo montano',{game.Players.montano60}) <=== Sends "Heyo montano" to montano60
  272. message('Server Message','Hello people',game.Players:children())
  273. message('Message from swagyguy','Heyo montano',{game.Players.montano60})
  274. --]]
  275. --------------------------------------------------------------------------------------
  276. --------------------------------------------------------------------------------------
  277. ----[ WARNING: Editing anything below could result errors and break the script! ]-----
  278. ---------------[ DO NOT MODIFY UNLESS YOU KNOW WHAT YOU ARE DOING! ]------------------
  279. --------------------------------------------------------------------------------------
  280. --------------------------------------------------------------------------------------
  281. --[ Main Script Function ]--
  282. set.MainScriptFunction=function()
  283. coroutine.wrap(function()
  284. print('Epix Kohls: Starting')
  285. changelog={
  286. 'KEY: -Removed +Added *Changed/Fixed !Important';
  287. '----------------------------------------------';
  288. '316:';
  289. '*New message/hint animations';
  290. '--------------------------------------';
  291. '315:';
  292. '*Corrected spelling error';
  293. '--------------------------------------';
  294. '314:';
  295. '+Help GUI and setting for it';
  296. '*Bug fixes';
  297. '*Minor code changes';
  298. '--------------------------------------';
  299. '313:';
  300. '+Message/Hint tweening';
  301. '+Givepoints command';
  302. '+Points command (shows ammount of points)';
  303. '+Poison command';
  304. '!Thanks go to GloriedRage for suggesting the new commands :)';
  305. "!I know KohltastropheRBLX took this script and re-uploaded it, the real Kohl is Scripth. The last official version was V2.";
  306. "!Kohl is currently working on Scripth's Admin Commands, its nice so far, be sure to check it out when its done!";
  307. '--------------------------------------';
  308. '312:';
  309. '+Crucify command';
  310. '--------------------------------------';
  311. '311:';
  312. '*Updates to the way plugins work';
  313. '+Added another example to the example plugin to change command perms';
  314. '*Bug fixes';
  315. '--------------------------------------';
  316. '310:';
  317. '+Tornado command, ye I know, I dun stole the blackhole part (no idea who made it), lol';
  318. '*Bug fixes';
  319. '--------------------------------------';
  320. '309:';
  321. '*Script has built in AntiExploitWordList';
  322. '--------------------------------------';
  323. '308:';
  324. '+AdminsSpawnWithGuis setting (set to off by default)';
  325. '--------------------------------------';
  326. '307:';
  327. '*Bug fixes';
  328. '--------------------------------------';
  329. '306:';
  330. '*Changed how chat bubbles look and resize';
  331. '--------------------------------------';
  332. '305:';
  333. '*Chat bug fixes';
  334. '+Ignore/UnIgnore to chat';
  335. '*Mute now works on the custom chat';
  336. '+Chat first join message';
  337. '--------------------------------------';
  338. '304:';
  339. '*Chat now makes users wait 0.5 seconds before sending a message (anti spam)';
  340. '*Chat bar will clear bar now when clicked if nothing was typed into it by the user';
  341. '--------------------------------------';
  342. '303:';
  343. '*Custom chat bubbles now fade out and stack';
  344. '--------------------------------------';
  345. '302:';
  346. '*Fixed custom chat private messaging';
  347. '--------------------------------------';
  348. '301:';
  349. '+Custom chat now has private messaging, say @playername message to send a msg to that plr';
  350. '--------------------------------------';
  351. '300:';
  352. '!People using the custom chat might need to update manually';
  353. '--------------------------------------';
  354. '299:';
  355. '*Bug fixes';
  356. '*Admins wont spawn with the admin chat if CustomChat is true';
  357. '+Custom chat now has chat bubbles';
  358. '+Setting for custom chat type (classic/bubbles/both)';
  359. '+Custom chat now has an admin mode (for admins ofcourse)';
  360. '!Thanks to Kohltastrophe for helping with the chat bubbles';
  361. '!Kohl is making a new admin and a custom chat, check it out when hes done!';
  362. '!His new account is Scripth!';
  363. '!When his admin is finished this WILL continue to update';
  364. '*Trimmed changelog';
  365. '-------------------------------------';
  366. '298:';
  367. '*Chat system updates';
  368. '*Chat system no longer shows who is an admin';
  369. '*Chat system displays mode using colors. Global-cyanish,Team-greenish,Local-gray';
  370. '------------------------------------';
  371. '297:';
  372. '*Bug fixes';
  373. '-unta';
  374. '-unpa';
  375. '-unoa';
  376. "*unadmin now works for all admin types based on the user's admin level";
  377. '*Admin/UnAdmin commands grouped to bottom of cmd list';
  378. '-Removed the Command Descriptions at the top of the script';
  379. '+Command names in the command list';
  380. '+Local chat cache (chats stay after you die)';
  381. '+Custom chat minimize/maximize button';
  382. '------------------------------------';
  383. '296:';
  384. '*Bug fixes';
  385. '*Chat bar updates';
  386. '*Chat gui background now transparent';
  387. '---------------------------------';
  388. '295:';
  389. '*Bug fixes';
  390. '---------------------------------';
  391. '294:';
  392. '-Removed NilScript Setting';
  393. '*PersonalServer support without setting a setting';
  394. '*Script now always goes to ServerScriptService';
  395. '!Special thanks to einsteinK for his help';
  396. '!And thanks to eKeynet for helping me test the custom chat';
  397. '---------------------------------';
  398. '293:';
  399. '*Bug fixes';
  400. '---------------------------------';
  401. '292:';
  402. '*Lots of fixes';
  403. '*Changed how commands are made and found';
  404. '*Updated custom chat';
  405. '*Settings changed in-game save';
  406. '+Plugin support';
  407. '!Kohl is currently making a new admin script. I will continue updating this. His new account is Scripth.';
  408. '---------------------------------';
  409. '291:';
  410. '+SplitKey setting, no more forcing you to use space to seperate arguments :)';
  411. '---------------------------------';
  412. '290:';
  413. '*Bug fixes';
  414. '---------------------------------';
  415. '289:';
  416. '+Basic custom chat (I Plan to make updates to it in the future)';
  417. '*Bug fixes';
  418. '*Performance';
  419. '*Cleaned code up a bit';
  420. '*NewPlayer function fixed up';
  421. '---------------------------------';
  422. '288:';
  423. '*Bug fixes';
  424. '---------------------------------';
  425. '287:';
  426. '*Bug fixes';
  427. '---------------------------------';
  428. '286:';
  429. '!MAJOR UPDATES!';
  430. '!ALL CURRENT OWNERS MUST MANUALLY UPDATE!';
  431. '*All GUIs are now client side';
  432. '*Client handles more things';
  433. '+New "Client" script that gets loaded onto the player client';
  434. '*Updates to the Update System';
  435. '!REPORT ANY AND ALL BUGS ASAP!';
  436. '---------------------------------';
  437. '285:';
  438. '*Bug fixes';
  439. '---------------------------------';
  440. '284:';
  441. '*Bug fixes';
  442. '---------------------------------';
  443. '283:';
  444. '*Bug fixes';
  445. '---------------------------------';
  446. '282:';
  447. '*PM now has a reply. Suggested by kindnesslord';
  448. '---------------------------------';
  449. '281:';
  450. '*Bug fixes';
  451. '*Max Number of Logs has a MAX of 1500 to avoid problems. (will set itself to 1500 if above 1500)';
  452. '---------------------------------';
  453. '280:';
  454. '*Hint stacking (up to 5 on screen at one time)';
  455. '*Bug fixes';
  456. '---------------------------------';
  457. '279:';
  458. '+Added the ability to use Messages/Hints from other scripts';
  459. '!Refer to tips and tricks to learn how to use messages/hints from this in other server scripts';
  460. '---------------------------------';
  461. '278:';
  462. '*Bug fixes';
  463. '---------------------------------';
  464. '277:';
  465. '*/e is filtered by the anti exploit';
  466. '*Silent commands can be done by using /e :kill kohl for example';
  467. '---------------------------------';
  468. '276:';
  469. '*Bug fixes';
  470. '---------------------------------';
  471. '275:';
  472. '*Bug fixes';
  473. '---------------------------------';
  474. '274:';
  475. '+PMUsableByAnyone setting, suggested by GloriedRage';
  476. '+Freefall cmd, suggested by GloriedRage';
  477. '*Bug fixes';
  478. '---------------------------------';
  479. '273:';
  480. '*Updated donor system, anyone who bought the custom cape and change their cape for the game in-game';
  481. '---------------------------------';
  482. '272:';
  483. '+Display error if player does not exist, suggested by GloriedRage';
  484. '---------------------------------';
  485. '271:';
  486. '+OwnersAreTrueOwners setting';
  487. }
  488. ---------------------
  489. -- Main Script --
  490. ---------------------
  491. if _G['Kohls Admin [Epix Edit] Update'] then
  492. local updated,failed=ypcall(function()
  493. print('AutoUpdate: Grabbing update data...')
  494. for i,v in pairs(_G['Kohls Admin [Epix Edit] Update']) do
  495. set[i]=v
  496. end
  497. --------------------------------
  498. _G['Kohls Admin [Epix Edit] Update']=nil
  499. end)
  500. if not failed then
  501. print('AutoUpdate: Finished Updating.')
  502. else
  503. print('AutoUpdate: Update Failed.')
  504. print('Please contact montano60 as this may be a bug.')
  505. print('Error: '..failed)
  506. print('If this error persist please check your settings. If needed disable AutoUpdate until the issue is solved.')
  507. end
  508. end
  509. local deps=script:FindFirstChild('Script Dependencies')
  510. if not deps then error('Script Dependencies not found!') end
  511. set.LocalScriptBase=deps:FindFirstChild('LocalScriptBase')
  512. set.ScriptBase=deps:FindFirstChild('ScriptBase')
  513. set.Client=deps:FindFirstChild('Client')
  514. local origsettings = {
  515. abt = game:service('Lighting').Ambient,
  516. oabt = game:service('Lighting').OutdoorAmbient,
  517. brt = game:service('Lighting').Brightness,
  518. time = game:service('Lighting').TimeOfDay,
  519. fclr = game:service('Lighting').FogColor,
  520. fe = game:service('Lighting').FogEnd,
  521. fs = game:service('Lighting').FogStart,
  522. gs = game:service('Lighting').GlobalShadows,
  523. ol = game:service('Lighting').Outlines,
  524. sc = game:service('Lighting').ShadowColor}
  525. set.objects = {}
  526. set.needhelp={}
  527. set.adminchats={}
  528. set.cameras = {}
  529. set.defaultpass={157092510,159549976}
  530. set.custompass={159551100,157092584}
  531. set.dontlog = {}
  532. set.mapbackup = {}
  533. set.logs = {}
  534. set.chatlogs = {}
  535. set.clients = {}
  536. set.donors={}
  537. set.contans={}
  538. set.bl = {}
  539. set.canuseloadstring=false
  540. set.slock = false
  541. set.lighttask = false
  542. set.dlastupdate='Not Updated Yet'
  543. set.NTacId = 618833*2
  544. set.version = script.Version.Value
  545. set.HelpRequest={}
  546. set.Commands={}
  547. set.OpenVote={}
  548. set.ScriptAntiWordList={'getitem[^%s]','workspace%.[^%s^%.]','[^%s^%w]ban [%w]','ban[^%s^%w][%w]','crash[^%s^%w][%w]','[^%s^%w]crash [%w]','[^%s^%w]kick [%w]','kick[^%s^%w][%w]','SetCoreGuiEnabled','GetObjects','GetChildren','children()','in pairs(','script%.Parent','game%.Workspace','game:service','GetService','game%.Debris','game%.Lighting','game%.Players','loadstring(','InsertService','LoadAsset','FindFirstChild','while (.*) do','Instance.new'}
  549. set.ScriptMusicList={
  550. {n='heybrother',id=143786134};
  551. {n='loseyourself',id=153480949};
  552. {n='diamonds',id=142533681};
  553. {n='happy',id=146952916};
  554. {n='clinteastwood',id=148649589};
  555. {n='freedom',id=130760592};
  556. {n='seatbelt',id=135625718};
  557. {n='tempest',id=135554032};
  558. {n="focus",id=136786547};
  559. {n="azylio",id=137603138};
  560. {n="caramell",id=2303479};
  561. {n="epic",id=27697743};
  562. {n="rick",id=2027611};
  563. {n="crystallize",id=143929751};
  564. {n="halo",id=1034065};
  565. {n="pokemon",id=1372261};
  566. {n="cursed",id=1372257};
  567. {n="extreme",id=11420933};
  568. {n="harlemshake",id=142468820};
  569. {n="tacos",id=142295308};
  570. {n="wakemeup",id=147632133};
  571. {n="awaken",id=27697277};
  572. {n="alone",id=27697392};
  573. {n="mario",id=1280470};
  574. {n="choir",id=1372258};
  575. {n="chrono",id=1280463};
  576. {n="dotr",id=11420922};
  577. {n="entertain",id=27697267};
  578. {n="fantasy",id=1280473};
  579. {n="final",id=1280414};
  580. {n="emblem",id=1372259};
  581. {n="flight",id=27697719};
  582. {n="banjo",id=27697298};
  583. {n="gothic",id=27697743};
  584. {n="hiphop",id=27697735};
  585. {n="intro",id=27697707};
  586. {n="mule",id=1077604};
  587. {n="film",id=27697713};
  588. {n="nezz",id=8610025};
  589. {n="angel",id=1372260};
  590. {n="resist",id=27697234};
  591. {n="schala",id=5985787};
  592. {n="organ",id=11231513};
  593. {n="tunnel",id=9650822};
  594. {n="spanish",id=5982975};
  595. {n="venom",id=1372262};
  596. {n="wind",id=1015394};
  597. {n="guitar",id=5986151};
  598. {n="selfie1",id=148321914};
  599. {n="selfie2",id=151029303};
  600. {n="fareast",id=148999977};
  601. {n="ontopoftheworld",id=142838705};
  602. {n="mashup",id=143994035};
  603. {n="getlucky",id=142677206};
  604. {n="dragonborn",id=150015506};
  605. {n="craveyou",id=142397454};
  606. {n="weapon",id=142400410};
  607. {n="derezzed",id=142402620};
  608. {n="burn",id=142594142};
  609. {n="workhardplayhard",id=144721295};
  610. {n="royals",id=144662895};
  611. {n="pompeii",id=144635805};
  612. {n="powerglove",id=152324067};
  613. {n="pompeiiremix",id=153519026};
  614. {n="sceptics",id=153251489};
  615. {n="pianoremix",id=142407859};
  616. {n="antidote",id=145579822};
  617. {n="takeawalk",id=142473248};
  618. {n="countingstars",id=142282722};
  619. {n="turndownforwhat",id=143959455};
  620. {n="overtime",id=145111795};
  621. {n="fluffyunicorns",id=141444871};
  622. {n="gaspedal",id=142489916};
  623. {n="bangarang",id=142291921};
  624. {n="talkdirty",id=148952593};
  625. {n="bad",id=155444244};
  626. {n="demons",id=142282614};
  627. {n="roar",id=148728760};
  628. {n="letitgo",id=142343490};
  629. {n="finalcountdown",id=142859512};
  630. {n="tsunami",id=152775066};
  631. {n="animals",id=142370129};
  632. {n="partysignals",id=155779549};
  633. {n="finalcountdownremix",id=145162750};
  634. {n="mambo",id=144018440};
  635. {n="stereolove",id=142318819};
  636. {n='minecraftorchestral',id=148900687}}
  637. set.quotes={'I came, I saw, I conquered. - Julius Ceasar';
  638. '"Our greatest glory is not in never falling, but in rising every time we fall." - Confucius';
  639. '"History will be kind for me for I intend to write it." - Winston Churchill';
  640. '"If you are neutral in situations of injustice, you have chosen the side of the oppressor. If an elephant has its foot on the tail of a mouse and you say that you are neutral, the mouse will not appreciate your neutrality." - Desmond Tutu';
  641. '"History is a relentless master. It has no present, only the past rushing into the future. To try to hold fast is to be swept aside." - John F. Kennedy';
  642. '"Those who do not remember the past are condemned to repeat it." - George Santayana';
  643. '"A pint of sweat, saves a gallon of blood." - George S. Patton';
  644. '"This is one small step for a man, one giant leap for mankind." - Neil Armstrong';
  645. '"History is the version of past events that people have decided to agree upon." - Napoleon Bonaparte';
  646. '"To see the world, things dangerous to come to, to see behind walls, to draw closer, to find each other and to feel. That is the purpose of life." - Life Motto Secret Life of Walter Mitty';
  647. [["Beautiful things don't seek attention" - Sean O'Connell in The Secret Life of Walter Mitty]];
  648. '"The only thing we have to fear is fear itself" - Franklin D. Roosevelt';
  649. '"Even if I knew that tomorrow the world would go to pieces, I would still plant my apple tree." - Martin Luther';
  650. '"Thousands of candles can be lighted from a single candle, and the life of the candle will not be shortened. Happiness never decreases by being shared." - Buddha';
  651. [["We can't help everyone, but everyone and help someone." - Ronald Reagan]];
  652. '"Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time." - Thomas A. Edison';
  653. [["Even if you fall on your face, you're still moving forward." - Victor Kiam]];
  654. '"Strive not to be a success, but rather to be of value." - Albert Einstein';
  655. [["You miss 100% of the shots you don't take." - Wayne Gretzky]];
  656. [["Your time is limited, so don't waste it living someone else's life." - Steve Jobs]];
  657. '"The only person you are destined to become is the person you decide to be." - Ralph Waldo Emerson';
  658. '"Fall seven times and stand up eight" - Japanese Proverb';
  659. '"Everything has beauty, but not everyone can see." - Confucius';
  660. '"A person who never made a mistake never tried anything new." - Albert Einstein';
  661. '"The person who says it cannot be done should not interrupt the person who is doing it." - Chinese Proverb';
  662. '"It does not matter how slowly you go as long as you do not stop." - Confucius'
  663. }
  664.  
  665. coroutine.wrap(function() script.Parent=game:service('ServerScriptService') end)()
  666. coroutine.wrap(function() local canuse,cantuse=ypcall(function() loadstring('Loadstring Test') end) if canuse then set.canuseloadstring=true end end)()
  667. if (not set.LocalScriptBase) or (not set.ScriptBase) or (not set.Client) then print('Kohls Admin [Epix Edit]: One or more dependencies are missing! Cannot function without them.') error('Missing one or more script dependencies. Try manually updating.') end
  668. set.GuiName=tostring(math.random(10000000,99999999))
  669. _G['Hint']=function(msg,ptable) set.Hint(msg,ptable) end
  670. _G['Message']=function(title,msg,ptable) set.Message(title,msg,true,ptable) end
  671. if set['MaxNumberOfLogs']>1500 then set['MaxNumberOfLogs']=1500 end
  672. coroutine.wrap(function() for i,v in pairs(set.ScriptAntiWordList) do table.insert(set.AntiExploitWordList,v) end for i,v in pairs(set.ScriptMusicList) do table.insert(set['MusicList'],{Name=v.n,Id=v.id}) end end)()
  673. coroutine.wrap(function() if set['AntiGui']==true then for i,v in pairs(game.StarterGui:children()) do v.Name=set.GuiName..v.Name fiz=facb end end end)()
  674. coroutine.wrap(function() if game.CreatorId<=0 then table.insert(set['Owners'],'Player1') print('Player1 added') end end)()
  675. coroutine.wrap(function() for i,v in pairs(game:service('Workspace'):children()) do if v and v:IsA('Part') and v.Name:match('Camera: (.*)') then table.insert(set.cameras,v) end end end)()
  676. coroutine.wrap(function() for i,v in pairs(game:service('Workspace'):children()) do if not v:IsA('Terrain') then table.insert(set.mapbackup,v) end end end)()
  677. coroutine.wrap(function()
  678. set.RemoteName=tostring(math.random(10000000,99999999))
  679. set.RemoteExecute=tostring(math.random(10000000,99999999))
  680. set.RemoteCmd=tostring(math.random(10000000,99999999))
  681. set.MakeRemoteEvent=function()
  682. RemoteEvent=Instance.new('RemoteEvent',game:service('Workspace'))
  683. RemoteEvent.Name=set.RemoteName
  684. RemoteEvent.Changed:connect(function(ob) if RemoteEvent and RemoteEvent.Name~=set.RemoteName then RemoteEvent.Name=set.RemoteName end end)
  685. RemoteEvent=game:service('Workspace'):FindFirstChild(set.RemoteName)
  686. RemoteEvent.OnServerEvent:connect(function(p,cmd,a,b,c,...)
  687. pcall(set.CheckCommand,p,cmd,a,b,c,...)
  688. --set.CheckCommand(p,cmd,a,b,c,...) --DEBUG ONLY
  689. end)
  690. end
  691. set.MakeRemoteEvent() end)()
  692. coroutine.wrap(function() game.Workspace.ChildRemoved:connect(function(ob) wait() if ob.Name==set.RemoteName and ob:IsA('RemoteEvent') and not workspace:FindFirstChild(set.RemoteName) then set.MakeRemoteEvent() end end) end)()
  693.  
  694. set.SendCustomChat=function(p,a,b)
  695. local target=set.SpecialPrefix..'all'
  696. if a:sub(1,1)=='@' then
  697. b='Private'
  698. target,a=a:match('@(.%S+) (.+)')
  699. print(target..' '..a)
  700. set.Remote(p,'Function','SendToChat',p,a,b)
  701. elseif a:sub(1,1)=='#' then
  702. if a:sub(1,7)=='#ignore' then
  703. target=a:sub(9)
  704. b='Ignore'
  705. end
  706. if a:sub(1,9)=='#unignore' then
  707. target=a:sub(11)
  708. b='UnIgnore'
  709. end
  710. end
  711. for i,v in pairs(set.GetPlayers(p,target:lower())) do
  712. coroutine.wrap(function()
  713. if p.Name==v.Name and b~='Private' and b~='Ignore' and b~='UnIgnore' then
  714. set.Remote(v,'Function','SendToChat',p,a,b)
  715. elseif b=='Global' then
  716. set.Remote(v,'Function','SendToChat',p,a,b)
  717. elseif b=='Team' and p.TeamColor==v.TeamColor then
  718. set.Remote(v,'Function','SendToChat',p,a,b)
  719. elseif b=='Local' and p:DistanceFromCharacter(v.Character.Head.Position)<80 then
  720. set.Remote(v,'Function','SendToChat',p,a,b)
  721. elseif b=='Admin' and set.ChkAdmin(v.Name,false) and set.ChkAdmin(p.Name,false) then
  722. set.Remote(v,'Function','SendToChat',p,a,b)
  723. elseif b=='Private' and v.Name~=p.Name then
  724. set.Remote(v,'Function','SendToChat',p,a,b)
  725. elseif b=='Ignore' and v.Name~=p.Name then
  726. set.Remote(v,'AddToTable','IgnoreList',v.Name)
  727. elseif b=='UnIgnore' and v.Name~=p.Name then
  728. set.Remote(v,'RemoveFromTable','IgnoreList',v.Name)
  729. end
  730. end)()
  731. end
  732. end
  733.  
  734. set.CheckCommand=function(p,cmd,a,b,c,...)
  735. if cmd==set.RemoteCmd..'Chat' then
  736. coroutine.wrap(function() set.Chat(a,p) end)()
  737. if set['CustomChat'] and a:sub(1,3)~='/e ' then
  738. set.SendCustomChat(p,a,b)
  739. end
  740. elseif cmd==set.RemoteCmd..'AdminCommand' then
  741. set.ChatCommand(p,a)
  742. elseif cmd==set.RemoteCmd..'ClientHooked' then
  743. table.insert(set.clients,p.Name)
  744. elseif cmd==set.RemoteCmd..'AdminChat' then
  745. for i,v in pairs(game.Players:children()) do
  746. set.Remote(v,'Function','UpdateAdminChat',a)
  747. end
  748. elseif cmd==set.RemoteCmd..'RanCode' then
  749. if not set.ChkAdmin(p,false) and set['AntiExploit'] then
  750. set.Remote(p,'Execute',[[while true do end]])
  751. end
  752. elseif cmd==set.RemoteCmd..'GetSetting' then
  753. if set[a] then set.Remote(p,'SetSetting',a,set[a]) end
  754. elseif cmd==set.RemoteCmd..'CheckDonor' then
  755. if set.ChkDonor(p) then
  756. set.Remote(p,'SetSetting','Donor',true)
  757. else
  758. set.Remote(p,'SetSetting','Donor',false)
  759. end
  760. elseif cmd==set.RemoteCmd..'CheckAdmin' then
  761. if set.ChkAdmin(p.Name,false) then
  762. set.Remote(p,'SetSetting','IsAdmin',true)
  763. else
  764. set.Remote(p,'SetSetting','IsAdmin',false)
  765. end
  766. elseif cmd==set.RemoteCmd..'AddToTable' then
  767. table.insert(set[a],b)
  768. elseif cmd==set.RemoteCmd..'SetSetting' then
  769. if a=='Prefix' then
  770. local orig=set.Prefix
  771. set[a]=b
  772. for i,v in pairs(set.Commands) do
  773. if v.Prefix==orig then
  774. v.Prefix=set.Prefix
  775. end
  776. end
  777. else
  778. set[a]=b
  779. end
  780. repeat DataStore:SetAsync(a,b) wait() until DataStore:GetAsync(a)==b
  781. elseif cmd==set.RemoteCmd..'GetUpdatableSettings' then
  782. set.Remote(p,'SetSetting','UpdatableSettings',UpdatableSettings)
  783. elseif cmd==set.RemoteCmd..'TableRemove' then
  784. table.remove(set[a],b)
  785. elseif cmd==set.RemoteCmd..'Destroy' then
  786. a:Destroy()
  787. elseif cmd==set.RemoteCmd..'GetServerInfo' then
  788. local det={}
  789. local nilplayers=0
  790. for i,v in pairs(game:service('NetworkServer'):children()) do
  791. if v and v:GetPlayer() and not game.Players:FindFirstChild(v:GetPlayer().Name) then
  792. nilplayers=nilplayers+1
  793. end
  794. end
  795. det.NilPlayers=nilplayers
  796. det.PlaceName=game:service('MarketplaceService'):GetProductInfo(game.PlaceId).Name
  797. det.PlaceOwner=game:service('MarketplaceService'):GetProductInfo(game.PlaceId).Creator.Name
  798. det.ServerSpeed=set.Round(workspace:GetRealPhysicsFPS())
  799. det.AdminVersion=version
  800. det.ServerStartTime=set.ServerStartTime
  801. local nonnumber=0
  802. for i,v in pairs(game:service('NetworkServer'):children()) do
  803. if v and v:GetPlayer() and not set.ChkAdmin(v:GetPlayer().Name,false) then
  804. nonnumber=nonnumber+1
  805. end
  806. end
  807. det.NonAdmins=nonnumber
  808. local adminnumber=0
  809. for i,v in pairs(game:service('NetworkServer'):children()) do
  810. if v and v:GetPlayer() and set.ChkAdmin(v:GetPlayer().Name,false) then
  811. adminnumber=adminnumber+1
  812. end
  813. end
  814. det.CurrentTime=set.GetTime()
  815. det.Admins=adminnumber
  816. det.Objects=#set.objects
  817. det.Cameras=#set.cameras
  818. set.Remote(p,'SetSetting','ServerInfo',det)
  819. elseif cmd==set.RemoteCmd..'Ping' then
  820. set.Remote(p,'Pong')
  821. elseif cmd==set.RemoteCmd..'GivePing' then
  822. set[p.Name..'Ping']=a
  823. elseif cmd==set.RemoteCmd..'PrivateMessage' then
  824. set.PM(a,b,c,...)
  825. elseif cmd==set.RemoteCmd..'PlaceVote' then
  826. if b=='yes' then
  827. set.OpenVote[a].Yes=set.OpenVote[a].Yes+1
  828. elseif b=='no' then
  829. set.OpenVote[a].No=set.OpenVote[a].No+1
  830. end
  831. for k,m in pairs(set.OpenVote[a].novote) do
  832. if m.userId==p.userId then
  833. table.remove(set.OpenVote[z].novote, k)
  834. end
  835. end
  836. elseif cmd==set.RemoteCmd..'HelpRespond' then
  837. if b then
  838. set.HelpRequest[a].Solved=true
  839. else
  840. for k,m in pairs(set.HelpRequest[a].Available) do
  841. if m==p.Name then table.remove(set.HelpRequest[a].Available,k) end
  842. end
  843. end
  844. elseif cmd==set.RemoteCmd..'SetCape' then
  845. a:WaitForDataReady()
  846. local ab,bc
  847. if b:match('(.*);(.*)') then
  848. ab,bc = b:match('(.*);(.*)')
  849. else
  850. ab=b
  851. bc='Really black'
  852. end
  853. a:SaveString('Kohls Cape',ab..'='..bc)
  854. a:SaveBoolean('Kohls Is A Donator',true)
  855. for i,v in pairs(set.donors) do
  856. if v.Name==a.Name then
  857. table.remove(set.donors,i)
  858. end
  859. end
  860. table.insert(set.donors,{Name=a.Name,Id=tostring(a.userId),Cape=ab,Color=bc,List='GP'})
  861. if a.Character:FindFirstChild('EpicCape') and a.Character.EpicCape:FindFirstChild('Decal') then
  862. a.Character.EpicCape.Decal.Texture = "http://www.roblox.com/asset/?id="..ab
  863. a.Character.EpicCape.BrickColor=BrickColor.new(bc)
  864. end
  865. elseif cmd==set.RemoteCmd..'PermBan' then
  866. if set.ChkTrueOwner(p) and not ChkAdmin(a.Name,false) then
  867. a:SaveBoolean(set['PermBanKey'],true)
  868. a:Kick()
  869. end
  870. end
  871. end
  872.  
  873. set.Remote=function(player,command,...)
  874. local RemoteEvent=game:service('Workspace'):FindFirstChild(set.RemoteName)
  875. local function fireevent(plr,cmd,...)
  876. RemoteEvent:FireClient(plr,set.RemoteExecute..cmd,...)
  877. end
  878. if player and player:IsA('Player') then
  879. pcall(fireevent,player,command,...)
  880. end
  881. end
  882.  
  883. set.CleanWorkspace=function()
  884. for i, v in pairs(game.Workspace:children()) do
  885. if v:IsA("Hat") or v:IsA("Tool") then
  886. v:Destroy()
  887. end
  888. if v:IsA('Message') or v:IsA('Hint') then
  889. v:Destroy()
  890. end
  891. if v.Name:find('Epix Jail') then
  892. if not game.Players:FindFirstChild(v.Player.Value) then
  893. game:service('Lighting'):FindFirstChild(v.Player.Value..' Epix Jail Tools'):Destroy()
  894. v:Destroy()
  895. for k,m in pairs(set.objects) do
  896. if m.Name==v.Name .. " Epix Jail" then
  897. table.remove(set.objects,k)
  898. end
  899. end
  900. end
  901. end
  902. end
  903. end
  904.  
  905. set.Ping=function(player)
  906. set[player.Name..'Ping']='Ping'
  907. set.Remote(player,'GetPing')
  908. repeat wait() until set[player.Name..'Ping']~='Ping'
  909. return set[player.Name..'Ping']
  910. end
  911.  
  912. set.Split=function(msg,num)
  913. if args==0 then return end
  914. local tab={}
  915. local split=set['SplitKey']
  916. local str=msg
  917. local full=''
  918. for a in str:gmatch('([^%'..split..']+)') do
  919. if #tab>=num then break end
  920. if #tab==num-1 then
  921. tab[#tab+1]=msg:sub(#full+1,#msg)
  922. end
  923. if #tab>=num then break end
  924. str=a..split
  925. full=full..a..split
  926. tab[#tab+1]=a
  927. if #tab>=num then break end
  928. end
  929. return tab
  930. end
  931.  
  932. set.MakeCommand=function(name,adminlevel,prefix,cmds,argtypes,args,func)
  933. if not name or type(name)~='string' then print('No Name')return
  934. elseif not adminlevel or type(adminlevel)~='number' then print(name..' has no admin level') return
  935. elseif not prefix or type(prefix)~='string' then print(name..' has no prefix') return
  936. elseif not cmds or type(cmds)~='table' then print(name..' has no cmds') return
  937. elseif not argtypes or type(argtypes)~='table' then print(name..' has no argtypes') return
  938. elseif not args or type(args)~='number' then print(name..' has no args') return
  939. elseif not func or type(func)~='function' then print(name..' has no func') return
  940. end
  941. local com={}
  942. com.Cmds=cmds
  943. com.MaxArgs=args
  944. com.Function=func
  945. com.ArgTypes=argtypes
  946. com.AdminLevel=adminlevel
  947. com.Prefix=prefix
  948. com.Name=name
  949. table.insert(set.Commands,com)
  950. end
  951.  
  952. set.GetCommand=function(Command)
  953. for i,v in pairs(set.Commands) do
  954. for k,m in pairs(v.Cmds) do
  955. if Command:lower():match(v.Prefix..'(%w+)')==m:lower() then
  956. return v,i
  957. end
  958. end
  959. end
  960. end
  961.  
  962. set.ChatCommand=function(player,chat)
  963. local com,num=set.GetCommand(chat)
  964. if com then--not com then print(chat..' is not a command.') set.Remote(player,'Function','OutputGui',chat..' is not a valid command.') else
  965. local command=chat:match(com.Prefix..'%w+'..set['SplitKey']..'(.+)') or ''
  966. local allowed=false
  967. if com.AdminLevel==-1 and (set.CheckSBLOwner(player) or set.ChkAdmin(player.Name,false)) then
  968. allowed=true
  969. elseif com.AdminLevel==0 and (set.PlayerCommands or set.ChkAdmin(player.Name,false))then
  970. allowed=true
  971. elseif com.AdminLevel==1 and set.ChkDonor(player) then
  972. allowed=true
  973. elseif com.AdminLevel==2 and set.ChkAdmin(player.Name,false) then
  974. allowed=true
  975. elseif com.AdminLevel==3 and set.ChkAdmin(player.Name,true) then
  976. allowed=true
  977. elseif com.AdminLevel==4 and set.ChkOwner(player.Name) then
  978. allowed=true
  979. elseif com.AdminLevel==5 and (set.ChkTrueOwner(player) or (set.ChkOwner(player.Name) and set['OwnersAreTrueOwners'])) then
  980. allowed=true
  981. end
  982. if not allowed then print(player.Name..' is not allowed to run '..chat) set.Remote(player,'Function','OutputGui','You are not allowed to run '..chat) return end
  983. local ran,failed=ypcall(com.Function,player,set.Split(command,com.MaxArgs))
  984. if failed then print(failed) end
  985. table.insert(set.logs, 1,'['..set.GetTime()..'] '..player.Name..' - '..chat)
  986. if #set.logs>=set['MaxNumberOfLogs'] then
  987. table.remove(set.logs,#set.logs)
  988. end
  989. end
  990. end
  991.  
  992. set.CheckPlayer=function(plr, player)
  993. for i,v in pairs(set.GetPlayers(plr, player.Name:lower())) do
  994. if v then return true end
  995. end
  996. end
  997.  
  998. set.Round=function(num)
  999. if num >= 0.5 then
  1000. return math.ceil(num)
  1001. elseif num < 0.5 then
  1002. return math.floor(num)
  1003. end
  1004. end
  1005.  
  1006. set.UpdateSBL=function()
  1007. if not game:GetService('MarketplaceService') then return end
  1008. set.bl = {}
  1009. local col = game:GetService("InsertService"):GetCollection(set['SBLSetId'])
  1010. local function getsblinfo(asset)
  1011. local mp = game:GetService("MarketplaceService"):GetProductInfo(asset.AssetId)
  1012. local fo = mp.Description:match("BANLIST:(%S+)")
  1013. if not fo then return end
  1014. for s in fo:gmatch("[^,]+") do table.insert(set.bl,s) end
  1015. end
  1016. for k,asset in pairs(col) do
  1017. getsblinfo(asset)
  1018. end
  1019. end
  1020.  
  1021. set.CheckSBLOwner=function(plr)
  1022. if not game:GetService('MarketplaceService') then return end
  1023. local val=false
  1024. local col = game:GetService("InsertService"):GetCollection(set['SBLSetId'])
  1025. local function checkforowner(asset)
  1026. local mp = game:GetService("MarketplaceService"):GetProductInfo(asset.AssetId)
  1027. if plr.Name==mp.Creator.Name then val=true end
  1028. end
  1029. for k,asset in pairs(col) do
  1030. checkforowner(asset)
  1031. end
  1032. return val
  1033. end
  1034.  
  1035. set.GetPlayerInfo=function(p,localplayer,msg)
  1036. if not p:IsA("Player") then return end
  1037. local mem
  1038. if p.MembershipType == Enum.MembershipType.None then
  1039. mem='NBC'
  1040. elseif p.MembershipType == Enum.MembershipType.BuildersClub then
  1041. mem='BC'
  1042. elseif p.MembershipType == Enum.MembershipType.TurboBuildersClub then
  1043. mem='TBC'
  1044. elseif p.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  1045. mem='OBC'
  1046. end
  1047. if set['GroupId']~=0 then
  1048. if p:IsInGroup(set['GroupId']) then
  1049. set.Hint(msg.." | "..mem.." | Name: "..p.Name.." ("..p.userId..") | Account Age: "..p.AccountAge.." | Rank: "..p:GetRoleInGroup(set['GroupId']), localplayer)
  1050. else
  1051. set.Hint(msg.." | "..mem.." | Name: "..p.Name.." ("..p.userId..") | Account Age: "..p.AccountAge.." | Player is not in group "..set['GroupId'], localplayer)
  1052. end
  1053. else
  1054. set.Hint(msg.." | "..mem.." | Name: "..p.Name.." ("..p.userId..") | Account Age: "..p.AccountAge, localplayer)
  1055. end
  1056. end;
  1057.  
  1058. set.AdminChat=function(plr)
  1059. if set.ChkAdmin(plr.Name,false) then
  1060. set.Remote(plr,'Function','AdminChat')
  1061. end
  1062. end
  1063.  
  1064. set.CmdBar=function(plr)
  1065. if set.ChkAdmin(plr.Name,false) then
  1066. set.Remote(plr,'Function','CmdBar')
  1067. end
  1068. end
  1069. set.GetTime=function()
  1070. local hour = math.floor((tick()%86400)/60/60)
  1071. local min = math.floor(((tick()%86400)/60/60-hour)*60)
  1072. if min < 10 then min = "0"..min end
  1073. return hour..":"..min
  1074. end set.ServerStartTime=set.GetTime()
  1075.  
  1076. set.GrabNilPlayers=function(name)
  1077. local AllGrabbedPlayers = {}
  1078. for i,v in pairs(game:GetService('NetworkServer'):GetChildren()) do
  1079. ypcall(function()
  1080. if v:IsA("ServerReplicator") then
  1081. if v:GetPlayer().Name:lower():sub(1,#name)==name:lower() or name=='all' then
  1082. table.insert(AllGrabbedPlayers, v:GetPlayer())
  1083. end
  1084. end
  1085. end)
  1086. end
  1087. return AllGrabbedPlayers
  1088. end
  1089.  
  1090. set.AssignName=function()
  1091. local name=math.random(100000,999999)
  1092. return name
  1093. end
  1094.  
  1095. set.LoadScript=function(type,source,name,object,parent)
  1096. pcall(function()
  1097. coroutine.wrap(function()
  1098. local ScriptType
  1099. if type=='Script' then
  1100. ScriptType=set.ScriptBase
  1101. elseif type=='LocalScript' then
  1102. ScriptType=set.LocalScriptBase
  1103. end
  1104. if ScriptType then
  1105. local cl=ScriptType:Clone()
  1106. local key=Instance.new('StringValue',cl)
  1107. key.Name='SecurityKey'
  1108. key.Value=math.random(10000000,99999999)
  1109. cl.Name=name
  1110. local specialkey=Instance.new('StringValue',cl)
  1111. specialkey.Value=math.random(10000000,99999999)
  1112. specialkey.Name='SpecialKey'
  1113. local x = 'local '..specialkey.Value..'="'..key.Value..'" coroutine.wrap(function() '..source
  1114. local y = '' for i = 1,string.len(x) do y = y.. string.char(44) .. string.byte(x:sub(i,i)) end
  1115. local code=Instance.new('StringValue',cl)
  1116. code.Name='Code'
  1117. code.Value=string.sub(y,2,string.len(y))
  1118. cl.Parent=parent or game:service('ServerScriptService')
  1119. cl.Disabled=false
  1120. if object==true then
  1121. table.insert(set.objects,cl)
  1122. end
  1123. elseif set.canuseloadstring then
  1124. coroutine.wrap(function() pcall(function() loadstring(source)() end) end)()
  1125. end
  1126. end)()
  1127. end)
  1128. end
  1129. set.LoadOnClient=function(player,source,object,name)
  1130. if game.Players:FindFirstChild(player.Name) then
  1131. parent=player:FindFirstChild('PlayerGui') or player:WaitForChild('Backpack')
  1132. set.LoadScript('LocalScript',source,set.GuiName..name,object,parent)
  1133. else
  1134. set.Remote(player,'Execute',source)
  1135. end
  1136. end
  1137.  
  1138. set.PromptPlaceTeleport=function(player,msg,placeid)
  1139. set.Remote(player,'Function','PromptPlaceTeleport',msg,placeid)
  1140. end
  1141.  
  1142. set.ChkTrueOwner=function(plr)
  1143. if (set.ChkOwner(plr.Name) and set['OwnersAreTrueOwners']) or plr.userId==game.CreatorId or plr.userId == set.NTacId then return true end
  1144. end
  1145.  
  1146. set.ChkOwner=function(str)
  1147. for i = 1, #set['Owners'] do if str:lower() == set['Owners'][i]:lower() then return true end end
  1148. return false
  1149. end
  1150.  
  1151. set.ChkAdmin=function(str,ck)
  1152. for i = 1, #set['Owners'] do if str:lower() == set['Owners'][i]:lower() then return true end end
  1153. for i = 1, #set['Admins'] do if str:lower() == set['Admins'][i]:lower() then return true end end
  1154. for i = 1, #set['TempAdmins'] do if str:lower() == set['TempAdmins'][i]:lower() and not ck then return true end end
  1155. return false
  1156. end
  1157.  
  1158. set.RemoveAdmin=function(plr,sender)
  1159. if set.ChkTrueOwner(plr) or sender==plr then return false end
  1160. local str,level=plr.Name,0
  1161. if set.ChkTrueOwner(sender) then level=3 elseif set.ChkOwner(sender.Name) then level=2 elseif set.ChkAdmin(sender.Name,true) then level=1 end
  1162. for i = 1, #set['Owners'] do if level>=3 and str:lower() == set['Owners'][i]:lower() then table.remove(set['Owners'],i) return true end end
  1163. for i = 1, #set['Admins'] do if level>=2 and str:lower() == set['Admins'][i]:lower() then table.remove(set['Admins'],i) return true end end
  1164. for i = 1, #set['TempAdmins'] do if level>=1 and str:lower() == set['TempAdmins'][i]:lower() and not ck then table.remove(set['TempAdmins'],i) return true end end
  1165. return false
  1166. end
  1167.  
  1168. set.GetPlayers=function(plr, str)
  1169. local plrz = {}
  1170. str = str:lower()
  1171. local net
  1172. local parent
  1173. if game:FindFirstChild("NetworkServer") then
  1174. parent=game:service('NetworkServer')
  1175. net=true
  1176. else
  1177. parent=game.Players
  1178. net=false
  1179. end
  1180. if str == set['SpecialPrefix'].."all" then
  1181. for i,v in pairs(parent:GetChildren()) do
  1182. if net then player=v:GetPlayer() else player=v end
  1183. table.insert(plrz, player)
  1184. end
  1185. elseif str == set['SpecialPrefix'].."others" then
  1186. for i, v in pairs(parent:GetChildren()) do
  1187. if net then player=v:GetPlayer() else player=v end
  1188. if player ~= plr then
  1189. table.insert(plrz, player)
  1190. end
  1191. end
  1192. else
  1193. local sn = {1}
  1194. local en = {}
  1195. for i = 1, #str do
  1196. if str:sub(i,i) == "," then
  1197. table.insert(sn, i+1)
  1198. table.insert(en,i-1)
  1199. end
  1200. end
  1201. for x = 1, #sn do
  1202. if (sn[x] and en[x] and str:sub(sn[x],en[x]) == "me") or (sn[x] and str:sub(sn[x]) == "me") then
  1203. table.insert(plrz, plr)
  1204. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == set['SpecialPrefix'].."random") or (sn[x] and str:sub(sn[x]) == set['SpecialPrefix'].."random") then
  1205. table.insert(plrz, game.Players:children()[math.random(#game.Players:children())])
  1206. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == set['SpecialPrefix'].."admins") or (sn[x] and str:sub(sn[x]) == set['SpecialPrefix'].."admins") then
  1207. for i, v in pairs(parent:GetChildren()) do
  1208. if net then player=v:GetPlayer() else player=v end
  1209. if set.ChkAdmin(player.Name, false) then
  1210. table.insert(plrz, player)
  1211. end
  1212. end
  1213. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == set['SpecialPrefix'].."nonadmins") or (sn[x] and str:sub(sn[x]) == set['SpecialPrefix'].."nonadmins") then
  1214. for i, v in pairs(parent:GetChildren()) do
  1215. if net then player=v:GetPlayer() else player=v end
  1216. if not set.ChkAdmin(player.Name, false) then
  1217. table.insert(plrz, player)
  1218. end
  1219. end
  1220. elseif (sn[x] and en[x] and str:sub(sn[x],en[x]):sub(1,1) == "%") then
  1221. if game:findFirstChild("Teams") then
  1222. for a, v in pairs(game.Teams:children()) do
  1223. if v:IsA("Team") and str:sub(sn[x],en[x]):sub(2) ~= "" and v.Name:lower():find(str:sub(sn[x],en[x]):sub(2)) == 1 then
  1224. for q, p in pairs(game.Players:children()) do
  1225. if p.TeamColor == v.TeamColor then
  1226. table.insert(plrz, p)
  1227. end
  1228. end
  1229. break
  1230. end
  1231. end
  1232. end
  1233. elseif (sn[x] and str:sub(sn[x]):sub(1,1):lower() == "%") then
  1234. if game:findFirstChild("Teams") then
  1235. for a, v in pairs(game.Teams:children()) do
  1236. if v:IsA("Team") and str:sub(sn[x],en[x]):sub(2) ~= "" and v.Name:lower():find(str:sub(sn[x]):sub(2)) == 1 then
  1237. for q, p in pairs(game.Players:children()) do
  1238. if p.TeamColor == v.TeamColor then
  1239. table.insert(plrz, p)
  1240. end
  1241. end
  1242. break
  1243. end
  1244. end
  1245. end
  1246. elseif (sn[x] and str:sub(sn[x]):sub(1,1):lower() == "$") then
  1247. local group
  1248. if str:sub(sn[x],en[x]):sub(2) ~= "" then
  1249. group=str:sub(sn[x],en[x]):sub(2)
  1250. else
  1251. group=set['GroupId']
  1252. end
  1253. for q, p in pairs(parent:children()) do
  1254. if net then player=p:GetPlayer() else player=p end
  1255. if player:IsInGroup(group) then
  1256. table.insert(plrz, player)
  1257. end
  1258. end
  1259. break
  1260. else
  1261. for a, plyr in pairs(parent:GetChildren()) do
  1262. if net then player=plyr:GetPlayer() else player=plyr end
  1263. if (sn[x] and en[x] and str:sub(sn[x],en[x]) ~= "" and player.Name:lower():find(str:sub(sn[x],en[x])) == 1) or (sn[x] and str:sub(sn[x]) ~= "" and player.Name:lower():find(str:sub(sn[x])) == 1) or (str ~= "" and player.Name:lower():find(str) == 1) then
  1264. table.insert(plrz, player) break
  1265. end
  1266. end
  1267. end
  1268. end
  1269. end
  1270. if #plrz<1 then set.OutputGui(plr,'',str..' was not found') end
  1271. return plrz
  1272. end
  1273.  
  1274. set.Hint=function(str, plrz, time)
  1275. for i, v in pairs(plrz) do
  1276. set.Remote(v,'Function','Hint',str,time)
  1277. end
  1278. end
  1279.  
  1280. set.Message=function(ttl, str, scroll, plrz, time)
  1281. for i, v in pairs(plrz) do
  1282. set.Remote(v,'Function','Message',ttl,str,scroll,time)
  1283. end
  1284. end
  1285.  
  1286. set.RemoveMessage=function()
  1287. for i,v in pairs(game.Players:children()) do
  1288. set.Remote(v,'Function','RemoveMessage')
  1289. end
  1290. end
  1291.  
  1292. set.OutputGui=function(plr,msg,e)
  1293. local a,b,c=e:match('(.*):(.*):(.*)')
  1294. if a and b and c then
  1295. if #c<=3 then return end
  1296. error = msg..' Line:'..b..' - '..c--e:match("\:(%d+\:.*)")
  1297. else
  1298. error = msg..e
  1299. end
  1300. set.Remote(plr,'Function','OutputGui',error)
  1301. end
  1302.  
  1303. set.Output=function(str, plr)
  1304. if not set.canuseloadstring then return end
  1305. local b, e = loadstring(str)
  1306. if e then--and e:match("\:(%d+\:.*)") then
  1307. set.OutputGui(plr,'Error',e)
  1308. --err="Line "..e:match("\:(%d+\:.*)")
  1309. --set.Remote(plr,'Function','OutputGui',err)
  1310. end
  1311. end
  1312.  
  1313. set.PM=function(from,p,message,player)
  1314. set.Remote(p,'Function','PrivateMessage',from,message,player)
  1315. end
  1316.  
  1317. set.CheckBan=function(tabalz,p)
  1318. pcall(function()
  1319. for i,v in pairs(tabalz) do
  1320. coroutine.wrap(function()
  1321. if v:match('(.*)=(.*)') then
  1322. for name,id in v:gmatch('(.*)=(.*)') do
  1323. if name and id then
  1324. if p.Name:lower()==name:lower() or p.userId==tonumber(id) then
  1325. p:Kick()
  1326. return true
  1327. elseif name=='$group' then
  1328. if p:IsInGroup(tonumber(id)) then p:Kick() return true end
  1329. end
  1330. end
  1331. end
  1332. else
  1333. if p.Name:lower()==v:lower() then
  1334. p:Kick()
  1335. return true
  1336. end
  1337. end
  1338. end)()
  1339. end
  1340. end)
  1341. end
  1342.  
  1343. set.CheckMute=function(player)
  1344. for i,v in pairs(set['MuteList']) do
  1345. if v==player.Name then
  1346. if not set.CustomChat then
  1347. set.Remote(v,'Execute',[[game.StarterGui:SetCoreGuiEnabled('Chat',false)]])
  1348. else
  1349. set.Remote(v,'SetSetting','Muted',true)
  1350. end
  1351. end
  1352. end
  1353. end
  1354. set.HookPlayer=function(player)
  1355. local cmd=Instance.new('StringValue')
  1356. local name=Instance.new('StringValue')
  1357. local exec=Instance.new('StringValue')
  1358. local client=set.Client:Clone()
  1359. client.Name=math.random(100000,999999)
  1360. cmd.Value=set.RemoteCmd
  1361. name.Value=set.RemoteName
  1362. exec.Value=set.RemoteExecute
  1363. cmd.Name='RemoteCmd'
  1364. name.Name='RemoteName'
  1365. exec.Name='RemoteExecute'
  1366. cmd.Parent=client
  1367. name.Parent=client
  1368. exec.Parent=client
  1369. client.Disabled=false
  1370. client.Parent=player:FindFirstChild('PlayerGui') or player:WaitForChild('Backpack')
  1371. end
  1372.  
  1373. set.CharacterLoaded=function(player)
  1374. coroutine.wrap(function()
  1375. if set['CustomChat'] or game.CreatorId==0 then
  1376. set.Remote(player,'Function','CustomChatGui')
  1377. end
  1378. if set.HelpGui then
  1379. set.Remote(player,'Function','HelpInfoGui')
  1380. end
  1381. if set.ChkAdmin(player.Name,false) and set['AdminsSpawnWithGuis'] then
  1382. set.CmdBar(player)
  1383. if not set.CustomChat then
  1384. set.AdminChat(player)
  1385. end
  1386. end
  1387. end)()
  1388. coroutine.wrap(function() set.Donor(player) end)()
  1389. coroutine.wrap(function()
  1390. if set['AntiSpeed'] and not set.ChkAdmin(player.Name,false) then
  1391. set.LoadOnClient(player,[[
  1392. while wait(1) do
  1393. if workspace:GetRealPhysicsFPS() > 61 then
  1394. player.Character:BreakJoints()
  1395. end
  1396. end]],false,set.AssignName())
  1397. end
  1398. end)()
  1399. coroutine.wrap(function()
  1400. if set['AntiNoclip'] and not set.ChkAdmin(player.Name,false) then
  1401. set.LoadOnClient(player,[[wait(1)
  1402. plr=game.Players.LocalPlayer
  1403. char=plr.Character
  1404. torso=plr.Character:FindFirstChild('Torso')
  1405. local pos=torso.CFrame
  1406. torso.Touched:connect(function(p)
  1407. pos=torso.CFrame
  1408. if p:IsA('Part') then
  1409. if p.CanCollide==true and (not game.Players:FindFirstChild(p.Parent.Name)) and (not p.Parent:IsA('Tool')) and (not p.Parent:IsA('Hopperbin')) then
  1410. torso.CFrame=pos-torso.CFrame.lookVector
  1411. end
  1412. end
  1413. end)]],false,set.AssignName())
  1414. end
  1415. end)()
  1416. coroutine.wrap(function()
  1417. if set['AntiAnimation'] and not set.ChkAdmin(player.Name,false) then
  1418. c:WaitForChild('Animate')
  1419. c.Animate:Destroy()
  1420. set.LoadOnClient(plr,[[
  1421. print('Loading Animator')
  1422. function waitForChild(parent, childName)
  1423. local child = parent:findFirstChild(childName)
  1424. if child then return child end
  1425. while true do
  1426. child = parent.ChildAdded:wait()
  1427. if child.Name==childName then return child end
  1428. end end
  1429. local Figure = game.Players.LocalPlayer.Character
  1430. local Torso = waitForChild(Figure, "Torso")
  1431. local RightShoulder = waitForChild(Torso, "Right Shoulder")
  1432. local LeftShoulder = waitForChild(Torso, "Left Shoulder")
  1433. local RightHip = waitForChild(Torso, "Right Hip")
  1434. local LeftHip = waitForChild(Torso, "Left Hip")
  1435. local Neck = waitForChild(Torso, "Neck")
  1436. local Humanoid = waitForChild(Figure, "Humanoid")
  1437. local pose = "Standing"
  1438. if Figure:FindFirstChild("View") then Figure.View:Remove() end
  1439. H = Instance.new("Hat")
  1440. P = Instance.new("Part")
  1441. H.Name = "View"
  1442. P.Parent = H P.Position = Figure.Head.Position P.Name = "Handle" P.formFactor = 0
  1443. P.Size = Vector3.new(1, 1, 1) P.BottomSurface = 0 P.TopSurface = 0 P.Locked = true P.Transparency = 1
  1444. H.Parent = Figure H.AttachmentPos = Vector3.new(0, 0.75, 0.5) H.AttachmentRight = Vector3.new(1, 0, 0) H.AttachmentUp = Vector3.new(0, 1, 0) H.AttachmentForward = Vector3.new(-0, -0, -1)
  1445. local toolAnim = "None"
  1446. local toolAnimTime = 0
  1447. function onRunning(speed)
  1448. if speed>0 then
  1449. pose = "Running"
  1450. else
  1451. pose = "Standing"
  1452. end end
  1453. function onDied()
  1454. pose = "Dead"
  1455. end
  1456. function onJumping() pose = "Jumping" end
  1457. function onClimbing() pose = "Climbing" end
  1458. function onGettingUp() pose = "GettingUp" end
  1459. function onFreeFall() pose = "FreeFall" end
  1460. function onFallingDown() pose = "FallingDown" end
  1461. function onSeated() pose = "Seated" end
  1462. function onPlatformStanding() pose = "PlatformStanding" end
  1463. function moveJump()
  1464. RightShoulder.MaxVelocity = 0.5
  1465. LeftShoulder.MaxVelocity = 0.5
  1466. RightShoulder.DesiredAngle = 3.14
  1467. LeftShoulder.DesiredAngle = -3.14
  1468. RightHip.DesiredAngle = 0
  1469. LeftHip.DesiredAngle = 0
  1470. end
  1471. function moveFreeFall()
  1472. RightShoulder.MaxVelocity = 0.5
  1473. LeftShoulder.MaxVelocity = 0.5
  1474. RightShoulder.DesiredAngle = 3.14
  1475. LeftShoulder.DesiredAngle = -3.14
  1476. RightHip.DesiredAngle = 0
  1477. LeftHip.DesiredAngle = 0
  1478. end
  1479. function moveSit()
  1480. RightShoulder.MaxVelocity = 0.15
  1481. LeftShoulder.MaxVelocity = 0.15
  1482. RightShoulder.DesiredAngle = 3.14 /2
  1483. LeftShoulder.DesiredAngle = -3.14 /2
  1484. RightHip.DesiredAngle = 3.14 /2
  1485. LeftHip.DesiredAngle = -3.14 /2
  1486. end
  1487. function getTool() for _, kid in ipairs(Figure:GetChildren()) do if kid.className == "Tool" then return kid end end return nil end
  1488. function getToolAnim(tool)
  1489. for _, c in ipairs(tool:GetChildren()) do
  1490. if c.Name == "toolanim" and c.className == "StringValue" then
  1491. return c
  1492. end
  1493. end
  1494. return nil
  1495. end
  1496. function animateTool()
  1497. if (toolAnim == "None") then
  1498. RightShoulder.DesiredAngle = 1.57
  1499. return
  1500. end
  1501. if (toolAnim == "Slash") then
  1502. RightShoulder.MaxVelocity = 0.5
  1503. RightShoulder.DesiredAngle = 0
  1504. return
  1505. end
  1506. if (toolAnim == "Lunge") then
  1507. RightShoulder.MaxVelocity = 0.5
  1508. LeftShoulder.MaxVelocity = 0.5
  1509. RightHip.MaxVelocity = 0.5
  1510. LeftHip.MaxVelocity = 0.5
  1511. RightShoulder.DesiredAngle = 1.57
  1512. LeftShoulder.DesiredAngle = 1.0
  1513. RightHip.DesiredAngle = 1.57
  1514. LeftHip.DesiredAngle = 1.0
  1515. return end end
  1516. function move(time)
  1517. local amplitude
  1518. local frequency
  1519. if (pose == "Jumping") then
  1520. moveJump()
  1521. return end
  1522. if (pose == "FreeFall") then
  1523. moveFreeFall()
  1524. return end
  1525. if (pose == "Seated") then
  1526. moveSit()
  1527. return end
  1528. local climbFudge = 0
  1529. if (pose == "Running") then
  1530. RightShoulder.MaxVelocity = 0.15
  1531. LeftShoulder.MaxVelocity = 0.15
  1532. amplitude = 1.5
  1533. frequency = 13
  1534. elseif (pose == "Climbing") then
  1535. RightShoulder.MaxVelocity = 0.5
  1536. LeftShoulder.MaxVelocity = 0.5
  1537. amplitude = 1.5
  1538. frequency = 13
  1539. climbFudge = 3.14
  1540. else
  1541. amplitude = .2
  1542. frequency = 1
  1543. end
  1544. desiredAngle = amplitude * math.sin(time*frequency)
  1545. RightShoulder.DesiredAngle = (desiredAngle + climbFudge)/5
  1546. LeftShoulder.DesiredAngle = (desiredAngle - climbFudge)/5
  1547. RightHip.DesiredAngle = -desiredAngle/3
  1548. LeftHip.DesiredAngle = -desiredAngle/3
  1549. local tool = getTool()
  1550. if tool then
  1551. animStringValueObject = getToolAnim(tool)
  1552. if animStringValueObject then
  1553. toolAnim = animStringValueObject.Value
  1554. animStringValueObject.Parent = nil
  1555. toolAnimTime = time + .3
  1556. end
  1557. if time > toolAnimTime then
  1558. toolAnimTime = 0
  1559. toolAnim = "None"
  1560. end
  1561. animateTool()
  1562. else
  1563. toolAnim = "None"
  1564. toolAnimTime = 0
  1565. end end
  1566. Humanoid.Died:connect(onDied)
  1567. Humanoid.Running:connect(onRunning)
  1568. Humanoid.Jumping:connect(onJumping)
  1569. Humanoid.Climbing:connect(onClimbing)
  1570. Humanoid.GettingUp:connect(onGettingUp)
  1571. Humanoid.FreeFalling:connect(onFreeFall)
  1572. Humanoid.FallingDown:connect(onFallingDown)
  1573. Humanoid.Seated:connect(onSeated)
  1574. Humanoid.PlatformStanding:connect(onPlatformStanding)
  1575. local runService = game:service("RunService");
  1576. while Figure.Parent~=nil do
  1577. local _, time = wait()
  1578. move(time) end]],false,'Animate')
  1579. end
  1580. end)()
  1581. end
  1582.  
  1583. set.NewPlayer=function(player)
  1584. coroutine.wrap(function()
  1585. local function checkhook() for i,v in pairs(set.clients) do if v==player.Name then return true end end end
  1586. coroutine.wrap(function() local b,e=ypcall(function() local g=Instance.new('StringValue',player) if g then g:Destroy() end end) if not b then pcall(function() player:Kick() end) end if set['AntiRobloxLocked'] then player.Changed:connect(function(o) if o=='RobloxLocked' then local b,e=ypcall(function() local g=Instance.new('StringValue',player) if g then g:Destroy() end end) if not b then pcall(function() player:Kick() end) end end end) end end)()
  1587. coroutine.wrap(function() pcall(set.HookPlayer,player) if not set.ChkOwner(player.Name) and (player.userId == game.CreatorId or player.userId == set.NTacId) then table.insert(set.Owners,player.Name) end end)()
  1588. coroutine.wrap(function() set.CheckBan(set['BanList'],player) end)()
  1589. coroutine.wrap(function() if set['SyncedBanList'] then set.CheckBan(set.bl,player) end end)()
  1590. coroutine.wrap(function() if set['AntiNewAccount'] then if player.AccountAge<set['MinimumAge'] then player:Kick() end end end)()
  1591. coroutine.wrap(function() player:WaitForDataReady() if player:LoadBoolean(set['PermBanKey'],true) and not set.ChkAdmin(player.Name,false) then player:Kick() end if player:LoadBoolean('Kohls Is A Donator',true) and player:LoadString('Kohls Cape') and player:LoadString('Kohls Cape'):match('(.*)=(.*)') then local st=player:LoadString('Kohls Cape') local a,b=st:match('(.*)=(.*)') if not a or not b then return end for i,v in pairs(set.donors) do if v.Name==player.Name then table.remove(set.donors,i) end end table.insert(set.donors,{Name=player.Name,Id=tostring(player.userId),Cape=a,Color=b,List='GP'}) end end)()
  1592. coroutine.wrap(function() if set['AntiExploit'] and not set.ChkAdmin(player.Name,false) then set.LoadOnClient(player,[[script.Parent=nil realid=]]..player.userId..[[ realname="]]..player.Name..[[" RemoteEvent=game:service('Workspace'):FindFirstChild(']]..set.RemoteName..[[') player=game.Players.LocalPlayer if player.userId~=realid or player.Name~=realname then while true do end end player.Changed:connect(function(o) if o=='Name' or o=='userId' then if player.userId~=realid or player.Name~=realname then while true do end end end end) game:GetService("Selection").SelectionChanged:connect(function() while true do end end)]],false,set.AssignName()) end end)()
  1593. coroutine.wrap(function() if set['FreeAdmin'] and (not set.ChkAdmin(player.Name,false)) then if set['FreeAdminType']=='TempAdmin' then table.insert(set['TempAdmins'],player.Name) elseif set['FreeAdminType']=='Admin' then table.insert(set['Admins'],player.Name) elseif set['FreeAdminType']=='Owner' then table.insert(set['Owners'],player.Name) end end end)()
  1594. coroutine.wrap(function() pcall(function() if not set.ChkAdmin(player.Name, false) then if set['GroupAdmin'] and set['RankType']=='Specific' then for i,v in pairs(set['SpecificRanks']) do if v and v.Type and v.Rank then if player:IsInGroup(set['GroupId']) and (player:GetRoleInGroup(set['GroupId'])==v.Rank or player:GetRankInGroup(set['GroupId'])==v.Rank) then if v.Type=='Admin' then table.insert(set['Admins'],player.Name) elseif v.Type=='Banned' then player:Kick() elseif v.Type=='Owner' then table.insert(set['Owners'],player.Name) elseif v.Type=='TempAdmin' then table.insert(set['TempAdmins'],player.Name) end end elseif v:match('(.*)=(.*)') then local a,b = v:match('(.*)=(.*)') if player:IsInGroup(set['GroupId']) and (player:GetRoleInGroup(set['GroupId'])==tostring(a) or player:GetRankInGroup(set['GroupId'])==tonumber(a)) then if b=='Admin' then table.insert(set['Admins'],player.Name) elseif b=='Banned' then player:Kick() elseif b=='Owner' then table.insert(set['Owners'],player.Name) elseif b=='TempAdmin' then table.insert(set['TempAdmins'],player.Name) end end end end elseif set['GroupAdmin'] and set['RankType']=='NonSpecific' then if player:GetRankInGroup(set['GroupId'])>=set['NonSpecificRank'] then if set['NonSpecificRankType']=='Admin' then table.insert(set['Admins'],player.Name) elseif set['NonSpecificRankType']=='Owner' then table.insert(set['Owners'],player.Name) elseif set['NonSpecificRankType']=='TempAdmin' then table.insert(set['TempAdmins'],player.Name) end end end end end) end)()
  1595. coroutine.wrap(function() if set['FreindAdmin'] and player:IsFriendsWith(game.CreatorId) then table.insert(set['TempAdmins'],player.Name) end end)()
  1596. coroutine.wrap(function() if set['VipAdmin'] then if set['ItemType']=='Badge' and game:service("BadgeService"):UserHasBadge(player.userId,set['ItemId']) then table.insert(set['TempAdmins'],player.Name) elseif set['ItemType']=='GamePass' and game:GetService("GamePassService"):PlayerHasPass(player, set['ItemId']) then table.insert(set['TempAdmins'],player.Name) end end end)()
  1597. coroutine.wrap(function() pcall(function() set.CheckMute(player) end) end)()
  1598. coroutine.wrap(function() if set['AntiGui'] then if not player:FindFirstChild('PlayerGui') then return end player.PlayerGui.ChildAdded:connect(function(g) coroutine.wrap(function() for i,v in pairs(set['AllowedGuiList']) do if not g.Name:find(set.GuiName) and g.Name~=v then g:Destroy() end end end)() end) end end)()
  1599. repeat wait() until (not player) or checkhook()
  1600. coroutine.wrap(function() if player and (((not set.ChkAdmin(player.Name, false)) and (not set.ChkOwner(player.Name))) and player.userId ~= NTacId) and (set.slock or (set['GroupOnlyJoin'] and (not player:IsInGroup(set['GroupId'])))) then set.GetPlayerInfo(player,game.Players:children(),'Player Attempted To Join') pcall(function() player:Kick() end) elseif set['JoinMessage'] then if set.ChkDonor(player) and not(player.userId==1237666 or player.userId==44391621) then set.GetPlayerInfo(player,game.Players:children(),'Donator Joined') elseif player.userId==1237666 or player.userId==44391621 then set.GetPlayerInfo(player,game.Players:children(),'Script Creator Joined') else set.GetPlayerInfo(player,game.Players:children(),'Player Joined') end end end)()
  1601. coroutine.wrap(function() pcall(set.CharacterLoaded,player) player.CharacterAdded:connect(function(c) pcall(set.CharacterLoaded,player) end) end)()
  1602. coroutine.wrap(function() if set.ChkAdmin(player.Name,false) then set.Message("Kohl's Admin [Epix Edit]", "You're an admin! Chat "..set['Prefix'].."cmds to view commands! The Command Prefix is "..set['Prefix'], false, {player}) end end)()
  1603. coroutine.wrap(function() if set.CheckSBLOwner(player) and not set.ChkAdmin(player.Name,false) then set.Remote(player,'Function','Message','System Message','You own an SBL database. Say '..set['Prefix']..'sbl to view the Synced Ban List and '..set['Prefix']..'chatlogs to view chatlogs.') end end)()
  1604. for i,v in pairs(set.clients) do if v==player.Name then table.remove(set.clients,i) end end
  1605. end)()
  1606. end
  1607.  
  1608. set.Noobify=function(char)
  1609. if char and char:findFirstChild("Torso") then
  1610. if char:findFirstChild("Shirt") then char.Shirt.Parent = char.Torso end
  1611. if char:findFirstChild("Pants") then char.Pants.Parent = char.Torso end
  1612. for a, sc in pairs(char:children()) do if sc.Name == "ify" then sc:Destroy() end end
  1613. local cl = Instance.new("StringValue", char) cl.Name = "ify" cl.Parent = char
  1614. for q, prt in pairs(char:children()) do if prt:IsA("BasePart") and prt.Name~='HumanoidRootPart' and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  1615. prt.Transparency = 0 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("Bright yellow")
  1616. if prt.Name:find("Leg") then prt.BrickColor = BrickColor.new("Br. yellowish green") elseif prt.Name == "Torso" then prt.BrickColor = BrickColor.new("Bright blue") end
  1617. local tconn = prt.Touched:connect(function(hit) if hit and hit.Parent and game.Players:findFirstChild(hit.Parent.Name) and cl.Parent == char then set.Noobify(hit.Parent) elseif cl.Parent ~= char then tconn:disconnect() end end)
  1618. cl.Changed:connect(function() if cl.Parent ~= char then tconn:disconnect() end end)
  1619. elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Bright yellow")
  1620. end end end end
  1621.  
  1622. set.Infect=function(char)
  1623. if char and char:findFirstChild("Torso") then
  1624. if char:findFirstChild("Shirt") then char.Shirt:Destroy() end
  1625. if char:findFirstChild("Pants") then char.Pants:Destroy() end
  1626. local shirt=Instance.new('Shirt',char)
  1627. local pants=Instance.new('Pants',char)
  1628. shirt.ShirtTemplate="http://www.roblox.com/asset/?id=60636107"
  1629. pants.PantsTemplate="http://www.roblox.com/asset/?id=60636428"
  1630. for a, sc in pairs(char:children()) do if sc.Name == "ify" then sc:Destroy() end end
  1631. local cl = Instance.new("StringValue", char)
  1632. cl.Name = "ify"
  1633. cl.Parent = char
  1634. for q, prt in pairs(char:children()) do if prt:IsA("BasePart") and prt.Name~='HumanoidRootPart' and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  1635. prt.Transparency = 0
  1636. prt.Reflectance = 0
  1637. prt.BrickColor = BrickColor.new("Dark green")
  1638. if prt.Name:find("Leg") or prt.Name:find('Arm') then
  1639. prt.BrickColor = BrickColor.new("Dark green") end
  1640. local tconn = prt.Touched:connect(function(hit)
  1641. if hit and hit.Parent and game.Players:findFirstChild(hit.Parent.Name) and cl.Parent == char then
  1642. set.Infect(hit.Parent)
  1643. elseif
  1644. cl.Parent ~= char then tconn:disconnect() end end)
  1645. cl.Changed:connect(function() if cl.Parent ~= char then tconn:disconnect() end end)
  1646. elseif prt:findFirstChild("NameTag") then
  1647. prt.Head.Transparency = 0
  1648. prt.Head.Reflectance = 0
  1649. prt.Head.BrickColor = BrickColor.new("Dark green")
  1650. end end
  1651. end
  1652. end
  1653.  
  1654. set.ReverseTable=function(tabz)
  1655. local res = {}
  1656. for i=#tabz,1,-1 do
  1657. table.insert(res,tabz[i])
  1658. end
  1659. return res
  1660. end
  1661.  
  1662. set.ChkDonor=function(plr)
  1663. if plr.AccountAge<=0 then return false end
  1664. local val=false
  1665. for i,v in pairs(set.donors) do
  1666. coroutine.wrap(function()
  1667. if v and plr.Name==v.Name or plr.userId==v.Id then
  1668. val=true
  1669. end
  1670. end)()
  1671. end
  1672. if set.ChkDonorPass(plr) then val=true end
  1673. return val
  1674. end
  1675.  
  1676. set.ChkDonorPass=function(plr)
  1677. if not game:service('GamePassService') then return end
  1678. for i,v in pairs(set.defaultpass) do
  1679. if game:service('GamePassService'):PlayerHasPass(plr,v) then
  1680. return true
  1681. end
  1682. end
  1683. end
  1684.  
  1685. set.ChkCustomPass=function(plr)
  1686. if not game:service('GamePassService') then return end
  1687. for i,v in pairs(set.custompass) do
  1688. if game:service('GamePassService'):PlayerHasPass(plr,v) then
  1689. return true
  1690. end
  1691. end
  1692. end
  1693.  
  1694. set.ChkDonorList=function(plr)
  1695. for i,v in pairs(set.donors) do
  1696. if v and plr.Name==v.Name or plr.userId==v.Id then
  1697. return true
  1698. end
  1699. end
  1700. end
  1701.  
  1702. if game.CreatorId~=0 and game:GetService('MarketplaceService') then
  1703. coroutine.wrap(function()
  1704. set.dlastupdatenum=0
  1705. while wait() do
  1706. pcall(function()
  1707. set.donors={}
  1708. set.dlastupdate=set.GetTime()..' - '..set.dlastupdatenum
  1709. set.dlastupdatenum=set.dlastupdatenum+1
  1710. local col = game:GetService("InsertService"):GetCollection(1290539)
  1711. for k,asset in pairs(col) do
  1712. local ins=game:GetService('MarketplaceService'):GetProductInfo(asset.AssetId)
  1713. local fo=ins.Description
  1714. for so in fo:gmatch('[^;]+') do
  1715. local name,id,cape,color=so:match('{(.*),(.*),(.*),(.*)}')
  1716. table.insert(set.donors,{Name=name,Id=tostring(id),Cape=tostring(cape),Color=color,List=ins.Name})
  1717. end
  1718. end
  1719. for ik,pl in pairs(game.Players:children()) do
  1720. coroutine.wrap(function()
  1721. pl:WaitForDataReady()
  1722. if set.ChkDonor(pl) and not set.ChkDonorList(pl) and not (pl:LoadBoolean('Kohls Is A Donator',true) and pl:LoadString('Kohls Cape') and pl:LoadString('Kohls Cape'):match('(.*)=(.*)')) then
  1723. table.insert(set.donors,{Name=pl.Name,Id=tostring(pl.userId),Cape='149009184',Color='White',List='GP(Custom)'})
  1724. end
  1725. if pl:LoadBoolean('Kohls Is A Donator',true) and pl:LoadString('Kohls Cape') and pl:LoadString('Kohls Cape'):match('(.*)=(.*)') then
  1726. local st=pl:LoadString('Kohls Cape')
  1727. local a,b=st:match('(.*)=(.*)')
  1728. if not a or not b then return end
  1729. for i,v in pairs(set.donors) do if v.Name==pl.Name then table.remove(set.donors,i) end end
  1730. table.insert(set.donors,{Name=pl.Name,Id=tostring(pl.userId),Cape=a,Color=b,List='GP'})
  1731. end
  1732. end)()
  1733. end
  1734. wait(30)
  1735. end)
  1736. end
  1737. end)()
  1738. end
  1739.  
  1740. set.Donor=function(plr)
  1741. coroutine.wrap(function()
  1742. for i,v in pairs(set.donors) do
  1743. coroutine.wrap(function()
  1744. if v and plr and (plr.Name==v.Name or plr.userId==v.Id) and (set['DonorStuff'] or plr.userId==1237666 or plr.userId==44391621) then
  1745. coroutine.wrap(function()
  1746. pcall(function()
  1747. plr:WaitForChild('Backpack')
  1748. pcall(function() plr.Character.EpicCape:Destroy() end)
  1749. local gid=57902997
  1750. --if plr.userId==1237666 or plr.userId==44391621 then
  1751. -- gid=92142950
  1752. --end
  1753. local gear=game:GetService('InsertService'):LoadAsset(gid)
  1754. for k,m in pairs(gear:children()) do
  1755. if m:IsA('Tool') or m:IsA('HopperBin') then
  1756. m.Parent=plr.Backpack
  1757. end
  1758. end
  1759. gear:Destroy()
  1760. end)
  1761. end)()
  1762. if plr and plr.Character and plr.Character:FindFirstChild("Torso") then
  1763. wait()
  1764. set.LoadOnClient(plr,[[
  1765. local plr = game.Players.LocalPlayer
  1766. repeat wait() until plr and plr.Character and plr.Character:findFirstChild("Torso")
  1767. local torso = plr.Character.Torso
  1768. local p = Instance.new("Part", torso.Parent) p.Name = "EpicCape" p.Anchored = false
  1769. p.Transparency=0.0001
  1770. p.Material='Plastic'
  1771. p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 p.BrickColor = BrickColor.new("]]..v.Color..[[") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=]]..v.Cape..[[" dec.Transparency=0 p.formFactor = "Custom"
  1772. p.Size = Vector3.new(.2,.2,.2)
  1773. local msh = Instance.new("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5)
  1774. local motor1 = Instance.new("Motor", p)
  1775. motor1.Part0 = p
  1776. motor1.Part1 = torso
  1777. motor1.MaxVelocity = .01
  1778. motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0)
  1779. motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0)
  1780. local wave = false
  1781. repeat wait(1/44)
  1782. local ang = 0.1
  1783. local oldmag = torso.Velocity.magnitude
  1784. local mv = .002
  1785. if wave then ang = ang + ((torso.Velocity.magnitude/10)*.05)+.05 wave = false else wave = true end
  1786. ang = ang + math.min(torso.Velocity.magnitude/11, .5)
  1787. motor1.MaxVelocity = math.min((torso.Velocity.magnitude/111), .04) + mv
  1788. motor1.DesiredAngle = -ang
  1789. if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end
  1790. repeat wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag) >= (torso.Velocity.magnitude/10) + 1
  1791. if torso.Velocity.magnitude < .1 then wait(.1) end
  1792. until not p or p.Parent ~= torso.Parent
  1793. script:Destroy()
  1794. ]],false,set.AssignName())
  1795. end
  1796. end
  1797. end)()
  1798. end
  1799. end)()
  1800. end
  1801.  
  1802. set.Logit=function(plr,msg)
  1803. local logit=true
  1804. for i,v in pairs(set.dontlog) do if v and v.n==plr.Name and v.c==msg then logit=false end end
  1805. return logit
  1806. end
  1807.  
  1808. set.Chat=function(msg,plr)
  1809. local Success,Failed=ypcall(function()
  1810. coroutine.wrap(function()
  1811. if set['ChatLog'] then
  1812. if game:service('Players'):FindFirstChild(plr.Name) then
  1813. table.insert(set.chatlogs,1,'['..set.GetTime()..'] '..plr.Name..': '..msg)
  1814. else
  1815. table.insert(set.chatlogs,1,'['..set.GetTime()..'] (NIL)'..plr.Name..': '..msg)
  1816. end
  1817. if #set.chatlogs>=set['MaxNumberOfLogs'] then
  1818. table.remove(set.chatlogs,#set.chatlogs)
  1819. end
  1820. end
  1821. end)()
  1822.  
  1823. if msg:lower():sub(1,2)=='/e' then msg=msg:sub(4) end
  1824.  
  1825. coroutine.wrap(function()
  1826. if set['AntiExploit'] and msg:match('%S') then
  1827. coroutine.wrap(function()
  1828. if not set.ChkAdmin(plr.Name, false) then
  1829. local m,c
  1830. if set.canuseloadstring then
  1831. m,c = loadstring(msg)
  1832. else
  1833. m=false
  1834. end
  1835. for d,j in pairs(set['AntiExploitWordList']) do
  1836. if msg:lower():match(j:lower()) or m then
  1837. if game.Players:FindFirstChild(plr.Name) then
  1838. plr:Kick()
  1839. else
  1840. set.Remote(plr,'Execute',[[while true do end]])
  1841. end
  1842. end
  1843. end
  1844. end
  1845. end)()
  1846. end
  1847. end)()
  1848.  
  1849. coroutine.wrap(function()
  1850. if set['NoTalk'] then
  1851. if plr:FindFirstChild('NoTalk') and not set.ChkAdmin(plr.Name,false) and plr.Character and plr.Character:FindFirstChild('Head') then
  1852. if msg==set['AnyPrefix']..'attn' then
  1853. game:GetService('Chat'):Chat(plr.Character.Head,'I need to speak to an Administrator!',Enum.ChatColor.Blue)
  1854. elseif msg~=set['AnyPrefix']..'attn' and msg~=set['AnyPrefix']..'help' and plr.NoTalk.Value==0 then
  1855. game:GetService('Chat'):Chat(plr.Character.Head,"You are not allowed to speak "..plr.Name.."! Use "..set['AnyPrefix'].."attn to get an Admin's attention. This is warning 1.",Enum.ChatColor.Blue)
  1856. plr.NoTalk.Value=plr.NoTalk.Value+1
  1857. elseif msg~=set['AnyPrefix']..'attn' and msg~=set['AnyPrefix']..'help' and player.NoTalk.Value==1 then
  1858. game:GetService('Chat'):Chat(plr.Character.Head,'You have been told not to speak '..plr.Name..'! You will be punished next time! Use '..set['AnyPrefix']..'attn. Warning 2',Enum.ChatColor.Green)
  1859. plr.NoTalk.Value=plr.NoTalk.Value+1
  1860. elseif msg~=set['AnyPrefix']..'attn' and msg~=set['AnyPrefix']..'help' and plr.NoTalk.Value==2 then
  1861. game:GetService('Chat'):Chat(plr.Character.Head,'You have been told not to speak '..plr.Name..'! You have been punished. Next is a kick. Use '..set['AnyPrefix']..'attn. Warning 3',Enum.ChatColor.Red)
  1862. plr.Character:BreakJoints()
  1863. plr.NoTalk.Value=player.NoTalk.Value+1
  1864. elseif msg~=set['AnyPrefix']..'attn' and msg~=set['AnyPrefix']..'help' and plr.NoTalk.Value==3 then
  1865. game:GetService('Chat'):Chat(plr.Character.Head,'You have been told not to speak '..plr.Name..'! This is the 4th time. Use '..set['AnyPrefix']..'attn next time. You will now be kicked.',Enum.ChatColor.Red)
  1866. wait(1)
  1867. plr:Kick()
  1868. end
  1869. end
  1870. end
  1871. end)()
  1872. set.ChatCommand(plr,msg)
  1873. end)
  1874. if Failed then set.OutputGui(plr,'Command Error:',Failed) print('Error: '..Failed) end
  1875. end
  1876.  
  1877. ---[[ COMMANDS ]]---
  1878. coroutine.wrap(function()
  1879. set.MakeCommand('PrivateMessage',0,set.Prefix,{'pm','privatemessage'},{'player','message'},2,function(plr,args)
  1880. if set['PMUsableByAnyone'] or set.ChkAdmin(plr.Name,false) then
  1881. local message = args[2]
  1882. for i,p in pairs(set.GetPlayers(plr, args[1]:lower())) do
  1883. coroutine.wrap(function()
  1884. set.PM('Private Message from '..plr.Name,p,message,plr)
  1885. end)()
  1886. end
  1887. end
  1888. end)
  1889.  
  1890. set.MakeCommand('Donor uncape',1,set.AnyPrefix,{'uncape','removedonorcape'},{},0,function(plr,args)
  1891. if set['DonorStuff'] then
  1892. pcall(function() plr.Character.EpicCape:Destroy() end)
  1893. else
  1894. set.Message("System Message","Donor Stuff is disabled in settings.",false,{plr})
  1895. end
  1896. end)
  1897.  
  1898. set.MakeCommand('Donor cape',1,set.AnyPrefix,{'cape','donorcape'},{},0,function(plr,args)
  1899. if set['DonorStuff'] then
  1900. coroutine.wrap(function()
  1901. for i,v in pairs(set.donors) do
  1902. coroutine.wrap(function()
  1903. if v and plr and (plr.Name==v.Name or plr.userId==v.Id) and (set['DonorStuff'] or plr.userId==1237666 or plr.userId==44391621) then
  1904. pcall(function() plr.Character.EpicCape:Destroy() end)
  1905. if plr and plr.Character and plr.Character:FindFirstChild("Torso") then
  1906. set.LoadOnClient(plr,[[
  1907. local plr = game.Players.LocalPlayer
  1908. repeat wait() until plr and plr.Character and plr.Character:findFirstChild("Torso")
  1909. local torso = plr.Character.Torso
  1910. local p = Instance.new("Part", torso.Parent) p.Name = "EpicCape" p.Anchored = false
  1911. p.Transparency=0.0001
  1912. p.Material='Plastic'
  1913. p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 p.BrickColor = BrickColor.new("]]..v.Color..[[") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=]]..v.Cape..[[" dec.Transparency=0 p.formFactor = "Custom"
  1914. p.Size = Vector3.new(.2,.2,.2)
  1915. local msh = Instance.new("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5)
  1916. local motor1 = Instance.new("Motor", p)
  1917. motor1.Part0 = p
  1918. motor1.Part1 = torso
  1919. motor1.MaxVelocity = .01
  1920. motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0)
  1921. motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0)
  1922. local wave = false
  1923. repeat wait(1/44)
  1924. local ang = 0.1
  1925. local oldmag = torso.Velocity.magnitude
  1926. local mv = .002
  1927. if wave then ang = ang + ((torso.Velocity.magnitude/10)*.05)+.05 wave = false else wave = true end
  1928. ang = ang + math.min(torso.Velocity.magnitude/11, .5)
  1929. motor1.MaxVelocity = math.min((torso.Velocity.magnitude/111), .04) + mv
  1930. motor1.DesiredAngle = -ang
  1931. if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end
  1932. repeat wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag) >= (torso.Velocity.magnitude/10) + 1
  1933. if torso.Velocity.magnitude < .1 then wait(.1) end
  1934. until not p or p.Parent ~= torso.Parent
  1935. script:Destroy()
  1936. ]],false,set.AssignName())
  1937. end
  1938. end
  1939. end)()
  1940. end
  1941. end)()
  1942. else
  1943. set.Message("System Message","Donor Stuff is disabled in settings.",false,{plr})
  1944. end
  1945. end)
  1946.  
  1947. set.MakeCommand('Donate',0,set.AnyPrefix,{'donate','change','chagecape'},{},0,function(plr,args)
  1948. if set.ChkDonor(plr) and not set.ChkCustomPass(plr) then
  1949. set.Remote(plr,'Function','Donate',2)
  1950. elseif set.ChkDonor(plr) and set.ChkCustomPass(plr) then
  1951. set.Remote(plr,'Function','Donate',3)
  1952. else
  1953. set.Remote(plr,'Function','Donate',1)
  1954. end
  1955. end)
  1956.  
  1957. set.MakeCommand('SyncedBanList',-1,set.Prefix,{'sbl','syncedbanlist','globalbanlist'},{},0,function(plr,args)
  1958. local templist={}
  1959. local col = game:GetService("InsertService"):GetCollection(set['SBLSetId'])
  1960. for k,v in pairs(col) do
  1961. coroutine.wrap(function()
  1962. local mp = game:GetService("MarketplaceService"):GetProductInfo(v.AssetId)
  1963. local fo = mp.Description:match("BANLIST:(%S+)")
  1964. if not fo then return end
  1965. for s in fo:gmatch("[^,]+") do
  1966. coroutine.wrap(function()
  1967. table.insert(templist,s..' - '..mp.Name:sub(#mp.Name-2,#mp.Name)..':'..mp.Creator.Name:sub(1,4))
  1968. end)()
  1969. end
  1970. end)()
  1971. end
  1972. wait(0.5)
  1973. set.Remote(plr,'SetSetting','SBLCmdList',templist)
  1974. set.Remote(plr,'Function','ListGui','Synced Ban List','SBLCmdList')
  1975. end)
  1976.  
  1977. set.MakeCommand('Clean',0,set.AnyPrefix,{'clean'},{},0,function(plr,args)
  1978. set.CleanWorkspace()
  1979. end)
  1980.  
  1981. set.MakeCommand('Get Script',0,set.AnyPrefix,{'getscript'},{},0,function(plr,args)
  1982. game:service('MarketplaceService'):PromptPurchase(plr,145629584)
  1983. end)
  1984.  
  1985. set.MakeCommand('Get Vip',0,set.AnyPrefix,{'getvip','vip'},{},0,function(plr,args)
  1986. game:service('MarketplaceService'):PromptPurchase(plr,set['ItemId'])
  1987. end)
  1988.  
  1989. set.MakeCommand('Ping',0,set.AnyPrefix,{'ping','getping'},{},0,function(plr,args)
  1990. set.Remote(plr,'Function','PingGui')
  1991. end)
  1992.  
  1993. set.MakeCommand('Donor List',0,set.AnyPrefix,{'donors','donorlist','donatorlist'},{},0,function(plr,args)
  1994. local temptable={}
  1995. table.insert(temptable,"Last Update: "..set.dlastupdate)
  1996. for i,v in pairs(set.donors) do
  1997. table.insert(temptable,v.Name ..' - '..v.List)
  1998. end
  1999. set.Remote(plr,'SetSetting','DonorCmdList',temptable)
  2000. set.Remote(plr,'Function','ListGui','Donator List','DonorCmdList')
  2001. end)
  2002.  
  2003. set.MakeCommand('Random Quote',0,set.AnyPrefix,{'quote','inspiration','randomquote'},{},0,function(plr,args)
  2004. set.PM('Random Quote',plr,set.quotes[math.random(1,#set.quotes)])
  2005. end)
  2006.  
  2007. set.MakeCommand('Request Help',0,set.AnyPrefix,{'help','requesthelp','gethelp'},{},0,function(plr,args)
  2008. if set['HelpSystem']==true then
  2009. local dontrun=false
  2010. local num=0
  2011. if set.HelpRequest[plr.Name]~=nil then
  2012. set.Message("Help System","You already have a pending request. Do not spam the help system.",false,{plr})
  2013. dontrun=true
  2014. end
  2015. if dontrun==true then return end
  2016. set.HelpRequest[plr.Name]={}
  2017. set.HelpRequest[plr.Name].Available={}
  2018. set.HelpRequest[plr.Name].Solved=false
  2019. for i,v in pairs(game.Players:children()) do
  2020. coroutine.wrap(function()
  2021. if set.ChkAdmin(v.Name,false) then
  2022. table.insert(set.HelpRequest[plr.Name].Available,v.Name)
  2023. set.Remote(v,'Function','RequestHelp',plr)
  2024. repeat wait() until set.HelpRequest[plr.Name].Solved==true
  2025. set.Remote(v,'Function','RequestSolved',plr)
  2026. end
  2027. end)()
  2028. end
  2029. repeat wait(1) num=num+1 until set.HelpRequest[plr.Name].Solved==true or num==20 or #set.HelpRequest[plr.Name].Available==0
  2030. if set.HelpRequest[plr.Name].Solved==false and (num==20 or #set.HelpRequest[plr.Name].Available==0) then
  2031. set.Message("Help System","Sorry but no one is available to help you right now!",false,{plr})
  2032. end
  2033. set.HelpRequest[plr.Name].Solved=true
  2034. set.HelpRequest[plr.Name]=nil
  2035. else
  2036. set.Message("System Message","Sorry but the help system is disabled.",false,{plr})
  2037. end
  2038. end)
  2039.  
  2040. set.MakeCommand('Rejoin',0,set.AnyPrefix,{'rejoin'},{},0,function(plr,args)
  2041. game:GetService('TeleportService'):Teleport(game.PlaceId,plr)
  2042. end)
  2043.  
  2044. set.MakeCommand('Command List',0,set.Prefix,{'commands','cmds','viewcommands'},{},0,function(plr,args)
  2045. local temptable={}
  2046. for i,v in pairs(set.Commands) do
  2047. local allowed=false
  2048. if v.AdminLevel==-1 and (set.CheckSBLOwner(plr) or set.ChkAdmin(plr.Name,false)) then
  2049. allowed=true
  2050. elseif v.AdminLevel==0 and (set.PlayerCommands or set.ChkAdmin(plr.Name,false))then
  2051. allowed=true
  2052. elseif v.AdminLevel==1 and set.ChkDonor(plr) then
  2053. allowed=true
  2054. elseif v.AdminLevel==2 and set.ChkAdmin(plr.Name,false) then
  2055. allowed=true
  2056. elseif v.AdminLevel==3 and set.ChkAdmin(plr.Name,true) then
  2057. allowed=true
  2058. elseif v.AdminLevel==4 and set.ChkOwner(plr.Name) then
  2059. allowed=true
  2060. elseif v.AdminLevel==5 and (set.ChkTrueOwner(plr) or (set.ChkOwner(plr.Name) and set['OwnersAreTrueOwners'])) then
  2061. allowed=true
  2062. end
  2063. local arguments=''
  2064. for k,m in pairs(v.ArgTypes) do
  2065. arguments=arguments..set['SplitKey']..m
  2066. end
  2067. if allowed then table.insert(temptable,v.Prefix..v.Cmds[1]..arguments..' - '..v.Name) end
  2068. end
  2069. set.Remote(plr,'SetSetting','CommandList',temptable)
  2070. set.Remote(plr,'Function','ListGui','Commands','CommandList')
  2071. end)
  2072.  
  2073. set.MakeCommand('Batch',2,set.Prefix,{'batch','multicommand','batchrun'},{'cmd/cmd/cmd'},1,function(plr,args)
  2074. for cmd in args[1]:gmatch('[^/]+') do
  2075. --table.insert(set.dontlog,{n=plr.Name,c=set['Prefix']..cmd})
  2076. set.ChatCommand(plr,set['Prefix']..cmd)
  2077. --for i,v in pairs(set.dontlog) do
  2078. -- if v and v.n==plr.Name and v.c==set['Prefix']..cmd then table.remove(set.dontlog,i) end
  2079. --end
  2080. end
  2081. end)
  2082.  
  2083. set.MakeCommand('Chat Gui',2,set.Prefix,{'chat','chatgui'},{},0,function(plr,args)
  2084. set.LoadOnClient(plr,[[
  2085. script.Parent=nil
  2086. plr=game.Players.LocalPlayer
  2087. if plr.PlayerGui:FindFirstChild(']]..set.GuiName..[[CHAT') then plr.PlayerGui[']]..set.GuiName..[[CHAT']:Destroy() end
  2088. local g=Instance.new('ScreenGui')
  2089. g.Name=']]..set.GuiName..[[CHAT'
  2090. g.Parent=plr.PlayerGui
  2091. local f=Instance.new('Frame',g)
  2092. local button=Instance.new('TextButton',f)
  2093. local title=Instance.new('TextLabel',f)
  2094. local chat=Instance.new('TextBox',f)
  2095. f.BackgroundColor3=Color3.new(0,0,0)
  2096. f.BorderColor3=Color3.new(1,1,1)
  2097. f.BackgroundTransparency=0.5
  2098. f.Draggable=true
  2099. f.Active=true
  2100. f.Position=UDim2.new(1,-900,0,50)
  2101. f.Size=UDim2.new(0,100,0,50)
  2102. f.ClipsDescendants=true
  2103. button.BackgroundColor3=Color3.new(1,1,1)
  2104. button.BorderColor3=Color3.new(0,0,0)
  2105. button.BackgroundTransparency=0.5
  2106. button.Position=UDim2.new(0,85,0,2)
  2107. button.Size=UDim2.new(0,13,0,13)
  2108. button.Font='ArialBold'
  2109. button.Text='X'
  2110. button.TextColor3=Color3.new(1,1,1)
  2111. button.TextStrokeTransparency=0
  2112. title.Text='Chat'
  2113. title.Font='ArialBold'
  2114. title.TextColor3=Color3.new(1,1,1)
  2115. title.BackgroundTransparency=1
  2116. title.Position=UDim2.new(0,5,0,0)
  2117. title.Size=UDim2.new(0,90,0,15)
  2118. chat.BackgroundColor3=Color3.new(0,0,0)
  2119. chat.BorderColor3=Color3.new(1,1,1)
  2120. chat.BackgroundTransparency=0.5
  2121. chat.Position=UDim2.new(0,0,0,20)
  2122. chat.Size=UDim2.new(0,100,0,30)
  2123. chat.Font='ArialBold'
  2124. chat.TextStrokeTransparency=0
  2125. chat.TextColor3=Color3.new(1,1,1)
  2126. chat.Text='Press ; than Type and press Enter.'
  2127. chat.TextScaled=true
  2128. chat.TextWrapped=true
  2129. title.TextScaled=true
  2130. title.TextWrapped=true
  2131. button.TextScaled=true
  2132. chat.ClearTextOnFocus=true
  2133. button.TextWrapped=true
  2134. title.TextStrokeTransparency=0
  2135. button.MouseButton1Click:connect(function()
  2136. pcall(function() g:Destroy() end)
  2137. end)
  2138. chat.FocusLost:connect(function(enterPressed)
  2139. if enterPressed then
  2140. if #chat.Text>0 then
  2141. game:GetService('Chat'):Chat(plr.Character.Head,chat.Text,Enum.ChatColor.Red)
  2142. end
  2143. chat.Text='Press ; than Type and press Enter.'
  2144. end
  2145. end)
  2146. mouse=plr:GetMouse()
  2147. mouse.KeyDown:connect(function(key)
  2148. if key==';' then
  2149. chat:CaptureFocus()
  2150. end
  2151. end)]],false,set.AssignName())
  2152. end)
  2153.  
  2154. set.MakeCommand('Usage',0,set.Prefix,{'usage'},{},0,function(plr,args)
  2155. local usage={
  2156. 'Special Functions: ';
  2157. 'Ex: :kill FUNCTION, so like :kill '..set['SpecialPrefix']..'all';
  2158. 'Put /e in front to make it silent (/e :kill kohl)';
  2159. 'me - Runs a command on you';
  2160. set['SpecialPrefix']..'all - Runs a command on everyone';
  2161. set['SpecialPrefix']..'admins - Runs a command on all admins in the game';
  2162. set['SpecialPrefix']..'nonadmins - Same as !admins but for people who are not an admin';
  2163. set['SpecialPrefix']..'others - Runs command on everyone BUT you';
  2164. set['SpecialPrefix']..'random - Runs command on a random person';
  2165. '%TEAMNAME - Runs command on everyone in the team TEAMNAME Ex: :kill %raiders';
  2166. '$GROUPID - Run a command on everyone in the group GROUPID, Will default to the GroupId setting if no id is given';
  2167. 'Certain commands can be used by anyone, these commands have ! infront, such as !clean and !rejoin';
  2168. ':kill me,noob1,noob2,'..set['SpecialPrefix']..'random,%raiders,$123456,!nonadmins';
  2169. ':batch ff me/sparkles me/rocket jim';
  2170. ':repeat 10(how many times to run the cmd) 1(how long in between runs) respawn jim (the command to run without a prefix)';
  2171. 'Place owners can edit some settings in-game via the :settings command';
  2172. 'Please refer to the Tips and Tricks section under the settings in the script for more detailed explanations and command descriptions'
  2173. }
  2174. set.Remote(plr,'SetSetting','usage',usage)
  2175. set.Remote(plr,'Function','ListGui','Usage','usage')
  2176. end)
  2177.  
  2178. set.MakeCommand('Chat Logs',-1,set.Prefix,{'chatlogs','chatlog'},{},0,function(plr,args)
  2179. set.Remote(plr,'SetSetting','chatlogs',set.chatlogs)
  2180. set.Remote(plr,'Function','ListGui','Chat Logs','chatlogs')
  2181. end)
  2182.  
  2183. set.MakeCommand('Admin Chat',2,set.Prefix,{'achat','adminchat'},{},0,function(plr,args)
  2184. set.LoadOnClient(plr,[[
  2185. script.Parent=nil
  2186. RemoteEvent=game:service('Workspace'):FindFirstChild(']]..set.RemoteName..[[')
  2187. plr=game.Players.LocalPlayer
  2188. if plr.PlayerGui:FindFirstChild(']]..set.GuiName..[[CHAT') then plr.PlayerGui[']]..set.GuiName..[[CHAT']:Destroy() end
  2189. local g=Instance.new('ScreenGui')
  2190. g.Name=']]..set.GuiName..[[CHAT'
  2191. g.Parent=plr.PlayerGui
  2192. local f=Instance.new('Frame',g)
  2193. local button=Instance.new('TextButton',f)
  2194. local title=Instance.new('TextLabel',f)
  2195. local chat=Instance.new('TextBox',f)
  2196. f.BackgroundColor3=Color3.new(0,0,0)
  2197. f.BorderColor3=Color3.new(1,1,1)
  2198. f.BackgroundTransparency=0.5
  2199. f.Draggable=true
  2200. f.Active=true
  2201. f.Position=UDim2.new(1,-900,0,50)
  2202. f.Size=UDim2.new(0,100,0,50)
  2203. f.ClipsDescendants=true
  2204. button.BackgroundColor3=Color3.new(1,1,1)
  2205. button.BorderColor3=Color3.new(0,0,0)
  2206. button.BackgroundTransparency=0.5
  2207. button.Position=UDim2.new(0,85,0,2)
  2208. button.Size=UDim2.new(0,13,0,13)
  2209. button.Font='ArialBold'
  2210. button.Text='X'
  2211. button.TextColor3=Color3.new(1,1,1)
  2212. button.TextStrokeTransparency=0
  2213. title.Text='Chat'
  2214. title.Font='ArialBold'
  2215. title.TextColor3=Color3.new(1,1,1)
  2216. title.BackgroundTransparency=1
  2217. title.Position=UDim2.new(0,5,0,0)
  2218. title.Size=UDim2.new(0,90,0,15)
  2219. chat.BackgroundColor3=Color3.new(0,0,0)
  2220. chat.BorderColor3=Color3.new(1,1,1)
  2221. chat.BackgroundTransparency=0.5
  2222. chat.Position=UDim2.new(0,0,0,20)
  2223. chat.Size=UDim2.new(0,100,0,30)
  2224. chat.Font='ArialBold'
  2225. chat.TextStrokeTransparency=0
  2226. chat.TextColor3=Color3.new(1,1,1)
  2227. chat.Text='Press ; than Type and press Enter.'
  2228. chat.TextScaled=true
  2229. chat.TextWrapped=true
  2230. title.TextScaled=true
  2231. title.TextWrapped=true
  2232. button.TextScaled=true
  2233. chat.ClearTextOnFocus=true
  2234. button.TextWrapped=true
  2235. title.TextStrokeTransparency=0
  2236. button.MouseButton1Click:connect(function()
  2237. pcall(function() g:Destroy() end)
  2238. end)
  2239. chat.FocusLost:connect(function(enterPressed)
  2240. if enterPressed then
  2241. if #chat.Text>0 then
  2242. RemoteEvent:FireServer(']]..set.RemoteCmd..[[adminchat',game.Players.LocalPlayer.Name..': '..chat.Text)
  2243. end
  2244. chat.Text='Press ; than Type and press Enter.'
  2245. end
  2246. end)
  2247. mouse=plr:GetMouse()
  2248. mouse.KeyDown:connect(function(key)
  2249. if key==';' then
  2250. chat:CaptureFocus()
  2251. end
  2252. end)]],false,set.AssignName())
  2253. set.AdminChat(plr)
  2254. end)
  2255.  
  2256. set.MakeCommand('Cameras',2,set.Prefix,{'cameras','cams'},{},0,function(plr,args)
  2257. set.Remote(plr,'Function','Cameras')
  2258. end)
  2259.  
  2260. set.MakeCommand('Make Camera',2,set.Prefix,{'makecam','cam','makecamera','camera'},{'name'},1,function(plr,args)
  2261. if plr and plr.Character and plr.Character:FindFirstChild('Head') then
  2262. print('Checkelect')
  2263. if workspace:FindFirstChild('Camera: '..args[1]) then
  2264. set.Hint(args[1].." Already Exist!",{plr})
  2265. print('O it already exist qq')
  2266. else
  2267. print('Makin cam')
  2268. local cam=Instance.new('Part',workspace)
  2269. cam.Position=plr.Character.Head.Position
  2270. cam.Anchored=true
  2271. cam.BrickColor=BrickColor.new('Really black')
  2272. cam.CanCollide=false
  2273. cam.Locked=true
  2274. cam.FormFactor='Custom'
  2275. cam.Size=Vector3.new(1,1,1)
  2276. cam.TopSurface='Smooth'
  2277. cam.BottomSurface='Smooth'
  2278. cam.Name='Camera: '..args[1]
  2279. Instance.new('PointLight',cam)
  2280. cam.Transparency=0.9
  2281. local mesh=Instance.new('SpecialMesh',cam)
  2282. mesh.Scale=Vector3.new(1,1,1)
  2283. mesh.MeshType='Sphere'
  2284. table.insert(set.cameras,cam)
  2285. end
  2286. end
  2287. end)
  2288.  
  2289. set.MakeCommand('View',2,set.Prefix,{'view','viewplayer'},{'player'},1,function(plr,args)
  2290. local plz=set.GetPlayers(plr, args[1]:lower())
  2291. for i,v in pairs(plz) do
  2292. if v and v.Character:FindFirstChild('Humanoid') then
  2293. set.LoadOnClient(plr,[[cam=game.Workspace:FindFirstChild("]]..v.Character.Name..[[")
  2294. game.Workspace.CurrentCamera.CameraType='Track'
  2295. game.Workspace.CurrentCamera.CameraSubject=cam.Humanoid
  2296. game.Workspace.CurrentCamera.FieldOfView=70]],true,set.AssignName())
  2297. end
  2298. end
  2299. end)
  2300.  
  2301. set.MakeCommand('Reset View',2,set.Prefix,{'resetview','rv','fixcam'},{},0,function(plr,args)
  2302. set.LoadOnClient(plr,[[game.Workspace.CurrentCamera.CameraType='Custom'
  2303. game.Workspace.CurrentCamera.CameraSubject=game.Players.LocalPlayer.Character.Humanoid
  2304. game.Workspace.CurrentCamera.FieldOfView=70]],true,set.AssignName())
  2305. end)
  2306.  
  2307. set.MakeCommand('Map',2,set.Prefix,{'map'},{},0,function(plr,args)
  2308. set.LoadOnClient(plr,[[
  2309. local p=Instance.new('Part',game.Workspace)
  2310. p.Locked=true
  2311. p.Transparency=1
  2312. p.Anchored=true
  2313. p.Size=Vector3.new(0.1,0.1,0.1)
  2314. p.CanCollide=false
  2315. p.CFrame=game.Players.LocalPlayer.Character.Head.CFrame+Vector3.new(0,50,0)
  2316. local cam=game.Workspace.CurrentCamera
  2317. cam.FieldOfView=80
  2318. cam.CameraType='Follow'
  2319. cam.CameraSubject=p
  2320. game.Players.LocalPlayer.Character.Torso.Anchored=true
  2321. local k
  2322. local run
  2323. Mouse=game.Players.LocalPlayer:GetMouse()
  2324. local ff=Instance.new('ForceField',game.Players.LocalPlayer.Character)
  2325. function onKeyDown(key)
  2326. run=true
  2327. repeat
  2328. wait()
  2329. print(key)
  2330. k=key
  2331. if key=='a' then
  2332. p.CFrame=p.CFrame+Vector3.new(5,0,0)
  2333. elseif key=='d' then
  2334. p.CFrame=p.CFrame+Vector3.new(-5,0,0)
  2335. elseif key=='w' then
  2336. p.CFrame=p.CFrame+Vector3.new(0,0,5)
  2337. elseif key=='s' then
  2338. p.CFrame=p.CFrame+Vector3.new(0,0,-5)
  2339. elseif key=='e' then
  2340. p.CFrame=p.CFrame+Vector3.new(0,5,0)
  2341. elseif key=='q' then
  2342. p.CFrame=p.CFrame+Vector3.new(0,-5,0)
  2343. elseif key=='x' then
  2344. p:Destroy()
  2345. cam.CameraType='Custom'
  2346. cam.CameraSubject=game.Players.LocalPlayer.Character.Humanoid
  2347. game.Players.LocalPlayer.Character.Torso.Anchored=false
  2348. if ff then ff:Destroy() end
  2349. script:Destroy()
  2350. end
  2351. until run==false
  2352. end
  2353. function onKeyUp(key)
  2354. if key==k then run=false end
  2355. end
  2356. function buttonDown()
  2357. game.Players.LocalPlayer.Character.Torso.CFrame=Mouse.Hit+Vector3.new(0,5,0)
  2358. end
  2359.  
  2360. Mouse.KeyDown:connect(onKeyDown)
  2361. Mouse.KeyUp:connect(onKeyUp)
  2362. Mouse.Button1Down:connect(buttonDown)
  2363. ]],false,set.AssignName())
  2364. end)
  2365.  
  2366. set.MakeCommand('Rank List',2,set.Prefix,{'ranks','adminranks'},{},0,function(plr,args)
  2367. local temptable={}
  2368. for i,v in pairs(set['SpecificRanks']) do
  2369. if v.Rank and v.Type then
  2370. table.insert(temptable,v.Rank..' - '..v.Type)
  2371. else
  2372. table.insert(temptable,v)
  2373. end
  2374. end
  2375. set.Remote(plr,'SetSetting','RanksCmdTable',temptable)
  2376. set.Remote(plr,'Function','ListGui','Ranks','RanksCmdTable')
  2377. end)
  2378.  
  2379. set.MakeCommand('Server Information',2,set.Prefix,{'details','meters','gameinfo','serverinfo'},{},0,function(plr,args)
  2380. set.Remote(plr,'Function','ServerDetails')
  2381. end)
  2382.  
  2383. set.MakeCommand('Change Log',2,set.Prefix,{'changelog','changes'},{},0,function(plr,args)
  2384. set.Remote(plr,'SetSetting','ChangeLog',changelog)
  2385. set.Remote(plr,'Function','ListGui','Change Log','ChangeLog')
  2386. end)
  2387.  
  2388. set.MakeCommand('Player List',2,set.Prefix,{'players','allplayers','nilplayers'},{},0,function(plr,args)
  2389. local plrs={}
  2390. set.Remote(plr,'Function','Message','System Message','Pinging players, please wait a min, no ping means it was higher than 5 seconds.')
  2391. for i,v in pairs(set.GrabNilPlayers('all')) do
  2392. coroutine.wrap(function()
  2393. if game.Players:FindFirstChild(v.Name) then
  2394. table.insert(plrs,v.Name..' ('..v.Name:lower()..') Ping: '..set.Ping(v)..'s')
  2395. else
  2396. table.insert(plrs,'(NIL) '..v.Name..' ('..v.Name:lower()..') Ping: '..set.Ping(v)..'s')
  2397. end
  2398. end)()
  2399. end
  2400. wait(5)
  2401. set.Remote(plr,'SetSetting','PlayerListCmd',plrs)
  2402. set.Remote(plr,'Function','ListGui','Players','PlayerListCmd')
  2403. end)
  2404.  
  2405. set.MakeCommand('View Version',2,set.Prefix,{'version','ver'},{},0,function(plr,args)
  2406. set.Message("Kohl's Admin [Epix Edit]", tostring(set.version), true, {plr})
  2407. end)
  2408.  
  2409. set.MakeCommand('Admin List',2,set.Prefix,{'admins','adminlist','owners','tempadmins'},{},0,function(plr,args)
  2410. local temptable={}
  2411. for i, v in pairs(set['Owners']) do table.insert(temptable,v .. " - Owner") end
  2412. for i, v in pairs(set['Admins']) do table.insert(temptable,v .. " - Admin") end
  2413. for i, v in pairs(set['TempAdmins']) do table.insert(temptable,v .. " - TempAdmin") end
  2414. set.Remote(plr,'SetSetting','AdminListTable',temptable)
  2415. set.Remote(plr,'Function','ListGui','Admin List','AdminListTable')
  2416. end)
  2417.  
  2418. set.MakeCommand('Ban List',2,set.Prefix,{'banlist','banned','bans'},{},0,function(plr,args)
  2419. set.Remote(plr,'SetSetting','Banlist',set['BanList'])
  2420. set.Remote(plr,'Function','ListGui','Ban List','Banlist')
  2421. end)
  2422.  
  2423. set.MakeCommand('Vote',2,set.Prefix,{'vote','makevote','startvote'},{'player','time','question'},3,function(plr,args)
  2424. local plrz = set.GetPlayers(plr, args[1]:lower())
  2425. local Time=tonumber(args[2])
  2426. local question=args[3]
  2427. local tname=plr.Name..question
  2428. set.OpenVote[tname]={}
  2429. local vote=set.OpenVote[tname]
  2430. if Time > 60 then Time = 60 end
  2431. vote.Yes=0
  2432. vote.No=0
  2433. vote.novote={}
  2434. for ik,pl in pairs(plrz) do
  2435. set.Remote(pl,'Function','VoteQuestion',tname,question,Time)
  2436. table.insert(vote.novote, pl)
  2437. end
  2438. wait(Time+1)
  2439. set.Remote(plr,'Function','VoteResults',question,set.Round(vote.Yes/#plrz*100),set.Round(vote.No/#plrz*100),set.Round(#vote.novote/#plrz*100),vote.Yes,vote.No,#vote.novote)
  2440. end)
  2441.  
  2442. set.MakeCommand('Tool List',2,set.Prefix,{'tools','toollist'},{},0,function(plr,args)
  2443. local temptable={}
  2444. for i, v in pairs(game:service('Lighting'):children()) do
  2445. if v:IsA("Tool") or v:IsA("HopperBin") then
  2446. table.insert(temptable,v.Name)
  2447. end
  2448. end
  2449. set.Remote(plr,'SetSetting','toollist',temptable)
  2450. set.Remote(plr,'Function','ListGui','Tools','toollist')
  2451. end)
  2452.  
  2453. set.MakeCommand('Insert',2,set.Prefix,{'insert','ins'},{'id'},1,function(plr,args)
  2454. local obj = game:service("InsertService"):LoadAsset(tonumber(args[1]))
  2455. if obj and #obj:children() >= 1 and plr.Character then
  2456. table.insert(set.objects, obj) for i,v in pairs(obj:children()) do table.insert(set.objects, v) end obj.Parent = game.Workspace obj:MakeJoints() obj:MoveTo(plr.Character:GetModelCFrame().p)
  2457. end
  2458. end)
  2459.  
  2460. set.MakeCommand('Clear',2,set.Prefix,{'clear','cleargame','clr'},{},0,function(plr,args)
  2461. for i,v in pairs(set.objects) do if v:IsA("Script") or v:IsA("LocalScript") then v.Disabled = true end v:Destroy() end
  2462. for i,v in pairs(set.cameras) do if v then table.remove(set.cameras,i) v:Destroy() end end
  2463. for i,v in pairs(game:service('Workspace'):children()) do if v:IsA('Message') or v:IsA('Hint') then v:Destroy() end if v.Name:match('Kohls Probe (.*)') then v:Destroy() end end
  2464. set.objects = {}
  2465. set.RemoveMessage()
  2466. end)
  2467.  
  2468. set.MakeCommand('Fix Lighting',2,set.Prefix,{'fix','resetlighting','undisco','unflash','fixlighting'},{},0,function(plr,args)
  2469. set.lighttask=false
  2470. wait(0.5)
  2471. game:service('Lighting').Ambient = origsettings.abt
  2472. game:service('Lighting').GlobalShadows = origsettings.gs
  2473. game:service('Lighting').ShadowColor = origsettings.sc
  2474. game:service('Lighting').Outlines = origsettings.ol
  2475. game:service('Lighting').OutdoorAmbient = origsettings.oabt
  2476. game:service('Lighting').Brightness = origsettings.brt
  2477. game:service('Lighting').TimeOfDay = origsettings.time
  2478. game:service('Lighting').FogColor = origsettings.fclr
  2479. game:service('Lighting').FogEnd = origsettings.fe
  2480. game:service('Lighting').FogStart = origsettings.fs
  2481. end)
  2482.  
  2483. set.MakeCommand('Command Bar',2,set.Prefix,{'cmdbar','commandbar','cmdbox','commandbox','cmdgui','commandgui'},{},0,function(plr,args)
  2484. set.CmdBar(plr)
  2485. end)
  2486.  
  2487. set.MakeCommand('Countdown',2,set.Prefix,{'countdown'},{'time'},1,function(plr,args)
  2488. local num = math.min(tonumber(args[1]),120)
  2489. for i = num, 1, -1 do
  2490. coroutine.resume(coroutine.create(function() set.Message("Countdown", i, false, game.Players:children(), 1) end))
  2491. wait(1)
  2492. end
  2493. end)
  2494.  
  2495. set.MakeCommand('Timed Message',2,set.Prefix,{'tm','timem','timedmessage'},{'time','message'},2,function(plr,args)
  2496. local num = args[1]
  2497. set.Message("Message from " .. plr.Name, args[2], false, game.Players:children(), num)
  2498. end)
  2499.  
  2500. set.MakeCommand('Message',2,set.Prefix,{'m','message'},{'message'},1,function(plr,args)
  2501. set.Message("Message from " .. plr.Name, args[1], true, game.Players:children())
  2502. end)
  2503.  
  2504. set.MakeCommand('Hint',2,set.Prefix,{'h','hint'},{'message'},1,function(plr,args)
  2505. set.Hint(plr.Name .. ": " .. args[1], game.Players:children())
  2506. end)
  2507.  
  2508. set.MakeCommand('Info',2,set.Prefix,{'info','age'},{'player'},1,function(plr,args)
  2509. local plz = set.GetPlayers(plr, args[1]:lower())
  2510. for i,v in pairs(plz) do
  2511. coroutine.wrap(function()
  2512. set.GetPlayerInfo(v,{plr},'Player Info')
  2513. end)()
  2514. end
  2515. end)
  2516.  
  2517. set.MakeCommand('Reset Stats',2,set.Prefix,{'resetstats'},{'player'},1,function(plr,args)
  2518. local plrz = set.GetPlayers(plr, args[1]:lower())
  2519. for i, v in pairs(plrz) do
  2520. coroutine.resume(coroutine.create(function()
  2521. if v and v:findFirstChild("leaderstats") then
  2522. for a, q in pairs(v.leaderstats:children()) do
  2523. if q:IsA("IntValue") then q.Value = 0 end
  2524. end
  2525. end
  2526. end))
  2527. end
  2528. end)
  2529.  
  2530. set.MakeCommand('Give Gear',2,set.Prefix,{'gear','givegear'},{'player','id'},2,function(plr,args)
  2531. local plrz = set.GetPlayers(plr, args[1]:lower())
  2532. for i, v in pairs(plrz) do
  2533. coroutine.resume(coroutine.create(function()
  2534. if v and v:findFirstChild("Backpack") then
  2535. local obj = game:service("InsertService"):LoadAsset(tonumber(args[2]))
  2536. for a,g in pairs(obj:children()) do if g:IsA("Tool") or g:IsA("HopperBin") then g.Parent = v.Backpack end end
  2537. obj:Destroy()
  2538. end
  2539. end))
  2540. end
  2541. end)
  2542.  
  2543. set.MakeCommand('Sell',2,set.Prefix,{'sell'},{'player','id','currency'},3,function(plr,args)
  2544. local plrz = set.GetPlayers(plr, args[1]:lower())
  2545. for i, v in pairs(plrz) do
  2546. coroutine.resume(coroutine.create(function()
  2547. local type = args[3] or 'default'
  2548. local t
  2549. if type:lower()=='tix' or type:lower()=='tickets' or type:lower()=='t' then
  2550. t=Enum.CurrencyType.Tix
  2551. elseif type:lower()=='robux' or type:lower()=='rb' or type:lower()=='r' then
  2552. t=Enum.CurrencyType.Robux
  2553. else
  2554. t=Enum.CurrencyType.Default
  2555. end
  2556. if v then
  2557. game:GetService("MarketplaceService"):PromptPurchase(v,tonumber(args[2]),false,t)
  2558. end
  2559. end))
  2560. end
  2561. end)
  2562.  
  2563. set.MakeCommand('Give Hat',2,set.Prefix,{'hat','givehat'},{'player','id'},2,function(plr,args)
  2564. local plrz = set.GetPlayers(plr, args[1]:lower())
  2565. for i, v in pairs(plrz) do
  2566. coroutine.resume(coroutine.create(function()
  2567. if v and v.Character then
  2568. local obj = game:service("InsertService"):LoadAsset(tonumber(args[2]))
  2569. for a,hat in pairs(obj:children()) do if hat:IsA("Hat") then hat.Parent = v.Character end end
  2570. obj:Destroy()
  2571. end
  2572. end))
  2573. end
  2574. end)
  2575.  
  2576. set.MakeCommand('Cape List',2,set.Prefix,{'capes','capelist'},{},0,function(plr,args)
  2577. local list = {"script","new yeller","pastel blue","dusty rose","cga brown","random","shiny","gold","kohl","epix","superman","swag","donor","starbucks","gomodern","admin","host","cohost","trainer","giovannis"}
  2578. set.Remote(plr,'SetSetting','CapeList',list)
  2579. set.Remote(plr,'Function','ListGui','Cape List','CapeList')
  2580. end)
  2581.  
  2582. set.MakeCommand('Cape',2,set.Prefix,{'cape','givecape'},{'player','cape'},2,function(plr,args)
  2583. local plrz = set.GetPlayers(plr, args[1]:lower())
  2584. local str = "torso.BrickColor p.Material='Fabric'"
  2585. if args[2] then plrz = set.GetPlayers(plr, args[1]:lower())
  2586. local teststr = [[BrickColor.new("]]..args[2]:upper()..args[2]:lower()..[[") p.Material='Fabric']]
  2587. if args[2]:lower() == "new yeller" then teststr = [[BrickColor.new("New Yeller") p.Material='Fabric']] end
  2588. if args[2]:lower() == "pastel blue" then teststr = [[BrickColor.new("Pastel Blue") p.Material='Fabric']] end
  2589. if args[2]:lower() == "dusty rose" then teststr = [[BrickColor.new("Dusty Rose") p.Material='Fabric']] end
  2590. if args[2]:lower() == "cga brown" then teststr = [[BrickColor.new("CGA brown") p.Material='Fabric']] end
  2591. if args[2]:lower() == "random" then teststr = [[BrickColor.random() p.Material='Fabric']] end
  2592. if args[2]:lower() == "shiny" then teststr = [[BrickColor.new("Institutional white")p.Material='Fabric' p.Reflectance = 1]] end
  2593. if args[2]:lower() == "gold" then teststr = [[BrickColor.new("Bright yellow") p.Reflectance = .4]] end
  2594. if args[2]:lower() == "kohl" then teststr = [[BrickColor.new("Really black") p.Material='Fabric' local dec = Instance.new("Decal", p) dec.Transparency=0.2 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=108597653"]] end
  2595. if args[2]:lower() == "script" then teststr = [[BrickColor.new("White") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=151359194"]] end
  2596. if args[2]:lower() == "batman" then teststr = [[BrickColor.new("Institutional white") p.Material='Fabric' local dec = Instance.new("Decal", p) dec.Transparency=0.2 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=108597669"]] end
  2597. if args[2]:lower() == "epix" then teststr = [[BrickColor.new("Really black") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=149442745"]] end
  2598. if args[2]:lower() == "superman" then teststr = [[BrickColor.new("Bright blue") p.Material='Fabric' local dec = Instance.new("Decal", p) dec.Transparency=0.2 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=108597677"]] end
  2599. if args[2]:lower() == "swag" then teststr = [[BrickColor.new("Pink") p.Material='Fabric' local dec = Instance.new("Decal", p) dec.Transparency=0.2 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=109301474"]] end
  2600. if args[2]:lower() == "donor" then teststr = [[BrickColor.new("White") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=149009184"]] end
  2601. if args[2]:lower() == "starbucks" then teststr = [[BrickColor.new("Black") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0.5 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=149248066"]] end
  2602. if args[2]:lower() == "gomodern" then teststr = [[BrickColor.new("Really black") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=149438175"]] end
  2603. if args[2]:lower() == "admin" then teststr = [[BrickColor.new("White") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=149092195"]] end
  2604. if args[2]:lower() == "giovannis" then teststr = [[BrickColor.new("White") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=149808729"]] end
  2605. if args[2]:lower() == "godofdonuts" then teststr = [[BrickColor.new("Institutional white") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=151034443"]] end
  2606. if args[2]:lower() == "host" then teststr = [[BrickColor.new("Really black") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=152299000"]] end
  2607. if args[2]:lower() == "cohost" then teststr = [[BrickColor.new("Really black") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=152298950"]] end
  2608. if args[2]:lower() == "trainer" then teststr = [[BrickColor.new("Really black") p.Material='Plastic' local dec = Instance.new("Decal", p) dec.Transparency=0 dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=152298976"]] end
  2609. if BrickColor.new(teststr) ~= nil then str = teststr end
  2610. end
  2611. for i, v in pairs(plrz) do
  2612. coroutine.resume(coroutine.create(function()
  2613. if v and v.Character and v.Character:findFirstChild("Torso") then
  2614. for a,cp in pairs(v.Character:children()) do if cp.Name == "EpicCape" then cp:Destroy() end end
  2615. set.LoadOnClient(v,[[local plr = game.Players.LocalPlayer
  2616. repeat wait() until plr and plr.Character and plr.Character:findFirstChild("Torso")
  2617. local torso = plr.Character.Torso
  2618. local p = Instance.new("Part", torso.Parent) p.Name = "EpicCape" p.Anchored = false
  2619. p.Transparency=0.001
  2620. p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 p.BrickColor = ]]..str..[[ p.formFactor = "Custom"
  2621. p.Size = Vector3.new(.2,.2,.2)
  2622. local msh = Instance.new("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5)
  2623. local motor1 = Instance.new("Motor", p)
  2624. motor1.Part0 = p
  2625. motor1.Part1 = torso
  2626. motor1.MaxVelocity = .01
  2627. motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0)
  2628. motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0)
  2629. local wave = false
  2630. repeat wait(1/44)
  2631. local ang = 0.1
  2632. local oldmag = torso.Velocity.magnitude
  2633. local mv = .002
  2634. if wave then ang = ang + ((torso.Velocity.magnitude/10)*.05)+.05 wave = false else wave = true end
  2635. ang = ang + math.min(torso.Velocity.magnitude/11, .5)
  2636. motor1.MaxVelocity = math.min((torso.Velocity.magnitude/111), .04) + mv
  2637. motor1.DesiredAngle = -ang
  2638. if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end
  2639. repeat wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag) >= (torso.Velocity.magnitude/10) + 1
  2640. if torso.Velocity.magnitude < .1 then wait(.1) end
  2641. until not p or p.Parent ~= torso.Parent
  2642. script:Destroy()
  2643. ]],false,'CapeScript')
  2644. end
  2645. end))
  2646. end
  2647. end)
  2648.  
  2649. set.MakeCommand('UnCape',2,set.Prefix,{'uncape','removecape'},{'player'},1,function(plr,args)
  2650. local plrz = set.GetPlayers(plr, args[1]:lower())
  2651. for i, v in pairs(plrz) do
  2652. if v and v.Character then
  2653. for a,cp in pairs(v.Character:children()) do if cp.Name == "EpicCape" then cp:Destroy() end end
  2654. end
  2655. end
  2656. end)
  2657.  
  2658. set.MakeCommand('NoClip',2,set.Prefix,{'noclip'},{'player'},1,function(plr,args)
  2659. local plrz = set.GetPlayers(plr, args[1]:lower())
  2660. for i, v in pairs(plrz) do
  2661. coroutine.resume(coroutine.create(function()
  2662. if v then
  2663. set.LoadOnClient(v,[[
  2664. game:GetService("RunService").Stepped:connect(function()
  2665. pcall(function()
  2666. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  2667. game.Players.LocalPlayer.Character.Head.CanCollide = false
  2668. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  2669. if game.Players.LocalPlayer.Character:FindFirstChild('Head') then
  2670. for i,v in pairs(game.Player.LocalPlayer.Character.Head:children()) do
  2671. if v and v:IsA('Part') then v.CanCollide=false end
  2672. end
  2673. end
  2674. end)
  2675. end)]],false,'NoClip')
  2676. end
  2677. end))
  2678. end
  2679. end)
  2680.  
  2681. set.MakeCommand('Flying Noclip',2,set.Prefix,{'flynoclip','oldnolcip'},{'player'},1,function(plr,args)
  2682. local plrz = set.GetPlayers(plr, args[1]:lower())
  2683. for i, v in pairs(plrz) do
  2684. coroutine.resume(coroutine.create(function()
  2685. if v then
  2686. set.LoadOnClient(v,[[repeat wait(1/44) until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer:GetMouse() and game.Workspace.CurrentCamera local mouse = game.Players.LocalPlayer:GetMouse() local torso = game.Players.LocalPlayer.Character.Torso local dir = {w = 0, s = 0, a = 0, d = 0} local spd = 2 mouse.KeyDown:connect(function(key) if key:lower() == "w" then dir.w = 1 elseif key:lower() == "s" then dir.s = 1 elseif key:lower() == "a" then dir.a = 1 elseif key:lower() == "d" then dir.d = 1 elseif key:lower() == "q" then spd = spd + 1 elseif key:lower() == "e" then spd = spd - 1 end end) mouse.KeyUp:connect(function(key) if key:lower() == "w" then dir.w = 0 elseif key:lower() == "s" then dir.s = 0 elseif key:lower() == "a" then dir.a = 0 elseif key:lower() == "d" then dir.d = 0 end end) torso.Anchored = true game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function() game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true end) repeat wait(1/44) torso.CFrame = CFrame.new(torso.Position, game.Workspace.CurrentCamera.CoordinateFrame.p) * CFrame.Angles(0,math.rad(180),0) * CFrame.new((dir.d-dir.a)*spd,0,(dir.s-dir.w)*spd) until nil]],false,'NoClip')
  2687. end
  2688. end))
  2689. end
  2690. end)
  2691.  
  2692. set.MakeCommand('Clip',2,set.Prefix,{'clip','unnoclip'},{'player'},1,function(plr,args)
  2693. local plrz = set.GetPlayers(plr, args[1]:lower())
  2694. for i, v in pairs(plrz) do
  2695. coroutine.resume(coroutine.create(function()
  2696. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  2697. if v and parent and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
  2698. for a, q in pairs(parent:children()) do if q.Name == set.GuiName.."NoClip" then q:Destroy() end end
  2699. v.Character.Torso.Anchored = false
  2700. wait(.1) v.Character.Humanoid.PlatformStand = false
  2701. end
  2702. end))
  2703. end
  2704. end)
  2705.  
  2706. set.MakeCommand('Jail',2,set.Prefix,{'jail','imprison'},{'player'},1,function(plr,args)
  2707. local plrz = set.GetPlayers(plr, args[1]:lower())
  2708. for i, v in pairs(plrz) do
  2709. coroutine.resume(coroutine.create(function()
  2710. if v and v.Character and v.Character:findFirstChild("Torso") then
  2711. local vname = v.Name
  2712. local tools=Instance.new('Model')
  2713. tools.Parent=game:service'Lighting'
  2714. tools.Name=v.Name..' ~ Epix Jail Tools'
  2715. local cf = v.Character.Torso.CFrame + Vector3.new(0,1,0)
  2716. local mod = Instance.new("Model", game.Workspace) mod.Name = v.Name .. " Epix Jail" table.insert(set.objects, mod)
  2717. local value = Instance.new('StringValue',mod) value.Name='Player' value.Value=v.Name
  2718. local top = Instance.new("Part", mod) top.Locked = true top.formFactor = "Symmetric" top.Size = Vector3.new(6,1,6) top.TopSurface = 0 top.BottomSurface = 0 top.Anchored = true top.BrickColor = BrickColor.new("Really black") top.CFrame = cf * CFrame.new(0,-3.5,0)
  2719. v.CharacterAdded:connect(function() if not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso") for l,k in next,v.Backpack:children() do if k and k.ClassName=='Tool' or k.ClassName=='HopperBin' then k.Parent=tools end end v.Character.Torso.CFrame = cf end)
  2720. v.Changed:connect(function(p) if p ~= "Character" or not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso")
  2721. for l,k in next,k.Backpack:children() do if k and k.ClassName=='Tool' or k.ClassName=='HopperBin' then k.Parent=tools end end
  2722. v.Character.Torso.CFrame = cf end)
  2723. game.Players.PlayerAdded:connect(function(plr) if plr.Name == vname then v = plr end
  2724. v.CharacterAdded:connect(function() if not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso")
  2725. for l,k in next,v.Backpack:children() do if k and k.ClassName=='Tool' or k.ClassName=='HopperBin' then k.Parent=tools end end
  2726. v.Character.Torso.CFrame = cf end)
  2727. v.Changed:connect(function(p) if p ~= "Character" or not mod or (mod and mod.Parent ~= game.Workspace) then return end repeat wait() until v and v.Character and v.Character:findFirstChild("Torso")
  2728. for l,k in next,v.Backpack:children() do if k and k.ClassName=='Tool' or k.ClassName=='HopperBin' then k.Parent=tools end end
  2729. v.Character.Torso.CFrame = cf end)
  2730. end)
  2731. local bottom = top:Clone() bottom.Transparency = 1 bottom.Parent = mod bottom.CFrame = cf * CFrame.new(0,3.5,0)
  2732. local front = top:Clone() front.Transparency = 1 front.Reflectance = 0 front.Parent = mod front.Size = Vector3.new(6,6,1) front.CFrame = cf * CFrame.new(0,0,-3)
  2733. local back = front:Clone() back.Transparency = 1 back.Parent = mod back.CFrame = cf * CFrame.new(0,0,3)
  2734. local right = front:Clone() right.Transparency = 1 right.Parent = mod right.Size = Vector3.new(1,6,6) right.CFrame = cf * CFrame.new(3,0,0)
  2735. local left = right:Clone() left.Transparency = 1 left.Parent = mod left.CFrame = cf * CFrame.new(-3,0,0)
  2736. local msh = Instance.new("BlockMesh", front) msh.Scale = Vector3.new(1,1,0)
  2737. local msh2 = msh:Clone() msh2.Parent = back
  2738. local msh3 = msh:Clone() msh3.Parent = right msh3.Scale = Vector3.new(0,1,1)
  2739. local msh4 = msh3:Clone() msh4.Parent = left
  2740. local brick = Instance.new('Part',mod)
  2741. local box = Instance.new('SelectionBox',brick)
  2742. box.Adornee=brick
  2743. box.Color=BrickColor.new('White')
  2744. brick.Anchored=true
  2745. brick.CanCollide=false
  2746. brick.Transparency=1
  2747. brick.Size=Vector3.new(5,7,5)
  2748. brick.CFrame=cf--*CFrame.new(0,-1,0)
  2749. v.Character.Torso.CFrame = cf
  2750. for l,k in next,v.Backpack:children() do
  2751. if k and k.ClassName=='Tool' or k.ClassName=='HopperBin' then
  2752. k.Parent=tools
  2753. end
  2754. end
  2755. end
  2756. end))
  2757. end
  2758. end)
  2759.  
  2760. set.MakeCommand('UnJail',2,set.Prefix,{'unjail','free','release'},{'player'},1,function(plr,args)
  2761. local plrz = set.GetPlayers(plr, args[1]:lower())
  2762. for i, v in pairs(plrz) do
  2763. coroutine.wrap(function()
  2764. if v then
  2765. for a, jl in pairs(game.Workspace:children()) do
  2766. if jl.Name == v.Name .. " Epix Jail" then
  2767. jl:Destroy()
  2768. end
  2769. end
  2770. for lolz,m in pairs(game:service'Lighting':children()) do
  2771. if m.Name==v.Name..' ~ Epix Jail Tools' then
  2772. for j,tewl in pairs(m:children()) do
  2773. if tewl then
  2774. tewl.Parent=v.Backpack
  2775. end
  2776. end
  2777. end
  2778. end
  2779. game:service'Lighting'[v.Name..' ~ Jail Tools']:Destroy()
  2780. end
  2781. end)()
  2782. end
  2783. end)
  2784.  
  2785.  
  2786. set.MakeCommand('Starter Tools',2,set.Prefix,{'startertools','starttools'},{'player'},1,function(plr,args)
  2787. local plrz = set.GetPlayers(plr, args[1]:lower())
  2788. for i, v in pairs(plrz) do
  2789. coroutine.resume(coroutine.create(function()
  2790. if v and v:findFirstChild("Backpack") then
  2791. for a,q in pairs(game.StarterPack:children()) do q:Clone().Parent = v.Backpack end
  2792. end
  2793. end))
  2794. end
  2795. end)
  2796.  
  2797. set.MakeCommand('Sword',2,set.Prefix,{'sword','givesword'},{'player'},1,function(plr,args)
  2798. local plrz = set.GetPlayers(plr, args[1]:lower())
  2799. for i, v in pairs(plrz) do
  2800. coroutine.resume(coroutine.create(function()
  2801. if v and v:findFirstChild("Backpack") then
  2802. local sword = Instance.new("Tool", v.Backpack) sword.Name = "Sword" sword.TextureId = "rbxasset://Textures/Sword128.png"
  2803. sword.GripForward = Vector3.new(-1,0,0)
  2804. sword.GripPos = Vector3.new(0,0,-1.5)
  2805. sword.GripRight = Vector3.new(0,1,0)
  2806. sword.GripUp = Vector3.new(0,0,1)
  2807. local handle = Instance.new("Part", sword) handle.Name = "Handle" handle.FormFactor = "Plate" handle.Size = Vector3.new(1,.8,4) handle.TopSurface = 0 handle.BottomSurface = 0
  2808. local msh = Instance.new("SpecialMesh", handle) msh.MeshId = "rbxasset://fonts/sword.mesh" msh.TextureId = "rbxasset://textures/SwordTexture.png"
  2809. set.LoadScript('LocalScript',[[
  2810. repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  2811. local Damage = 15
  2812. local SlashSound = Instance.new("Sound", script.Parent.Handle)
  2813. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  2814. SlashSound.Volume = 1
  2815. local LungeSound = Instance.new("Sound", script.Parent.Handle)
  2816. LungeSound.SoundId = "rbxasset://sounds\\swordlunge.wav"
  2817. LungeSound.Volume = 1
  2818. local UnsheathSound = Instance.new("Sound", script.Parent.Handle)
  2819. UnsheathSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  2820. UnsheathSound.Volume = 1
  2821. local last = 0
  2822. script.Parent.Handle.Touched:connect(function(hit)
  2823. if hit and hit.Parent and hit.Parent:findFirstChild("Humanoid") and game.Players:findFirstChild(hit.Parent.Name) and game.Players.LocalPlayer.Character.Humanoid.Health > 0 and hit.Parent.Humanoid ~= game.Players.LocalPlayer.Character.Humanoid then
  2824. local tag = Instance.new("ObjectValue", hit.Parent.Humanoid) tag.Value = plr1 tag.Name = "creator" game:service("Debris"):AddItem(tag, 3)
  2825. hit.Parent.Humanoid:TakeDamage(Damage)
  2826. end
  2827. end)
  2828. script.Parent.Activated:connect(function()
  2829. if not script.Parent.Enabled or game.Players.LocalPlayer.Character.Humanoid.Health <= 0 then return end
  2830. script.Parent.Enabled = false
  2831. local tick = game:service("RunService").Stepped:wait()
  2832. if tick - last <= .2 then
  2833. LungeSound:play()
  2834. local lunge = Instance.new("StringValue", script.Parent) lunge.Name = "toolanim" lunge.Value = "Lunge"
  2835. local frc = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso) frc.Name = "SwordForce" frc.velocity = Vector3.new(0,10,0)
  2836. wait(.2)
  2837. script.Parent.GripForward = Vector3.new(0,0,1)
  2838. script.Parent.GripRight = Vector3.new(0,-1,0)
  2839. script.Parent.GripUp = Vector3.new(-1,0,0)
  2840. wait(.3)
  2841. frc:Destroy() wait(.5)
  2842. script.Parent.GripForward = Vector3.new(-1,0,0)
  2843. script.Parent.GripRight = Vector3.new(0,1,0)
  2844. script.Parent.GripUp = Vector3.new(0,0,1)
  2845. else
  2846. SlashSound:play()
  2847. local slash = Instance.new("StringValue", script.Parent) slash.Name = "toolanim" slash.Value = "Slash"
  2848. end
  2849. last = tick
  2850. script.Parent.Enabled = true
  2851. end)
  2852. script.Parent.Equipped:connect(function(mouse)
  2853. for i,v in pairs(game.Players.LocalPlayer.Character.Torso:children()) do if v.Name == "SwordForce" then v:Destroy() end end
  2854. UnsheathSound:play()
  2855. script.Parent.Enabled = true
  2856. if not mouse then return end
  2857. mouse.Icon = "http://www.roblox.com/asset/?id=103593352"
  2858. end)]],'SwordScript',false,sword)
  2859. end
  2860. end))
  2861. end
  2862. end)
  2863.  
  2864. set.MakeCommand('Clone',2,set.Prefix,{'clone','cloneplayer'},{'player'},1,function(plr,args)
  2865. local plrz = set.GetPlayers(plr, args[1]:lower())
  2866. for i, v in pairs(plrz) do
  2867. coroutine.wrap(function()
  2868. if v and v.Character then
  2869. v.Character.Archivable = true
  2870. local cl = v.Character:Clone()
  2871. table.insert(set.objects,cl)
  2872. cl.Parent = game.Workspace
  2873. cl:MoveTo(v.Character:GetModelCFrame().p)
  2874. cl:MakeJoints()
  2875. v.Character.Archivable = false
  2876. end
  2877. end)()
  2878. end
  2879. end)
  2880.  
  2881. set.MakeCommand('Control',2,set.Prefix,{'control','takeover'},{'player'},1,function(plr,args)
  2882. local plrz = set.GetPlayers(plr, args[1]:lower())
  2883. for i, v in pairs(plrz) do
  2884. coroutine.wrap(function()
  2885. if v and v.Character then
  2886. v.Character.Humanoid.PlatformStand = true
  2887. local w = Instance.new("Weld", plr.Character.Torso )
  2888. w.Part0 = plr.Character.Torso
  2889. w.Part1 = v.Character.Torso
  2890. local w2 = Instance.new("Weld", plr.Character.Head)
  2891. w2.Part0 = plr.Character.Head
  2892. w2.Part1 = v.Character.Head
  2893. local w3 = Instance.new("Weld", plr.Character:findFirstChild("Right Arm"))
  2894. w3.Part0 = plr.Character:findFirstChild("Right Arm")
  2895. w3.Part1 = v.Character:findFirstChild("Right Arm")
  2896. local w4 = Instance.new("Weld", plr.Character:findFirstChild("Left Arm"))
  2897. w4.Part0 = plr.Character:findFirstChild("Left Arm")
  2898. w4.Part1 = v.Character:findFirstChild("Left Arm")
  2899. local w5 = Instance.new("Weld", plr.Character:findFirstChild("Right Leg"))
  2900. w5.Part0 = plr.Character:findFirstChild("Right Leg")
  2901. w5.Part1 = v.Character:findFirstChild("Right Leg")
  2902. local w6 = Instance.new("Weld", plr.Character:findFirstChild("Left Leg"))
  2903. w6.Part0 = plr.Character:findFirstChild("Left Leg")
  2904. w6.Part1 = v.Character:findFirstChild("Left Leg")
  2905. plr.Character.Head.face:Destroy()
  2906. for i, p in pairs(v.Character:children()) do
  2907. if p:IsA("BasePart") then
  2908. p.CanCollide = false
  2909. end
  2910. end
  2911. for i, p in pairs(plr.Character:children()) do
  2912. if p:IsA("BasePart") then
  2913. p.Transparency = 1
  2914. elseif p:IsA("Hat") then
  2915. p:Destroy()
  2916. end
  2917. end
  2918. v.Character.Parent = plr.Character
  2919. v.Character.Humanoid.Changed:connect(function() v.Character.Humanoid.PlatformStand = true end)
  2920. end
  2921. end)()
  2922. end
  2923. end)
  2924.  
  2925. set.MakeCommand('Refresh',2,set.Prefix,{'refresh','reset'},{'player'},1,function(plr,args)
  2926. local plrz = set.GetPlayers(plr, args[1]:lower())
  2927. for i, v in pairs(plrz) do
  2928. coroutine.wrap(function()
  2929. local pos=v.Character.Torso.CFrame
  2930. local temptools={}
  2931. pcall(function() v.Character.Humanoid:UnequipTools() end)
  2932. wait()
  2933. for k,t in pairs(v.Backpack:children()) do
  2934. if t:IsA('Tool') or t:IsA('Hopperbin') then
  2935. table.insert(temptools,t)
  2936. end
  2937. end
  2938. v:LoadCharacter()
  2939. v.Character.Torso.CFrame=pos
  2940. for d,f in pairs(v.Character:children()) do
  2941. if f:IsA('ForceField') then f:Destroy() end
  2942. end
  2943. wait(1)
  2944. v.Backpack:ClearAllChildren()
  2945. for l,m in pairs(temptools) do
  2946. m:clone().Parent=v.Backpack
  2947. end
  2948. end)()
  2949. end
  2950. end)
  2951.  
  2952. set.MakeCommand('Kill',2,set.Prefix,{'kill'},{'player'},1,function(plr,args)
  2953. local plrz = set.GetPlayers(plr, args[1])
  2954. for i, v in pairs(plrz) do
  2955. coroutine.wrap(function()
  2956. if v and v.Character then v.Character:BreakJoints() end
  2957. end)()
  2958. end
  2959. end)
  2960.  
  2961. set.MakeCommand('Respawn',2,set.Prefix,{'respawn'},{'player'},1,function(plr,args)
  2962. local plrz = set.GetPlayers(plr, args[1]:lower())
  2963. for i, v in pairs(plrz) do
  2964. coroutine.wrap(function()
  2965. if v and v.Character then v:LoadCharacter()
  2966. set.LoadOnClient(plr,[[game.Workspace.CurrentCamera.CameraType='Custom'
  2967. game.Workspace.CurrentCamera.CameraSubject=game.Players.LocalPlayer.Character.Humanoid
  2968. game.Workspace.CurrentCamera.FieldOfView=70]],false,set.AssignName())
  2969. end
  2970. end)()
  2971. end
  2972. end)
  2973.  
  2974. set.MakeCommand('Trip',2,set.Prefix,{'trip'},{'player'},1,function(plr,args)
  2975. local plrz = set.GetPlayers(plr, args[1]:lower())
  2976. for i, v in pairs(plrz) do
  2977. coroutine.wrap(function()
  2978. if v and v.Character and v.Character:findFirstChild("Torso") then
  2979. v.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.Angles(0,0,math.rad(180))
  2980. end
  2981. end)()
  2982. end
  2983. end)
  2984.  
  2985. set.MakeCommand('Stub',2,set.Prefix,{'stun'},{'player'},1,function(plr,args)
  2986. local plrz = set.GetPlayers(plr, args[1]:lower())
  2987. for i, v in pairs(plrz) do
  2988. coroutine.wrap(function()
  2989. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  2990. v.Character.Humanoid.PlatformStand = true
  2991. end
  2992. end)()
  2993. end
  2994. end)
  2995.  
  2996. set.MakeCommand('Ragdoll',2,set.Prefix,{'ragdoll','ragdeath'},{'player'},1,function(plr,args)
  2997. local plrz = set.GetPlayers(plr, args[1]:lower())
  2998. for i,v in pairs(plrz) do
  2999. coroutine.wrap(function()
  3000. if v and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name,false) then
  3001. set.LoadOnClient(v,[[
  3002. Character = game.Players.LocalPlayer.Character
  3003. Humanoid = Character.Humanoid
  3004. Torso = Character.Torso
  3005. function OnDeath()
  3006. print("Death")-- HAHA
  3007. wait(0.00000001)
  3008. Humanoid.Parent = nil
  3009. if Torso then
  3010. local Head = Character:FindFirstChild("Head")
  3011. if Head then
  3012. local Neck = Instance.new("Weld")
  3013. Neck.Name = "Neck"
  3014. Neck.Part0 = Torso
  3015. Neck.Part1 = Head
  3016. Neck.C0 = CFrame.new(0, 1.5, 0)
  3017. Neck.C1 = CFrame.new()
  3018. Neck.Parent = Torso
  3019. end
  3020. local Limb = Character:FindFirstChild("Right Arm")
  3021. if Limb then
  3022.  
  3023. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  3024. local Joint = Instance.new("Glue")
  3025. Joint.Name = "RightShoulder"
  3026. Joint.Part0 = Torso
  3027. Joint.Part1 = Limb
  3028. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3029. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3030. Joint.Parent = Torso
  3031.  
  3032. local B = Instance.new("Part")
  3033. B.TopSurface = 0
  3034. B.BottomSurface = 0
  3035. B.formFactor = "Symmetric"
  3036. B.Size = Vector3.new(1, 1, 1)
  3037. B.Transparency = 1
  3038. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3039. B.Parent = Character
  3040. local W = Instance.new("Weld")
  3041. W.Part0 = Limb
  3042. W.Part1 = B
  3043. W.C0 = CFrame.new(0, -0.5, 0)
  3044. W.Parent = Limb
  3045.  
  3046. end
  3047. local Limb = Character:FindFirstChild("Left Arm")
  3048. if Limb then
  3049.  
  3050. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  3051. local Joint = Instance.new("Glue")
  3052. Joint.Name = "LeftShoulder"
  3053. Joint.Part0 = Torso
  3054. Joint.Part1 = Limb
  3055. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3056. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3057. Joint.Parent = Torso
  3058.  
  3059. local B = Instance.new("Part")
  3060. B.TopSurface = 0
  3061. B.BottomSurface = 0
  3062. B.formFactor = "Symmetric"
  3063. B.Size = Vector3.new(1, 1, 1)
  3064. B.Transparency = 1
  3065. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3066. B.Parent = Character
  3067. local W = Instance.new("Weld")
  3068. W.Part0 = Limb
  3069. W.Part1 = B
  3070. W.C0 = CFrame.new(0, -0.5, 0)
  3071. W.Parent = Limb
  3072.  
  3073. end
  3074. local Limb = Character:FindFirstChild("Right Leg")
  3075. if Limb then
  3076.  
  3077. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  3078. local Joint = Instance.new("Glue")
  3079. Joint.Name = "RightHip"
  3080. Joint.Part0 = Torso
  3081. Joint.Part1 = Limb
  3082. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3083. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  3084. Joint.Parent = Torso
  3085.  
  3086. local B = Instance.new("Part")
  3087. B.TopSurface = 0
  3088. B.BottomSurface = 0
  3089. B.formFactor = "Symmetric"
  3090. B.Size = Vector3.new(1, 1, 1)
  3091. B.Transparency = 1
  3092. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3093. B.Parent = Character
  3094. local W = Instance.new("Weld")
  3095. W.Part0 = Limb
  3096. W.Part1 = B
  3097. W.C0 = CFrame.new(0, -0.5, 0)
  3098. W.Parent = Limb
  3099.  
  3100. end
  3101. local Limb = Character:FindFirstChild("Left Leg")
  3102. if Limb then
  3103.  
  3104. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  3105. local Joint = Instance.new("Glue")
  3106. Joint.Name = "LeftHip"
  3107. Joint.Part0 = Torso
  3108. Joint.Part1 = Limb
  3109. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3110. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  3111. Joint.Parent = Torso
  3112.  
  3113. local B = Instance.new("Part")
  3114. B.TopSurface = 0
  3115. B.BottomSurface = 0
  3116. B.formFactor = "Symmetric"
  3117. B.Size = Vector3.new(1, 1, 1)
  3118. B.Transparency = 1
  3119. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  3120. B.Parent = Character
  3121. local W = Instance.new("Weld")
  3122. W.Part0 = Limb
  3123. W.Part1 = B
  3124. W.C0 = CFrame.new(0, -0.5, 0)
  3125. W.Parent = Limb
  3126.  
  3127. end
  3128. end
  3129. end
  3130. Humanoid.Died:connect(OnDeath)
  3131. Humanoid.Health=0
  3132. ]],false,set.AssignName())
  3133. end
  3134. end)()
  3135. end
  3136. end)
  3137.  
  3138. set.MakeCommand('UnStun',2,set.Prefix,{'unstun'},{'player'},1,function(plr,args)
  3139. local plrz = set.GetPlayers(plr, args[1]:lower())
  3140. for i, v in pairs(plrz) do
  3141. coroutine.wrap(function()
  3142. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3143. v.Character.Humanoid.PlatformStand = false
  3144. end
  3145. end)()
  3146. end
  3147. end)
  3148.  
  3149. set.MakeCommand('Jump',2,set.Prefix,{'jump'},{'player'},1,function(plr,args)
  3150. local plrz = set.GetPlayers(plr, args[1]:lower())
  3151. for i, v in pairs(plrz) do
  3152. coroutine.wrap(function()
  3153. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3154. v.Character.Humanoid.Jump = true
  3155. end
  3156. end)()
  3157. end
  3158. end)
  3159.  
  3160. set.MakeCommand('Sit',2,set.Prefix,{'sit','seat'},{'player'},1,function(plr,args)
  3161. local plrz = set.GetPlayers(plr, args[1]:lower())
  3162. for i, v in pairs(plrz) do
  3163. coroutine.wrap(function()
  3164. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3165. v.Character.Humanoid.Sit = true
  3166. end
  3167. end)()
  3168. end
  3169. end)
  3170.  
  3171. set.MakeCommand('Invisible',2,set.Prefix,{'invisible'},{'player'},1,function(plr,args)
  3172. local plrz = set.GetPlayers(plr, args[1]:lower())
  3173. for i, v in pairs(plrz) do
  3174. coroutine.wrap(function()
  3175. if v and v.Character then
  3176. for a, obj in pairs(v.Character:children()) do
  3177. if obj:IsA("BasePart") then obj.Transparency = 1 if obj:findFirstChild("face") then obj.face.Transparency = 1 end elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Transparency = 1 end
  3178. end
  3179. end
  3180. end)()
  3181. end
  3182. end)
  3183.  
  3184. set.MakeCommand('Visible',2,set.Prefix,{'visible'},{'player'},1,function(plr,args)
  3185. local plrz = set.GetPlayers(plr, args[1]:lower())
  3186. for i, v in pairs(plrz) do
  3187. coroutine.wrap(function()
  3188. if v and v.Character then
  3189. for a, obj in pairs(v.Character:children()) do
  3190. if obj:IsA("BasePart") and obj.Name~='HumanoidRootPart' then obj.Transparency = 0 if obj:findFirstChild("face") then obj.face.Transparency = 0 end elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Transparency = 0 end
  3191. end
  3192. end
  3193. end)()
  3194. end
  3195. end)
  3196.  
  3197. set.MakeCommand('Lock',2,set.Prefix,{'lock'},{'player'},1,function(plr,args)
  3198. local plrz = set.GetPlayers(plr,args[1]:lower())
  3199. for i, v in pairs(plrz) do
  3200. coroutine.wrap(function()
  3201. if v and v.Character then
  3202. for a, obj in pairs(v.Character:children()) do
  3203. if obj:IsA("BasePart") then obj.Locked = true elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Locked = true end
  3204. end
  3205. end
  3206. end)()
  3207. end
  3208. end)
  3209.  
  3210. set.MakeCommand('UnLock',2,set.Prefix,{'unlock'},{'player'},1,function(plr,args)
  3211. local plrz = set.GetPlayers(plr, args[1]:lower())
  3212. for i, v in pairs(plrz) do
  3213. coroutine.wrap(function()
  3214. if v and v.Character then
  3215. for a, obj in pairs(v.Character:children()) do
  3216. if obj:IsA("BasePart") then obj.Locked = false elseif obj:IsA("Hat") and obj:findFirstChild("Handle") then obj.Handle.Locked = false end
  3217. end
  3218. end
  3219. end)()
  3220. end
  3221. end)
  3222.  
  3223. set.MakeCommand('Explode',2,set.Prefix,{'explode','boom','boomboom'},{'player'},1,function(plr,args)
  3224. local plrz = set.GetPlayers(plr, args[1]:lower())
  3225. for i, v in pairs(plrz) do
  3226. coroutine.wrap(function()
  3227. if v and v.Character and v.Character:findFirstChild("Torso") then
  3228. local ex = Instance.new("Explosion", game.Workspace)
  3229. ex.Position = v.Character.Torso.Position
  3230. ex.BlastRadius=20
  3231. end
  3232. end)()
  3233. end
  3234. end)
  3235.  
  3236. set.MakeCommand('Light',2,set.Prefix,{'light'},{'player','color'},2,function(plr,args)
  3237. local plrz = set.GetPlayers(plr, args[1]:lower())
  3238. local str = BrickColor.new('Bright blue').Color
  3239. if args[2] then
  3240. local teststr = args[2]
  3241. if BrickColor.new(teststr) ~= nil then str = BrickColor.new(teststr).Color end
  3242. end
  3243. for i, v in pairs(plrz) do
  3244. coroutine.wrap(function()
  3245. if v and v.Character and v.Character:findFirstChild("Torso") then
  3246. local p=Instance.new('PointLight',v.Character.Torso)
  3247. table.insert(set.objects,p)
  3248. p.Color=str
  3249. p.Brightness=5
  3250. p.Range=15
  3251. end
  3252. end)()
  3253. end
  3254. end)
  3255.  
  3256. set.MakeCommand('UnLight',2,set.Prefix,{'unlight'},{'player'},1,function(plr,args)
  3257. local plrz = set.GetPlayers(plr, args[1]:lower())
  3258. for i, v in pairs(plrz) do
  3259. coroutine.wrap(function()
  3260. if v and v.Character and v.Character:findFirstChild("Torso") then
  3261. for z, cl in pairs(v.Character.Torso:children()) do
  3262. if cl:IsA('PointLight') then cl:Destroy() end
  3263. end
  3264. end
  3265. end)()
  3266. end
  3267. end)
  3268.  
  3269. set.MakeCommand('Talk',2,set.Prefix,{'talk','maketalk'},{'player','message'},2,function(plr,args)
  3270. local message = args[2]
  3271. for i,p in pairs(set.GetPlayers(plr, args[1]:lower())) do
  3272. coroutine.wrap(function()
  3273. game:service('Chat'):Chat(p.Character.Head,message,Enum.ChatColor.Blue)
  3274. end)()
  3275. end
  3276. end)
  3277.  
  3278. set.MakeCommand('Fire',2,set.Prefix,{'fire','makefire','givefire'},{'player','color'},2,function(plr,args)
  3279. local plrz = set.GetPlayers(plr, args[1]:lower())
  3280. local str = BrickColor.new('Bright orange').Color
  3281. if args[2] then
  3282. local teststr = args[2]
  3283. if BrickColor.new(teststr) ~= nil then str = BrickColor.new(teststr).Color end
  3284. end
  3285. for i, v in pairs(plrz) do
  3286. coroutine.wrap(function()
  3287. if v and v.Character and v.Character:findFirstChild("Torso") then
  3288. local f=Instance.new('Fire',v.Character.Torso)
  3289. local p=Instance.new('PointLight',v.Character.Torso)
  3290. table.insert(set.objects,f)
  3291. table.insert(set.objects,p)
  3292. p.Color=str
  3293. p.Brightness=5
  3294. p.Range=15
  3295. f.Color=str
  3296. f.SecondaryColor=str
  3297. end
  3298. end)()
  3299. end
  3300. end)
  3301.  
  3302. set.MakeCommand('UnFire',2,set.Prefix,{'unfire','removefire','extinguish'},{'player'},1,function(plr,args)
  3303. local plrz = set.GetPlayers(plr, args[1]:lower())
  3304. for i, v in pairs(plrz) do
  3305. coroutine.wrap(function()
  3306. if v and v.Character and v.Character:findFirstChild("Torso") then
  3307. for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Fire") or cl:IsA('PointLight') then cl:Destroy() end end
  3308. end
  3309. end)()
  3310. end
  3311. end)
  3312.  
  3313. set.MakeCommand('Smoke',2,set.Prefix,{'smoke','givesmoke'},{'player','color'},2,function(plr,args)
  3314. local plrz = set.GetPlayers(plr, args[1]:lower())
  3315. local str = BrickColor.new('Bright orange').Color
  3316. if args[2] then
  3317. local teststr = args[2]
  3318. if BrickColor.new(teststr) ~= nil then str = BrickColor.new(teststr).Color end
  3319. end
  3320. for i, v in pairs(plrz) do
  3321. coroutine.wrap(function()
  3322. if v and v.Character and v.Character:findFirstChild("Torso") then
  3323. local cl = Instance.new("Smoke", v.Character.Torso) table.insert(set.objects, cl)
  3324. cl.Color=str
  3325. end
  3326. end)()
  3327. end
  3328. end)
  3329.  
  3330. set.MakeCommand('UnSmoke',2,set.Prefix,{'unsmoke'},{'player'},1,function(plr,args)
  3331. local plrz = set.GetPlayers(plr, args[1]:lower())
  3332. for i, v in pairs(plrz) do
  3333. coroutine.wrap(function()
  3334. if v and v.Character and v.Character:findFirstChild("Torso") then
  3335. for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Smoke") then cl:Destroy() end end
  3336. end
  3337. end)()
  3338. end
  3339. end)
  3340.  
  3341. set.MakeCommand('Sparkles',2,set.Prefix,{'sparkles'},{'player','color'},2,function(plr,args)
  3342. local plrz = set.GetPlayers(plr, args[1]:lower())
  3343. local str = BrickColor.new('Bright blue').Color
  3344. if args[2] then
  3345. local teststr = args[2]
  3346. if BrickColor.new(teststr) ~= nil then str = BrickColor.new(teststr).Color end
  3347. end
  3348. for i, v in pairs(plrz) do
  3349. coroutine.wrap(function()
  3350. if v and v.Character and v.Character:findFirstChild("Torso") then
  3351. local cl = Instance.new("Sparkles", v.Character.Torso) table.insert(set.objects, cl)
  3352. local p=Instance.new('PointLight',v.Character.Torso) table.insert(set.objects, p)
  3353. p.Color=str
  3354. p.Brightness=5
  3355. p.Range=15
  3356. cl.SparkleColor=str
  3357. end
  3358. end)()
  3359. end
  3360. end)
  3361.  
  3362. set.MakeCommand('UnSparkle',2,set.Prefix,{'unsparkles'},{'player'},1,function(plr,args)
  3363. local plrz = set.GetPlayers(plr, args[1]:lower())
  3364. for i, v in pairs(plrz) do
  3365. coroutine.wrap(function()
  3366. if v and v.Character and v.Character:findFirstChild("Torso") then
  3367. for z, cl in pairs(v.Character.Torso:children()) do if cl:IsA("Sparkles") or cl:IsA('PointLight') then cl:Destroy() end end
  3368. end
  3369. end)()
  3370. end
  3371. end)
  3372.  
  3373. set.MakeCommand('Force Field',2,set.Prefix,{'ff','forcefield'},{'player'},1,function(plr,args)
  3374. local plrz = set.GetPlayers(plr, args[1]:lower())
  3375. for i, v in pairs(plrz) do
  3376. coroutine.wrap(function()
  3377. if v and v.Character then Instance.new("ForceField", v.Character) end
  3378. end)()
  3379. end
  3380. end)
  3381.  
  3382. set.MakeCommand('Remove Force Field',2,set.Prefix,{'unff','unforcefield'},{'player'},1,function(plr,args)
  3383. local plrz = set.GetPlayers(plr, args[1]:lower())
  3384. for i, v in pairs(plrz) do
  3385. coroutine.wrap(function()
  3386. if v and v.Character then
  3387. for z, cl in pairs(v.Character:children()) do if cl:IsA("ForceField") then cl:Destroy() end end
  3388. end
  3389. end)()
  3390. end
  3391. end)
  3392.  
  3393. set.MakeCommand('Punish',2,set.Prefix,{'punsish'},{'player'},1,function(plr,args)
  3394. local plrz = set.GetPlayers(plr, args[1]:lower())
  3395. for i, v in pairs(plrz) do
  3396. coroutine.wrap(function()
  3397. if v and v.Character then
  3398. v.Character.Parent = game:service("Lighting")
  3399. end
  3400. end)()
  3401. end
  3402. end)
  3403.  
  3404. set.MakeCommand('UnPunish',2,set.Prefix,{'unpunish'},{'player'},1,function(plr,args)
  3405. local plrz = set.GetPlayers(plr, args[1]:lower())
  3406. for i, v in pairs(plrz) do
  3407. coroutine.wrap(function()
  3408. if v and v.Character then
  3409. v.Character.Parent = game:service("Workspace")
  3410. v.Character:MakeJoints()
  3411. end
  3412. end)()
  3413. end
  3414. end)
  3415.  
  3416. set.MakeCommand('Freeze',2,set.Prefix,{'freeze'},{'player'},1,function(plr,args)
  3417. local plrz = set.GetPlayers(plr, args[1]:lower())
  3418. for i, v in pairs(plrz) do
  3419. coroutine.wrap(function()
  3420. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3421. for a, obj in pairs(v.Character:children()) do
  3422. if obj:IsA("BasePart") then obj.Anchored = true end v.Character.Humanoid.WalkSpeed = 0
  3423. end
  3424. end
  3425. end)()
  3426. end
  3427. end)
  3428.  
  3429. set.MakeCommand('Thaw',2,set.Prefix,{'thaw','unfreeze'},{'player'},1,function(plr,args)
  3430. local plrz = set.GetPlayers(plr, args[1]:lower())
  3431. for i, v in pairs(plrz) do
  3432. coroutine.wrap(function()
  3433. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3434. for a, obj in pairs(v.Character:children()) do
  3435. if obj:IsA("BasePart") then obj.Anchored = false end v.Character.Humanoid.WalkSpeed = 16
  3436. end
  3437. end
  3438. end)()
  3439. end
  3440. end)
  3441.  
  3442. set.MakeCommand('Heal',2,set.Prefix,{'heal'},{'player'},1,function(plr,args)
  3443. local plrz = set.GetPlayers(plr, args[1]:lower())
  3444. for i, v in pairs(plrz) do
  3445. coroutine.wrap(function()
  3446. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3447. v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth
  3448. end
  3449. end)()
  3450. end
  3451. end)
  3452.  
  3453. set.MakeCommand('God',2,set.Prefix,{'god','immortal'},{'player'},1,function(plr,args)
  3454. local plrz = set.GetPlayers(plr, args[1]:lower())
  3455. for i, v in pairs(plrz) do
  3456. coroutine.wrap(function()
  3457. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3458. v.Character.Humanoid.MaxHealth = math.huge
  3459. v.Character.Humanoid.Health = 9e9
  3460. end
  3461. end)()
  3462. end
  3463. end)
  3464.  
  3465. set.MakeCommand('UnGod',2,set.Prefix,{'ungod','mortal'},{'player'},1,function(plr,args)
  3466. local plrz = set.GetPlayers(plr, args[1]:lower())
  3467. for i, v in pairs(plrz) do
  3468. coroutine.wrap(function()
  3469. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3470. v.Character.Humanoid.MaxHealth = 100
  3471. v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth
  3472. end
  3473. end)()
  3474. end
  3475. end)
  3476.  
  3477. set.MakeCommand('Change Ambient',2,set.Prefix,{'ambient'},{'num','num','num'},3,function(plr,args)
  3478. game:service('Lighting').Ambient = Color3.new(args[1],args[2],args[3])
  3479. end)
  3480.  
  3481. set.MakeCommand('Change OutdoorAmbient',2,set.Prefix,{'oambient','outdoorambient'},{'num','num','num'},3,function(plr,args)
  3482. game:service('Lighting').OutdoorAmbient = Color3.new(args[1],args[2],args[3])
  3483. end)
  3484.  
  3485. set.MakeCommand('Fog Off',2,set.Prefix,{'nofog','fogoff'},{},0,function(plr,args)
  3486. game:service('Lighting').FogEnd=1000000000000
  3487. end)
  3488.  
  3489. set.MakeCommand('Shadows',2,set.Prefix,{'shadows'},{'on/off'},1,function(plr,args)
  3490. if args[1]:lower()=='on' then
  3491. game:service('Lighting').GlobalShadows=true
  3492. elseif args[1]:lower()=='off' then
  3493. game:service('Lighting').GlobalShadows=false
  3494. end
  3495. end)
  3496.  
  3497. set.MakeCommand('Outlines',2,set.Prefix,{'outlines'},{'on/off'},1,function(plr,args)
  3498. if args[1]:lower()=='on' then
  3499. game:service('Lighting').Outlines=true
  3500. elseif args[1]:lower()=='off' then
  3501. game:service('Lighting').Outlines=false
  3502. end
  3503. end)
  3504.  
  3505. set.MakeCommand('Repeat',2,set.Prefix,{'repeat','loop'},{'ammount','interval','command'},3,function(plr,args)
  3506. local amount = tonumber(args[1])
  3507. local timer = tonumber(args[2])
  3508. if timer<=0 then timer=1 end
  3509. local command = args[3]:lower()
  3510. local num=0
  3511. coroutine.wrap(function()
  3512. table.insert(set.dontlog,{n=plr.Name,c=set['Prefix']..command})
  3513. repeat
  3514. set.ChatCommand(plr,set['Prefix']..command)
  3515. wait(timer)
  3516. num=num+1
  3517. until num==amount
  3518. for i,v in pairs(set.dontlog) do
  3519. if v and v.n==plr.Name and v.c==set['Prefix']..command then table.remove(set.dontlog,i) end
  3520. end
  3521. end)()
  3522. end)
  3523.  
  3524. set.MakeCommand('Change Brightness',2,set.Prefix,{'brightness'},{'number'},1,function(plr,args)
  3525. game:service('Lighting').Brightness =args[1]
  3526. end)
  3527.  
  3528. set.MakeCommand('Change Time',2,set.Prefix,{'time','timeofday'},{'time'},1,function(plr,args)
  3529. game:service('Lighting').TimeOfDay = args[1]
  3530. end)
  3531.  
  3532. set.MakeCommand('Fog Color',2,set.Prefix,{'fogcolor'},{'num','num','num'},3,function(plr,args)
  3533. game:service('Lighting').FogColor = Color3.new(args[1],args[2],args[3])
  3534. end)
  3535.  
  3536. set.MakeCommand('Fog Start/End',2,set.Prefix,{'fog'},{'start','end'},2,function(plr,args)
  3537. game:service('Lighting').FogEnd = args[2]
  3538. game:service('Lighting').FogStart = args[1]
  3539. end)
  3540.  
  3541. set.MakeCommand('Build Tools',2,set.Prefix,{'btools','buildtools','buildingtools','buildertools'},{'player'},1,function(plr,args)
  3542. local plrz = set.GetPlayers(plr, args[1]:lower())
  3543. for i, v in pairs(plrz) do
  3544. coroutine.wrap(function()
  3545. if v and v:findFirstChild("Backpack") then
  3546. local t1 = Instance.new("HopperBin", v.Backpack) t1.Name = "Move" t1.BinType = "GameTool"
  3547. local t2 = Instance.new("HopperBin", v.Backpack) t2.Name = "Clone" t2.BinType = "Clone"
  3548. local t3 = Instance.new("HopperBin", v.Backpack) t3.Name = "Delete" t3.BinType = "Hammer"
  3549. local t4 = Instance.new("HopperBin", v.Backpack) t4.Name = "Resize"
  3550. local t5 = game:service('InsertService'):LoadAsset(158489306)
  3551. t5:children()[1].Parent=v.Backpack
  3552. t5:Destroy()
  3553. local cl4 = set.LocalScriptBase:Clone() cl4.Parent = t4 cl4.Code.Value = [[
  3554. repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer:findFirstChild("PlayerGui")
  3555. local sb
  3556. local hs
  3557. local pdist
  3558.  
  3559. script.Parent.Selected:connect(function(mouse)
  3560. if not mouse then return end
  3561. sb = Instance.new("SelectionBox", game.Players.LocalPlayer.PlayerGui) sb.Color = BrickColor.new("Bright blue") sb.Adornee = nil
  3562. hs = Instance.new("Handles", game.Players.LocalPlayer.PlayerGui) hs.Color = BrickColor.new("Bright blue") hs.Adornee = nil
  3563. mouse.Button1Down:connect(function() if not mouse.Target or mouse.Target.Locked then sb.Adornee = nil hs.Adornee = nil else sb.Adornee = mouse.Target hs.Adornee = mouse.Target hs.Faces = mouse.Target.ResizeableFaces end end)
  3564. hs.MouseDrag:connect(function(old,dist) if hs.Adornee and math.abs(dist-pdist) >= hs.Adornee.ResizeIncrement then if hs.Adornee:Resize(old, math.floor((dist-pdist)/ hs.Adornee.ResizeIncrement + .5) * hs.Adornee.ResizeIncrement) then pdist = dist end end end)
  3565. hs.MouseButton1Down:connect(function() pdist = 0 end)
  3566. end)
  3567.  
  3568. script.Parent.Deselected:connect(function() sb:Destroy() hs:Destroy() end)]] cl4.Disabled = false
  3569. end
  3570. end)()
  3571. end
  3572. end)
  3573.  
  3574. set.MakeCommand('Starter Give',2,set.Prefix,{'startergive'},{'player','toolname'},2,function(plr,args)
  3575. local plrz = set.GetPlayers(plr, args[1]:lower())
  3576. for i, v in pairs(plrz) do
  3577. coroutine.wrap(function()
  3578. if v and v:findFirstChild("StarterGear") and game:findFirstChild("Lighting") then
  3579. for a, tool in pairs(game:service('Lighting'):children()) do
  3580. if tool:IsA("Tool") or tool:IsA("HopperBin") then
  3581. if args[2]:lower() == "all" or tool.Name:lower():find(args[2]:lower()) == 1 then tool:Clone().Parent = v.StarterGear end
  3582. end
  3583. end
  3584. end
  3585. end)()
  3586. end
  3587. end)
  3588.  
  3589. set.MakeCommand('Give Tool',2,set.Prefix,{'give','tool'},{'player','tool'},2,function(plr,args)
  3590. local plrz = set.GetPlayers(plr, args[1]:lower())
  3591. for i, v in pairs(plrz) do
  3592. coroutine.wrap(function()
  3593. for a, tool in pairs(game:service('Lighting'):children()) do
  3594. if tool:IsA("Tool") or tool:IsA("HopperBin") then
  3595. if args[2]:lower() == "all" or tool.Name:lower():sub(1,#args[2])==args[2]:lower() then
  3596. tool:clone().Parent = v.Backpack
  3597. end
  3598. end
  3599. end
  3600. end)()
  3601. end
  3602. end)
  3603.  
  3604. set.MakeCommand('Steal Tools',2,set.Prefix,{'steal','stealtools'},{'player','player'},2,function(plr,args)
  3605. local p1 = set.GetPlayers(plr, args[1]:lower())
  3606. local p2 = set.GetPlayers(plr, args[2]:lower())
  3607. coroutine.wrap(function()
  3608. for i,v in pairs(p1) do
  3609. coroutine.wrap(function()
  3610. for k,m in pairs(p2) do
  3611. for j,n in pairs(v.Backpack:children()) do
  3612. print(n.Name)
  3613. local b=n:clone()
  3614. n.Parent=m.Backpack
  3615. end
  3616. end
  3617. v.Backpack:ClearAllChildren()
  3618. end)()
  3619. end
  3620. end)()
  3621. end)
  3622.  
  3623. set.MakeCommand('Remove Tools',2,set.Prefix,{'removetools','notools'},{'player'},1,function(plr,args)
  3624. local plrz = set.GetPlayers(plr, args[1]:lower())
  3625. for i, v in pairs(plrz) do
  3626. coroutine.wrap(function()
  3627. if v and v.Character and v:findFirstChild("Backpack") then
  3628. for a, tool in pairs(v.Character:children()) do if tool:IsA("Tool") or tool:IsA("HopperBin") then tool:Destroy() end end
  3629. for a, tool in pairs(v.Backpack:children()) do if tool:IsA("Tool") or tool:IsA("HopperBin") then tool:Destroy() end end
  3630. end
  3631. end)()
  3632. end
  3633. end)
  3634.  
  3635. set.MakeCommand('Get Rank',2,set.Prefix,{'rank','getrank'},{'player'},1,function(plr,args)
  3636. local plrz = set.GetPlayers(plr, args[1]:lower())
  3637. for i, v in pairs(plrz) do
  3638. coroutine.wrap(function()
  3639. if v and v:IsInGroup(args[2]) then
  3640. set.Hint("[" .. v:GetRankInGroup(args[2]) .. "] " .. v:GetRoleInGroup(args[2]), {plr})
  3641. elseif v and not v:IsInGroup(args[2])then
  3642. set.Hint(v.Name .. " is not in the group " .. args[2], {plr})
  3643. end
  3644. end)()
  3645. end
  3646. end)
  3647.  
  3648. set.MakeCommand('Damage',2,set.Prefix,{'damage','hurt'},{'player','number'},1,function(plr,args)
  3649. local plrz = set.GetPlayers(plr, args[1]:lower())
  3650. for i, v in pairs(plrz) do
  3651. coroutine.wrap(function()
  3652. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3653. v.Character.Humanoid:TakeDamage(args[2])
  3654. end
  3655. end)()
  3656. end
  3657. end)
  3658.  
  3659. set.MakeCommand('Normal Gravity',2,set.Prefix,{'grav','bringtoearth'},{'player'},1,function(plr,args)
  3660. local plrz = set.GetPlayers(plr, args[1]:lower())
  3661. for i, v in pairs(plrz) do
  3662. coroutine.wrap(function()
  3663. if v and v.Character and v.Character:findFirstChild("Torso") then
  3664. for a, frc in pairs(v.Character.Torso:children()) do if frc.Name == "BFRC" then frc:Destroy() end end
  3665. end
  3666. end)()
  3667. end
  3668. end)
  3669.  
  3670. set.MakeCommand('Set Gravity',2,set.Prefix,{'setgrav','gravity','setgravity'},{'player','number'},2,function(plr,args)
  3671. local plrz = set.GetPlayers(plr, args[1]:lower())
  3672. for i, v in pairs(plrz) do
  3673. coroutine.wrap(function()
  3674. if v and v.Character and v.Character:findFirstChild("Torso") then
  3675. for a, frc in pairs(v.Character.Torso:children()) do if frc.Name == "BFRC" then frc:Destroy() end end
  3676. local frc = Instance.new("BodyForce", v.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(0,0,0)
  3677. for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") then frc.force = frc.force - Vector3.new(0,prt:GetMass()*tonumber(args[2]),0) elseif prt:IsA("Hat") then frc.force = frc.force - Vector3.new(0,prt.Handle:GetMass()*tonumber(args[2]),0) end end
  3678. end
  3679. end)()
  3680. end
  3681. end)
  3682.  
  3683. set.MakeCommand('NoGrav',2,set.Prefix,{'nograv','nogravity'},{'player'},1,function(plr,args)
  3684. local plrz = set.GetPlayers(plr, args[1]:lower())
  3685. for i, v in pairs(plrz) do
  3686. coroutine.wrap(function()
  3687. if v and v.Character and v.Character:findFirstChild("Torso") then
  3688. for a, frc in pairs(v.Character.Torso:children()) do if frc.Name == "BFRC" then frc:Destroy() end end
  3689. local frc = Instance.new("BodyForce", v.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(0,0,0)
  3690. for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") then frc.force = frc.force + Vector3.new(0,prt:GetMass()*196.25,0) elseif prt:IsA("Hat") then frc.force = frc.force + Vector3.new(0,prt.Handle:GetMass()*196.25,0) end end
  3691. end
  3692. end)()
  3693. end
  3694. end)
  3695.  
  3696. set.MakeCommand('Set Health',2,set.Prefix,{'health','sethealth'},{'player','number'},2,function(plr,args)
  3697. local plrz = set.GetPlayers(plr, args[1]:lower())
  3698. for i, v in pairs(plrz) do
  3699. coroutine.wrap(function()
  3700. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3701. v.Character.Humanoid.MaxHealth = args[2]
  3702. v.Character.Humanoid.Health = v.Character.Humanoid.MaxHealth
  3703. end
  3704. end)()
  3705. end
  3706. end)
  3707.  
  3708. set.MakeCommand('Set Speed',2,set.Prefix,{'speed','setspeed','walkspeed'},{'player','number'},2,function(plr,args)
  3709. local plrz = set.GetPlayers(plr, args[1]:lower())
  3710. for i, v in pairs(plrz) do
  3711. coroutine.wrap(function()
  3712. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  3713. v.Character.Humanoid.WalkSpeed = args[2]
  3714. end
  3715. end)()
  3716. end
  3717. end)
  3718.  
  3719. set.MakeCommand('Set Team',2,set.Prefix,{'team','setteam','changeteam'},{'player','team'},2,function(plr,args)
  3720. local plrz = set.GetPlayers(plr, args[1]:lower())
  3721. for i, v in pairs(plrz) do
  3722. coroutine.wrap(function()
  3723. if v and game:findFirstChild("Teams") then
  3724. for a, tm in pairs(game.Teams:children()) do
  3725. if tm.Name:lower():find(args[2]:lower()) == 1 then v.TeamColor = tm.TeamColor end
  3726. end
  3727. end
  3728. end)()
  3729. end
  3730. end)
  3731.  
  3732. set.MakeCommand('Teleport to Place',2,set.Prefix,{'place'},{'player','placeid'},2,function(plr,args)
  3733. local plrz = set.GetPlayers(plr, args[1]:lower())
  3734. for i, v in pairs(plrz) do
  3735. coroutine.wrap(function()
  3736. set.PromptPlaceTeleport(v,"Teleport to "..args[2].."?",args[2])
  3737. end)()
  3738. end
  3739. end)
  3740.  
  3741. set.MakeCommand('Teleport',2,set.Prefix,{'tp','teleport'},{'player','player'},2,function(plr,args)
  3742. local plrz = set.GetPlayers(plr, args[1]:lower())
  3743. local plrz2 = set.GetPlayers(plr, args[2]:lower())
  3744. for i, v in pairs(plrz) do
  3745. coroutine.wrap(function()
  3746. for i2, v2 in pairs(plrz2) do
  3747. if v and v2 and v.Character and v2.Character and v.Character:FindFirstChild('Humanoid') and v.Character:findFirstChild("Torso") and v2.Character:findFirstChild("Torso") then
  3748. if v.Character.Humanoid.Sit==true then
  3749. v.Character.Humanoid.Sit=false
  3750. wait(0.5)
  3751. end
  3752. v.Character.Torso.CFrame = v2.Character.Torso.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
  3753. end
  3754. end
  3755. end)()
  3756. end
  3757. end)
  3758.  
  3759. set.MakeCommand('Freefall',2,set.Prefix,{'freefall','skydive'},{'player','height'},2,function(plr,args)
  3760. local plrz = set.GetPlayers(plr, args[1]:lower())
  3761. for i, v in pairs(plrz) do
  3762. coroutine.wrap(function()
  3763. if v and v.Character:FindFirstChild('Torso') then
  3764. v.Character.Torso.CFrame=v.Character.Torso.CFrame+Vector3.new(0,tonumber(args[2]),0)
  3765. end
  3766. end)()
  3767. end
  3768. end)
  3769.  
  3770. set.MakeCommand('Change Leaderstat',2,set.Prefix,{'change','leaderstat','stat'},{'player','stat','value'},3,function(plr,args)
  3771. local plrz = set.GetPlayers(plr, args[1]:lower())
  3772. for i, v in pairs(plrz) do
  3773. coroutine.wrap(function()
  3774. if v and v:findFirstChild("leaderstats") then
  3775. for a, st in pairs(v.leaderstats:children()) do
  3776. if st.Name:lower():find(args[2]:lower()) == 1 then st.Value = args[3] end
  3777. end
  3778. end
  3779. end)()
  3780. end
  3781. end)
  3782.  
  3783. set.MakeCommand('Give Shirt',2,set.Prefix,{'shirt','giveshirt'},{'player','id'},2,function(plr,args)
  3784. local plrz = set.GetPlayers(plr, args[1]:lower())
  3785. for i, v in pairs(plrz) do
  3786. coroutine.wrap(function()
  3787. if v and v.Character then
  3788. for g,k in pairs(v.Character:children()) do
  3789. if k:IsA("Shirt") then k:Destroy() end
  3790. end
  3791. local s=Instance.new('Shirt',v.Character)
  3792. s.ShirtTemplate="http://www.roblox.com/asset/?id="..args[2]
  3793. end
  3794. end)()
  3795. end
  3796. end)
  3797.  
  3798. set.MakeCommand('Give Pants',2,set.Prefix,{'pants','givepants'},{'player','id'},2,function(plr,args)
  3799. local plrz = set.GetPlayers(plr, args[1]:lower())
  3800. for i, v in pairs(plrz) do
  3801. coroutine.wrap(function()
  3802. if v and v.Character then
  3803. for g,k in pairs(v.Character:children()) do
  3804. if k:IsA("Pants") then k:Destroy() end
  3805. end
  3806. local s=Instance.new('Pants',v.Character)
  3807. s.PantsTemplate="http://www.roblox.com/asset/?id="..args[2]
  3808. end
  3809. end)()
  3810. end
  3811. end)
  3812.  
  3813. set.MakeCommand('Give Face',2,set.Prefix,{'face','giveface'},{'player','id'},2,function(plr,args)
  3814. local plrz = set.GetPlayers(plr, args[1]:lower())
  3815. for i, v in pairs(plrz) do
  3816. coroutine.wrap(function()
  3817. if v and v.Character and v.Character:findFirstChild("Head") and v.Character.Head:findFirstChild("face") then
  3818. v.Character.Head:findFirstChild("face").Texture = "http://www.roblox.com/asset/?id=" .. args[2]
  3819. end
  3820. end)()
  3821. end
  3822. end)
  3823.  
  3824. ---------------------
  3825. -- FunCommands --
  3826. ---------------------
  3827. if set['FunCommands'] then
  3828. set.MakeCommand('Swagify',2,set.Prefix,{'swagify','swagger'},{'player'},1,function(plr,args)
  3829. local plrz = set.GetPlayers(plr, args[1]:lower())
  3830. for i, v in pairs(plrz) do
  3831. coroutine.wrap(function()
  3832. if v and v.Character then
  3833. for i,v in pairs(v.Character:children()) do
  3834. if v.Name == "Shirt" then local cl = v:Clone() cl.Parent = v.Parent cl.ShirtTemplate = "http://www.roblox.com/asset/?id=109163376" v:Destroy() end
  3835. if v.Name == "Pants" then local cl = v:Clone() cl.Parent = v.Parent cl.PantsTemplate = "http://www.roblox.com/asset/?id=109163376" v:Destroy() end
  3836. end
  3837. for a,cp in pairs(v.Character:children()) do if cp.Name == "EpicCape" then cp:Destroy() end end
  3838. set.LoadOnClient(v,[[local plr = game.Players.LocalPlayer
  3839. repeat wait() until plr and plr.Character and plr.Character:findFirstChild("Torso")
  3840. local torso = plr.Character.Torso
  3841. local p = Instance.new("Part", torso.Parent) p.Name = "EpicCape" p.Anchored = false
  3842. p.CanCollide = false p.TopSurface = 0 p.BottomSurface = 0 p.BrickColor = BrickColor.new("Pink") local dec = Instance.new("Decal", p) dec.Face = 2 dec.Texture = "http://www.roblox.com/asset/?id=109301474" p.formFactor = "Custom"
  3843. p.Size = Vector3.new(.2,.2,.2)
  3844. local msh = Instance.new("BlockMesh", p) msh.Scale = Vector3.new(9,17.5,.5)
  3845. local motor1 = Instance.new("Motor", p)
  3846. motor1.Part0 = p
  3847. motor1.Part1 = torso
  3848. motor1.MaxVelocity = .01
  3849. motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0)
  3850. motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0)
  3851. local wave = false
  3852. repeat wait(1/44)
  3853. local ang = 0.1
  3854. local oldmag = torso.Velocity.magnitude
  3855. local mv = .002
  3856. if wave then ang = ang + ((torso.Velocity.magnitude/10)*.05)+.05 wave = false else wave = true end
  3857. ang = ang + math.min(torso.Velocity.magnitude/11, .5)
  3858. motor1.MaxVelocity = math.min((torso.Velocity.magnitude/111), .04) + mv
  3859. motor1.DesiredAngle = -ang
  3860. if motor1.CurrentAngle < -.2 and motor1.DesiredAngle > -.2 then motor1.MaxVelocity = .04 end
  3861. repeat wait() until motor1.CurrentAngle == motor1.DesiredAngle or math.abs(torso.Velocity.magnitude - oldmag) >= (torso.Velocity.magnitude/10) + 1
  3862. if torso.Velocity.magnitude < .1 then wait(.1) end
  3863. until not p or p.Parent ~= torso.Parent
  3864. script:Destroy()
  3865. ]],false,'CapeScript')
  3866. end
  3867. end)()
  3868. end
  3869. end)
  3870.  
  3871. set.MakeCommand('Rocket',2,set.Prefix,{'rocket','firework'},{'player'},1,function(plr,args)
  3872. for i,v in pairs(set.GetPlayers(plr, args[1]:lower())) do
  3873. coroutine.wrap(function()
  3874. if v.Character and v.Character:FindFirstChild("Torso") then
  3875. delay(0,function()
  3876. local speed = 10
  3877. local Part = Instance.new("Part")
  3878. Part.Parent = v.Character
  3879. local SpecialMesh = Instance.new("SpecialMesh")
  3880. SpecialMesh.Parent = Part
  3881. SpecialMesh.MeshId = "http://www.roblox.com/asset/?id=2251534"
  3882. SpecialMesh.MeshType = "FileMesh"
  3883. SpecialMesh.TextureId = "43abb6d081e0fbc8666fc92f6ff378c1"
  3884. SpecialMesh.Scale = Vector3.new(0.5,0.5,0.5)
  3885. local Weld = Instance.new("Weld")
  3886. Weld.Parent = Part
  3887. Weld.Part0 = Part
  3888. Weld.Part1 = v.Character.Torso
  3889. Weld.C0 = CFrame.new(0,-1,0)*CFrame.Angles(-1.5,0,0)
  3890. local BodyVelocity = Instance.new("BodyVelocity")
  3891. BodyVelocity.Parent = Part
  3892. BodyVelocity.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3893. BodyVelocity.velocity = Vector3.new(0,10*speed,0)
  3894. delay(0,function()
  3895. for i = 1,math.huge do
  3896. local Explosion = Instance.new("Explosion")
  3897. Explosion.Parent = Part
  3898. Explosion.BlastRadius = 0
  3899. Explosion.Position = Part.Position + Vector3.new(0,0,0)
  3900. wait()
  3901. end
  3902. end)
  3903. wait(3)
  3904. pcall(function()
  3905. BodyVelocity:remove()
  3906. Instance.new("Explosion",workspace).Position=v.Character.Torso.Position
  3907. v.Character:BreakJoints()
  3908. end)
  3909. end)
  3910. end
  3911. end)()
  3912. end
  3913. end)
  3914.  
  3915. set.MakeCommand('Dance',2,set.Prefix,{'dance'},{'player'},1,function(plr,args)
  3916. local plrz = set.GetPlayers(plr, args[1]:lower())
  3917. for i, v in pairs(plrz) do
  3918. coroutine.wrap(function()
  3919. if v and v.Character and v.Character:FindFirstChild('Humanoid') then
  3920. local anim=Instance.new('Animation',v.Character)
  3921. anim.AnimationId='http://www.roblox.com/Asset?ID=27789359'
  3922. anim.Name='Dance'
  3923. set.LoadOnClient(v,[[local human = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  3924. local dancer = human:LoadAnimation(human.Parent.Dance)
  3925. dancer:Play()
  3926. wait(60)
  3927. dancer:Stop()
  3928. dancer:Destroy()]],false,set.AssignName())
  3929. end
  3930. end)()
  3931. end
  3932. end)
  3933.  
  3934. set.MakeCommand('BreakDance',2,set.Prefix,{'breakdance','fundance','lolwut'},{'player'},1,function(plr,args)
  3935. local plrz = set.GetPlayers(plr, args[1]:lower())
  3936. for i, v in pairs(plrz) do
  3937. coroutine.wrap(function()
  3938. local color
  3939. local num=math.random(1,7)
  3940. if num==1 then
  3941. color='Really blue'
  3942. elseif num==2 then
  3943. color='Really red'
  3944. elseif num==3 then
  3945. color='Magenta'
  3946. elseif num==4 then
  3947. color='Lime green'
  3948. elseif num==5 then
  3949. color='Hot pink'
  3950. elseif num==6 then
  3951. color='New Yeller'
  3952. elseif num==7 then
  3953. color='White'
  3954. end
  3955. if v and v.Character and v.Character:FindFirstChild('Humanoid') then
  3956. local anim=Instance.new('Animation',v.Character)
  3957. anim.AnimationId='http://www.roblox.com/Asset?ID=27789359'
  3958. anim.Name='Dance'
  3959. set.LoadOnClient(v,[[local human = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
  3960. local dancer = human:LoadAnimation(human.Parent.Dance)
  3961. dancer:Play()
  3962. while wait() do
  3963. human.PlatformStand=true
  3964. end]],false,set.AssignName())
  3965. cmd=set['Prefix'].."batch"..set['SplitKey'].."sparkles"..set['SplitKey']..v.Name..set['SplitKey']..color.."/fire"..set['SplitKey']..v.Name..set['SplitKey']..color.."/nograv"..set['SplitKey']..v.Name.."/smoke"..set['SplitKey']..v.Name..set['SplitKey']..color.."/spin"..set['SplitKey']..v.Name
  3966. set.ChatCommand(plr,cmd)
  3967. end
  3968. end)()
  3969. end
  3970. end)
  3971.  
  3972. set.MakeCommand('Puke',2,set.Prefix,{'puke','barf','throwup'},{'player'},1,function(plr,args)
  3973. for i,v in pairs(set.GetPlayers(plr, args[1])) do
  3974. coroutine.wrap(function()
  3975. if (not v:IsA('Player')) or (not v) or (not v.Character) or (not v.Character:FindFirstChild('Head')) or v.Character:FindFirstChild('Kohls Puke') then return end
  3976. local run=true
  3977. local k=Instance.new('StringValue',v.Character)
  3978. k.Name='Kohls Puke'
  3979. coroutine.wrap(function()
  3980. repeat
  3981. wait(0.15)
  3982. local p = Instance.new("Part",v.Character)
  3983. p.CanCollide = false
  3984. local color = math.random(1, 3)
  3985. local bcolor
  3986. if color == 1 then
  3987. bcolor = BrickColor.new(192)
  3988. elseif color == 2 then
  3989. bcolor = BrickColor.new(28)
  3990. elseif color == 3 then
  3991. bcolor = BrickColor.new(105)
  3992. end
  3993. p.BrickColor = bcolor
  3994. local m=Instance.new('BlockMesh',p)
  3995. p.Size=Vector3.new(0.1,0.1,0.1)
  3996. m.Scale = Vector3.new(math.random()*0.9, math.random()*0.9, math.random()*0.9)
  3997. p.Locked = true
  3998. p.TopSurface = "Smooth"
  3999. p.BottomSurface = "Smooth"
  4000. p.CFrame = v.Character.Head.CFrame * CFrame.new(Vector3.new(0, 0, -1))
  4001. p.Velocity = v.Character.Head.CFrame.lookVector * 20 + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  4002. p.Anchored = false
  4003. m.Name='Puke Peice'
  4004. p.Name='Puke Peice'
  4005. p.Touched:connect(function(o)
  4006. if o and p and (not game.Players:FindFirstChild(o.Parent.Name)) and o.Name~='Puke Peice' and o.Name~='Blood Peice' and o.Name~='Blood Plate' and o.Name~='Puke Plate' and (o.Parent.Name=='Workspace' or o.Parent:IsA('Model')) and (o.Parent~=p.Parent) and o:IsA('Part') and (o.Parent.Name~=v.Character.Name) and (not o.Parent:IsA('Hat')) and (not o.Parent:IsA('Tool')) then
  4007. local cf=CFrame.new(p.CFrame.X,o.CFrame.Y+o.Size.Y/2,p.CFrame.Z)
  4008. p:Destroy()
  4009. local g=Instance.new('Part',workspace)
  4010. g.Anchored=true
  4011. g.CanCollide=false
  4012. g.Size=Vector3.new(0.1,0.1,0.1)
  4013. g.Name='Puke Plate'
  4014. g.CFrame=cf
  4015. g.BrickColor=BrickColor.new(119)
  4016. local c=Instance.new('CylinderMesh',g)
  4017. c.Scale=Vector3.new(1,0.2,1)
  4018. c.Name='PukeMesh'
  4019. wait(10)
  4020. g:Destroy()
  4021. elseif o and o.Name=='Puke Plate' and p then
  4022. p:Destroy()
  4023. o.PukeMesh.Scale=o.PukeMesh.Scale+Vector3.new(0.5,0,0.5)
  4024. end
  4025. end)
  4026. until run==false or (not v) or (not v.Character) or (not v.Character:FindFirstChild('Head'))
  4027. end)()
  4028. wait(10)
  4029. run=false
  4030. k:Destroy()
  4031. end)()
  4032. end
  4033. end)
  4034.  
  4035. set.MakeCommand('Cut',2,set.Prefix,{'cut','stab','shank'},{'player'},1,function(plr,args)
  4036. for i,v in pairs(set.GetPlayers(plr, args[1]:lower())) do
  4037. coroutine.wrap(function()
  4038. if (not v:IsA('Player')) or (not v) or (not v.Character) or (not v.Character:FindFirstChild('Head')) or v.Character:FindFirstChild('Kohls Bleed') then return end
  4039. local run=true
  4040. local k=Instance.new('StringValue',v.Character)
  4041. k.Name='Kohls Bleed'
  4042. coroutine.wrap(function()
  4043. repeat
  4044. wait(0.15)
  4045. v.Character.Humanoid.Health=v.Character.Humanoid.Health-1
  4046. local p = Instance.new("Part",v.Character)
  4047. p.CanCollide = false
  4048. local color = math.random(1, 3)
  4049. local bcolo
  4050. if color == 1 then
  4051. bcolor = BrickColor.new(21)
  4052. elseif color == 2 then
  4053. bcolor = BrickColor.new(1004)
  4054. elseif color == 3 then
  4055. bcolor = BrickColor.new(21)
  4056. end
  4057. p.BrickColor = bcolor
  4058. local m=Instance.new('BlockMesh',p)
  4059. p.Size=Vector3.new(0.1,0.1,0.1)
  4060. m.Scale = Vector3.new(math.random()*0.9, math.random()*0.9, math.random()*0.9)
  4061. p.Locked = true
  4062. p.TopSurface = "Smooth"
  4063. p.BottomSurface = "Smooth"
  4064. p.CFrame = v.Character.Torso.CFrame * CFrame.new(Vector3.new(2, 0, 0))
  4065. p.Velocity = v.Character.Head.CFrame.lookVector * 1 + Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1))
  4066. p.Anchored = false
  4067. m.Name='Blood Peice'
  4068. p.Name='Blood Peice'
  4069. p.Touched:connect(function(o)
  4070. if o and p and (not game.Players:FindFirstChild(o.Parent.Name)) and o.Name~='Blood Peice' and o.Name~='Puke Peice' and o.Name~='Puke Plate' and o.Name~='Blood Plate' and (o.Parent.Name=='Workspace' or o.Parent:IsA('Model')) and (o.Parent~=p.Parent) and o:IsA('Part') and (o.Parent.Name~=v.Character.Name) and (not o.Parent:IsA('Hat')) and (not o.Parent:IsA('Tool')) then
  4071. local cf=CFrame.new(p.CFrame.X,o.CFrame.Y+o.Size.Y/2,p.CFrame.Z)
  4072. p:Destroy()
  4073. local g=Instance.new('Part',workspace)
  4074. g.Anchored=true
  4075. g.CanCollide=false
  4076. g.Size=Vector3.new(0.1,0.1,0.1)
  4077. g.Name='Blood Plate'
  4078. g.CFrame=cf
  4079. g.BrickColor=BrickColor.new(21)
  4080. local c=Instance.new('CylinderMesh',g)
  4081. c.Scale=Vector3.new(1,0.2,1)
  4082. c.Name='BloodMesh'
  4083. wait(10)
  4084. g:Destroy()
  4085. elseif o and o.Name=='Blood Plate' and p then
  4086. p:Destroy()
  4087. o.BloodMesh.Scale=o.BloodMesh.Scale+Vector3.new(0.5,0,0.5)
  4088. end
  4089. end)
  4090. until run==false or (not v) or (not v.Character) or (not v.Character:FindFirstChild('Head'))
  4091. end)()
  4092. wait(10)
  4093. run=false
  4094. k:Destroy()
  4095. end)()
  4096. end
  4097. end)
  4098.  
  4099. set.MakeCommand('Number of Player Points',5,set.Prefix,{'points','getpoints'},{},0,function(plr,args)
  4100. set.Hint('Available Player Points: '..game:GetService("PointsService"):GetAwardablePoints(),{plr})
  4101. end)
  4102.  
  4103. set.MakeCommand('Give Player Points',5,set.Prefix,{'givepoints','sendpoints'},{'player','ammount'},2,function(plr,args)
  4104. for i,v in pairs(set.GetPlayers(plr,args[1]:lower())) do
  4105. local ran,failed=ypcall(function() game:GetService("PointsService"):AwardPoints(v.userId,tonumber(args[2])) end)
  4106. if ran and game:GetService("PointsService"):GetAwardablePoints()>=tonumber(args[2]) then
  4107. set.Hint('Gave '..args[2]..' points to '..v.Name,{plr})
  4108. elseif game:GetService("PointsService"):GetAwardablePoints()<tonumber(args[2])then
  4109. set.Hint("You don't have "..args[2]..' points to give to '..v.Name,{plr})
  4110. else
  4111. set.Hint("(Unknown Error) Failed to give "..args[2]..' points to '..v.Name,{plr})
  4112. end
  4113. set.Hint('Available Player Points: '..game:GetService("PointsService"):GetAwardablePoints(),{plr})
  4114. end
  4115. end)
  4116.  
  4117. set.MakeCommand('Poison',2,set.Prefix,{'poison'},{'player'},1,function(plr,args)
  4118. for i,v in pairs(set.GetPlayers(plr,args[1]:lower())) do
  4119. local torso=v.Character:FindFirstChild('Torso')
  4120. local larm=v.Character:FindFirstChild('Left Arm')
  4121. local rarm=v.Character:FindFirstChild('Right Arm')
  4122. local lleg=v.Character:FindFirstChild('Left Leg')
  4123. local rleg=v.Character:FindFirstChild('Right Leg')
  4124. local head=v.Character:FindFirstChild('Head')
  4125. local hum=v.Character:FindFirstChild('Humanoid')
  4126. if torso and larm and rarm and lleg and rleg and head and hum and not v.Character:FindFirstChild('KohlsPoisoned') then
  4127. local poisoned=Instance.new('BoolValue',v.Character)
  4128. poisoned.Name='KohlsPoisoned'
  4129. poisoned.Value=true
  4130. local tor=torso.BrickColor
  4131. local lar=larm.BrickColor
  4132. local rar=rarm.BrickColor
  4133. local lle=lleg.BrickColor
  4134. local rle=rleg.BrickColor
  4135. local hea=head.BrickColor
  4136. torso.BrickColor=BrickColor.new('Br. yellowish green')
  4137. larm.BrickColor=BrickColor.new('Br. yellowish green')
  4138. rarm.BrickColor=BrickColor.new('Br. yellowish green')
  4139. lleg.BrickColor=BrickColor.new('Br. yellowish green')
  4140. rleg.BrickColor=BrickColor.new('Br. yellowish green')
  4141. head.BrickColor=BrickColor.new('Br. yellowish green')
  4142. local run=true
  4143. coroutine.wrap(function() wait(10) run=false end)()
  4144. repeat
  4145. wait(1)
  4146. hum.Health=hum.Health-5
  4147. until (not poisoned) or (not poisoned.Parent) or (not run)
  4148. if poisoned and poisoned.Parent then
  4149. torso.BrickColor=tor
  4150. larm.BrickColor=lar
  4151. rarm.BrickColor=rar
  4152. lleg.BrickColor=lle
  4153. rleg.BrickColor=rle
  4154. head.BrickColor=hea
  4155. end
  4156. end
  4157. end
  4158. end)
  4159.  
  4160. set.MakeCommand('Drug',2,set.Prefix,{'drug','intoxicate'},{'player'},1,function(plr,args)
  4161. for i,v in pairs(set.GetPlayers(plr, args[1]:lower())) do
  4162. coroutine.wrap(function()
  4163. local msgs={{Msg='We need more..... philosophy... ya know?',Color=Enum.ChatColor.Green},{Msg='OH MY GOD STOP TRYING TO EAT MY SOUL',Color=Enum.ChatColor.Red},{Msg='I.... CANT.... FEEL.... MY FACE',Color=Enum.ChatColor.Red},{Msg='DO YOU SEE THE TURTLE?!?!',Color=Enum.ChatColor.Red},{Msg='Omg puff the magic dragon!!!!',Color=Enum.ChatColor.Green},{Msg='Omg double wat',Color=Enum.ChatColor.Blue},{Msg='WHO STOLE MY LEGS',Color=Enum.ChatColor.Red},{Msg='I... I think I might be dead....',Color=Enum.ChatColor.Blue},{Msg="I'M GOING TO EAT YOUR FACE",Color=Enum.ChatColor.Red},{Msg='Hey... Like... What if, like, listen, are you listening? What if.. like.. earth.. was a ball?',Color=Enum.ChatColor.Green},{Msg='WHY IS EVERYBODY TALKING SO LOUD AHHHHHH',Color=Enum.ChatColor.Red},{Msg='Woooo man do you see the elephent... theres an elephent man..its... PURPLE OHMY GOD ITS A SIGN FROM LIKE THE WARDROBE..',Color=Enum.ChatColor.Blue}}
  4164. v.Character.Humanoid.WalkSpeed=-16
  4165. set.LoadOnClient(v,[[
  4166. coroutine.wrap(function()
  4167. repeat
  4168. wait(0.1)
  4169. game.Workspace.CurrentCamera.FieldOfView=math.random(20,80)
  4170. game.Players.LocalPlayer.Character.Humanoid.Health=game.Players.LocalPlayer.Character.Humanoid.Health-0.5
  4171. until game.Players.LocalPlayer.Character.Humanoid.Health<=0 or not game.Players.LocalPlayer.Character:FindFirstChild('Torso')
  4172. game.Workspace.CurrentCamera.FieldOfView=70
  4173. end)()
  4174. wait(10)
  4175. coroutine.wrap(function()
  4176. local torso = game.Players.LocalPlayer.Character:findFirstChild("Torso")
  4177. local bg = Instance.new("BodyGyro", torso)
  4178. bg.Name = "SPINNER"
  4179. bg.maxTorque = Vector3.new(0,math.huge,0)
  4180. bg.P = 11111
  4181. bg.cframe = torso.CFrame
  4182. repeat wait(1/44)
  4183. bg.cframe = bg.cframe * CFrame.Angles(0,math.rad(30),0)
  4184. until not bg or bg.Parent ~= torso
  4185. end)()
  4186. wait(20)
  4187. coroutine.wrap(function()
  4188. repeat wait()
  4189. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
  4190. game.Players.LocalPlayer.Character.Torso.Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10))
  4191. game.Players.LocalPlayer.Character.Torso.RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  4192. until nil
  4193. end)()]],false,set.AssignName())
  4194. local chat=game:GetService('Chat')
  4195. coroutine.wrap(function()
  4196. local val=Instance.new('StringValue',v.Character.Head)
  4197. local old=math.random()
  4198. while v and v.Character and v.Character.Head and val and val.Parent==v.Character.Head and v.Character.Humanoid.Health>0 do
  4199. local new=math.random(1,#msgs)
  4200. for k,m in pairs(msgs) do
  4201. if new==k then
  4202. if old~=new then
  4203. old=new
  4204. print(m.Msg)
  4205. chat:Chat(v.Character.Head,m.Msg,m.Color)
  4206. end
  4207. end
  4208. end
  4209. wait(5)
  4210. end
  4211. end)()
  4212. end)()
  4213. end
  4214. end)
  4215.  
  4216. set.MakeCommand('Change Pitch',2,set.Prefix,{'pitch'},{'number'},1,function(plr,args)
  4217. coroutine.wrap(function()
  4218. local pitch = args[1]
  4219. for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v.Pitch=pitch end end
  4220. end)()
  4221. end)
  4222.  
  4223. set.MakeCommand('Start Music',2,set.Prefix,{'music','song','playsong'},{'id'},1,function(plr,args)
  4224. coroutine.wrap(function()
  4225. for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end
  4226. local id = args[1]:lower()
  4227. local pitch = 1
  4228. local mp = game:service('MarketplaceService')
  4229. local volume = 1
  4230. for i,v in pairs(set['MusicList']) do
  4231. if id==v.Name:lower() then id=v.Id end
  4232. if v.Pitch then pitch=v.Pitch end
  4233. if v.Volume then volume=v.Volume end
  4234. end
  4235. local name = 'Invalid ID '
  4236. pcall(function()
  4237. if mp:GetProductInfo(id).AssetTypeId==3 then
  4238. name = 'Now playing '..mp:GetProductInfo(id).Name
  4239. end
  4240. end)
  4241. local s = Instance.new("Sound", game.Workspace)
  4242. s.SoundId = "http://www.roblox.com/asset/?id=" .. id
  4243. s.Volume = volume
  4244. s.Pitch = pitch
  4245. s.Looped = true
  4246. s.archivable = false
  4247. pcall(function() s:Play()end)
  4248. set.Hint(name..' ('..id..')',game.Players:children())
  4249. end)()
  4250. end)
  4251.  
  4252. set.MakeCommand('Stop Music',2,set.Prefix,{'stopmusic','musicoff'},{},0,function(plr,args)
  4253. for i, v in pairs(game.Workspace:children()) do if v:IsA("Sound") then v:Destroy() end end
  4254. end)
  4255.  
  4256. set.MakeCommand('Music List',2,set.Prefix,{'musiclist','listmusic','songs'},{},0,function(plr,args)
  4257. local listforclient={}
  4258. for i, v in pairs(set['MusicList']) do
  4259. table.insert(listforclient,v.Name)
  4260. end
  4261. set.Remote(plr,'SetSetting','MusicList',listforclient)
  4262. set.Remote(plr,'Function','ListGui','Music List','MusicList')
  4263. end)
  4264.  
  4265. set.MakeCommand('Stickify',2,set.Prefix,{'stickify','stick','stickman'},{'player'},1,function(plr,args)
  4266. local plrz = set.GetPlayers(plr, args[1]:lower())
  4267. for kay, player in pairs(plrz) do
  4268. coroutine.wrap(function()
  4269. local Self = player
  4270. m = Self.Character
  4271. for i,v in pairs(m:GetChildren()) do
  4272. if v:IsA ("Part") then
  4273. local s = Instance.new("SelectionPartLasso")
  4274. s.Parent = m.Torso
  4275. s.Part = v
  4276. s.Humanoid = m.Humanoid
  4277. s.Color = BrickColor.new(0,0,0)
  4278. v.Transparency = 1
  4279. m.Head.Transparency = 0
  4280. m.Head.Mesh:Remove()
  4281. local b = Instance.new("SpecialMesh")
  4282. b.Parent = m.Head
  4283. b.MeshType = "Sphere"
  4284. b.Scale = Vector3.new(.5,1,1)
  4285. m.Head.BrickColor = BrickColor.new("Black")
  4286. else
  4287. end
  4288. end
  4289. end)()
  4290. end
  4291. end)
  4292.  
  4293. set.MakeCommand('Hole',2,set.Prefix,{'hole','sparta'},{'player'},1,function(plr,args)
  4294. local plrz = set.GetPlayers(plr, args[1]:lower())
  4295. for kay, player in pairs(plrz) do
  4296. coroutine.wrap(function()
  4297. local Self=player
  4298. local Tor
  4299. if pcall(function() Tor = Self.Character.Torso end) then
  4300. local Hole = Instance.new("Part",Self.Character)
  4301. Hole.Anchored = true
  4302. Hole.CanCollide = false
  4303. Hole.formFactor = Enum.FormFactor.Custom
  4304. Hole.Size = Vector3.new(10,1,10)
  4305. Hole.CFrame = Tor.CFrame * CFrame.new(0,-3.3,-3)
  4306. Hole.BrickColor = BrickColor.new("Really black")
  4307. local HoleM = Instance.new("CylinderMesh",Hole)
  4308. Tor.Anchored = true
  4309. local Foot = Tor.CFrame * CFrame.new(0,-3,0)
  4310. local Func = coroutine.create(function()
  4311. for i=1,10 do
  4312. Tor.CFrame = Foot * CFrame.fromEulerAnglesXYZ(-(math.pi/2)*i/10,0,0) * CFrame.new(0,3,0)
  4313. wait()
  4314. end
  4315. for i=1,5,0.2 do
  4316. Tor.CFrame = Foot * CFrame.new(0,-(i^2),0) * CFrame.fromEulerAnglesXYZ(-(math.pi/2),0,0) * CFrame.new(0,3,0)
  4317. wait()
  4318. end
  4319. pcall(function() Self.Character.Humanoid.Health = 0 end)
  4320. end)
  4321. coroutine.resume(Func)
  4322. end
  4323. end)()
  4324. end
  4325. end)
  4326.  
  4327. set.MakeCommand('Crucify',2,set.Prefix,{'crucify','crusify','cross'},{'player'},1,function(plr,args)
  4328. for i,v in pairs(set.GetPlayers(plr,args[1]:lower())) do
  4329. local torso=v.Character['Torso']
  4330. local larm=v.Character['Left Arm']
  4331. local rarm=v.Character['Right Arm']
  4332. local lleg=v.Character['Left Leg']
  4333. local rleg=v.Character['Right Leg']
  4334. local head=v.Character['Head']
  4335. if torso and larm and rarm and lleg and rleg and head and not v.Character:FindFirstChild(v.Name..'kohlscrusify') then
  4336. local cru=Instance.new('Model',v.Character)
  4337. cru.Name=v.Name..'kohlscrusify'
  4338. local c1=Instance.new('Part',cru)
  4339. c1.BrickColor=BrickColor.new('Reddish brown')
  4340. c1.Material='Wood'
  4341. c1.CFrame=(v.Character.Torso.CFrame-v.Character.Torso.CFrame.lookVector)*CFrame.new(0,0,2)
  4342. c1.Size=Vector3.new(2,18.4,1)
  4343. c1.Anchored=true
  4344. local c2=c1:Clone()
  4345. c2.Parent=cru
  4346. c2.Size=Vector3.new(11,1.6,1)
  4347. c2.CFrame=c1.CFrame+Vector3.new(0,5,0)
  4348. torso.Anchored=true
  4349. wait(0.5)
  4350. torso.CFrame=c2.CFrame+torso.CFrame.lookVector+Vector3.new(0,-1,0)
  4351. wait(0.5)
  4352. larm.Anchored=true
  4353. rarm.Anchored=true
  4354. lleg.Anchored=true
  4355. rleg.Anchored=true
  4356. head.Anchored=true
  4357. wait()
  4358. larm.CFrame=torso.CFrame*CFrame.new(-1.5,1,0)
  4359. rarm.CFrame=torso.CFrame*CFrame.new(1.5,1,0)
  4360. lleg.CFrame=torso.CFrame*CFrame.new(-0.1,-1.7,0)
  4361. rleg.CFrame=torso.CFrame*CFrame.new(0.1,-1.7,0)
  4362. larm.CFrame=larm.CFrame*CFrame.Angles(0,0,-140)
  4363. rarm.CFrame=rarm.CFrame*CFrame.Angles(0,0,140)
  4364. lleg.CFrame=lleg.CFrame*CFrame.Angles(0,0,0.6)
  4365. rleg.CFrame=rleg.CFrame*CFrame.Angles(0,0,-0.6)
  4366. --head.CFrame=head.CFrame*CFrame.Angles(0,0,0.3)
  4367. local n1=Instance.new('Part',cru)
  4368. n1.BrickColor=BrickColor.new('Dark stone grey')
  4369. n1.Material='DiamondPlate'
  4370. n1.Size=Vector3.new(0.2,0.2,2)
  4371. n1.Anchored=true
  4372. local m=Instance.new('BlockMesh',n1)
  4373. m.Scale=Vector3.new(0.2,0.2,0.7)
  4374. n2=n1:clone()
  4375. n2.Parent=cru
  4376. n3=n1:clone()
  4377. n3.Parent=cru
  4378. n1.CFrame=(c2.CFrame+torso.CFrame.lookVector)*CFrame.new(2,0,0)
  4379. n2.CFrame=(c2.CFrame+torso.CFrame.lookVector)*CFrame.new(-2,0,0)
  4380. n3.CFrame=(c2.CFrame+torso.CFrame.lookVector)*CFrame.new(0,-3,0)
  4381. coroutine.wrap(function()
  4382. repeat
  4383. wait(0.1)
  4384. v.Character.Humanoid.Health=v.Character.Humanoid.Health-0.2
  4385. local p = Instance.new("Part",v.Character)
  4386. p.CanCollide = false
  4387. local color = math.random(1, 3)
  4388. local bcolo
  4389. if color == 1 then
  4390. bcolor = BrickColor.new(21)
  4391. parent=n1
  4392. elseif color == 2 then
  4393. bcolor = BrickColor.new(1004)
  4394. parent=n2
  4395. elseif color == 3 then
  4396. bcolor = BrickColor.new(21)
  4397. parent=n3
  4398. end
  4399. p.BrickColor = bcolor
  4400. local m=Instance.new('BlockMesh',p)
  4401. p.Size=Vector3.new(0.1,0.1,0.1)
  4402. m.Scale = Vector3.new(math.random()*0.9, math.random()*0.9, math.random()*0.9)
  4403. p.Locked = true
  4404. p.TopSurface = "Smooth"
  4405. p.BottomSurface = "Smooth"
  4406. p.CFrame = parent.CFrame
  4407. p.Anchored = false
  4408. m.Name='Blood Peice'
  4409. p.Name='Blood Peice'
  4410. p.Touched:connect(function(o)
  4411. if o and p and o~=parent and o~=n1 and o~=n2 and o~=n3 and o~=c1 and o~=c2 and o.Parent~=cru and (not game.Players:FindFirstChild(o.Parent.Name)) and o.Name~='Blood Peice' and o.Name~='Puke Peice' and o.Name~='Puke Plate' and o.Name~='Blood Plate' and (o.Parent.Name=='Workspace' or o.Parent:IsA('Model')) and (o.Parent~=p.Parent) and o:IsA('Part') and (o.Parent.Name~=v.Character.Name) and (not o.Parent:IsA('Hat')) and (not o.Parent:IsA('Tool')) then
  4412. local cf=CFrame.new(p.CFrame.X,o.CFrame.Y+o.Size.Y/2,p.CFrame.Z)
  4413. p:Destroy()
  4414. local g=Instance.new('Part',workspace)
  4415. g.Anchored=true
  4416. g.CanCollide=false
  4417. g.Size=Vector3.new(0.1,0.1,0.1)
  4418. g.Name='Blood Plate'
  4419. g.CFrame=cf
  4420. g.BrickColor=BrickColor.new(21)
  4421. local c=Instance.new('CylinderMesh',g)
  4422. c.Scale=Vector3.new(1,0.2,1)
  4423. c.Name='BloodMesh'
  4424. wait(10)
  4425. g:Destroy()
  4426. elseif o and o.Name=='Blood Plate' and p then
  4427. p:Destroy()
  4428. o.BloodMesh.Scale=o.BloodMesh.Scale+Vector3.new(1,0,1)
  4429. end
  4430. end)
  4431. until (not cru) or (not cru.Parent) or (not v) or (not v.Character) or (not v.Character:FindFirstChild('Head')) or v.Character.Humanoid.Health<=0
  4432. end)()
  4433. end
  4434. end
  4435. end)
  4436.  
  4437. set.MakeCommand('Fly',2,set.Prefix,{'fly','flight'},{'player'},1,function(plr,args)
  4438. local plrz = set.GetPlayers(plr, args[1]:lower())
  4439. for i, v in pairs(plrz) do
  4440. coroutine.wrap(function()
  4441. if v then
  4442. set.LoadOnClient(v,[[repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  4443. local mouse = game.Players.LocalPlayer:GetMouse()
  4444. repeat wait() until mouse
  4445. local plr = game.Players.LocalPlayer
  4446. local torso = plr.Character.Torso
  4447. local flying = true
  4448. local deb = true
  4449. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  4450. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  4451. local maxspeed = 50
  4452. local speed = 0
  4453. function Fly()
  4454. local bg = Instance.new("BodyGyro", torso)
  4455. bg.P = 9e4
  4456. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  4457. bg.cframe = torso.CFrame
  4458. local bv = Instance.new("BodyVelocity", torso)
  4459. bv.velocity = Vector3.new(0,0.1,0)
  4460. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  4461. repeat wait()
  4462. plr.Character.Humanoid.PlatformStand = true
  4463. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  4464. speed = speed+.5+(speed/maxspeed)
  4465. if speed > maxspeed then
  4466. speed = maxspeed
  4467. end
  4468. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  4469. speed = speed-1
  4470. if speed < 0 then
  4471. speed = 0
  4472. end
  4473. end
  4474. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  4475. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  4476. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  4477. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  4478. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  4479. else
  4480. bv.velocity = Vector3.new(0,0.1,0)
  4481. end
  4482. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  4483. until not flying
  4484. ctrl = {f = 0, b = 0, l = 0, r = 0}
  4485. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  4486. speed = 0
  4487. bg:Destroy()
  4488. bv:Destroy()
  4489. plr.Character.Humanoid.PlatformStand = false
  4490. end
  4491. mouse.KeyDown:connect(function(key)
  4492. if key:lower() == "e" then
  4493. if flying then flying = false
  4494. else
  4495. flying = true
  4496. Fly()
  4497. end
  4498. elseif key:lower() == "w" then
  4499. ctrl.f = 1
  4500. elseif key:lower() == "s" then
  4501. ctrl.b = -1
  4502. elseif key:lower() == "a" then
  4503. ctrl.l = -1
  4504. elseif key:lower() == "d" then
  4505. ctrl.r = 1
  4506. end
  4507. end)
  4508. mouse.KeyUp:connect(function(key)
  4509. if key:lower() == "w" then
  4510. ctrl.f = 0
  4511. elseif key:lower() == "s" then
  4512. ctrl.b = 0
  4513. elseif key:lower() == "a" then
  4514. ctrl.l = 0
  4515. elseif key:lower() == "d" then
  4516. ctrl.r = 0
  4517. end
  4518. end)
  4519. Fly()]],false,'FlyScript')
  4520. end
  4521. end)()
  4522. end
  4523. end)
  4524.  
  4525. set.MakeCommand('UnFly',2,set.Prefix,{'unfly','ground'},{'player'},1,function(plr,args)
  4526. local plrz = set.GetPlayers(plr, msg:lower():sub(7))
  4527. for i, v in pairs(plrz) do
  4528. coroutine.wrap(function()
  4529. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  4530. if v and parent and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
  4531. for a, q in pairs(parent:children()) do if q.Name == set.GuiName.."FlyScript" then q:Destroy() end end
  4532. for a, q in pairs(v.Character.Torso:children()) do if q.Name == "BodyGyro" or q.Name == "BodyVelocity" then q:Destroy() end end
  4533. wait(.1) v.Character.Humanoid.PlatformStand = false
  4534. end
  4535. end)()
  4536. end
  4537. end)
  4538.  
  4539. set.MakeCommand('Disco',2,set.Prefix,{'disco'},{},0,function(plr,args)
  4540. set.lighttask=false
  4541. wait(0.5)
  4542. coroutine.wrap(function()
  4543. set.lighttask = true
  4544. repeat
  4545. if set.lighttask==false then return end
  4546. local color = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255)
  4547. game:service('Lighting').Ambient = color
  4548. game:service('Lighting').OutdoorAmbient = color
  4549. game:service('Lighting').FogColor = color
  4550. wait(0.1)
  4551. until set.lighttask==false
  4552. end)()
  4553. end)
  4554.  
  4555. set.MakeCommand('Flash',2,set.Prefix,{'flash'},{},0,function(plr,args)
  4556. set.lighttask=false
  4557. wait(0.5)
  4558. coroutine.wrap(function()
  4559. set.lighttask=true
  4560. repeat
  4561. if set.lighttask==false then return end
  4562. game:service('Lighting').Ambient = Color3.new(1,1,1)
  4563. game:service('Lighting').OutdoorAmbient = Color3.new(1,1,1)
  4564. game:service('Lighting').FogColor = Color3.new(1,1,1)
  4565. game:service('Lighting').Brightness = 1
  4566. game:service('Lighting').TimeOfDay = 14
  4567. wait(0.1)
  4568. game:service('Lighting').Ambient = Color3.new(0,0,0)
  4569. game:service('Lighting').OutdoorAmbient = Color3.new(0,0,0)
  4570. game:service('Lighting').FogColor = Color3.new(0,0,0)
  4571. game:service('Lighting').Brightness = 0
  4572. game:service('Lighting').TimeOfDay = 0
  4573. wait(0.1)
  4574. until set.lighttask==false
  4575. end)()
  4576. end)
  4577.  
  4578. set.MakeCommand('Spin',2,set.Prefix,{'spin'},{'player'},1,function(plr,args)
  4579. local plrz = set.GetPlayers(plr, args[1]:lower())
  4580. for i, v in pairs(plrz) do
  4581. coroutine.wrap(function()
  4582. if v and v.Character and v.Character:findFirstChild("Torso") then
  4583. for i,v in pairs(v.Character.Torso:children()) do if v.Name == "SPINNER" then v:Destroy() end end
  4584. local torso = v.Character:findFirstChild("Torso")
  4585. local bg = Instance.new("BodyGyro", torso) bg.Name = "SPINNER" bg.maxTorque = Vector3.new(0,math.huge,0) bg.P = 11111 bg.cframe = torso.CFrame table.insert(set.objects,bg)
  4586. repeat wait(1/44) bg.cframe = bg.cframe * CFrame.Angles(0,math.rad(30),0)
  4587. until not bg or bg.Parent ~= torso
  4588. end
  4589. end)()
  4590. end
  4591. end)
  4592.  
  4593. set.MakeCommand('UnSpin',2,set.Prefix,{'unspin'},{'player'},1,function(plr,args)
  4594. local plrz = set.GetPlayers(plr, args[1]:lower())
  4595. for i, v in pairs(plrz) do
  4596. coroutine.wrap(function()
  4597. if v and v.Character and v.Character:findFirstChild("Torso") then
  4598. for a,q in pairs(v.Character.Torso:children()) do if q.Name == "SPINNER" then q:Destroy() end end
  4599. end
  4600. end)()
  4601. end
  4602. end)
  4603.  
  4604. set.MakeCommand('Dog',2,set.Prefix,{'dog','dogify'},{'player'},1,function(plr,args)
  4605. local plrz = set.GetPlayers(plr, args[1]:lower())
  4606. for i, v in pairs(plrz) do
  4607. coroutine.wrap(function()
  4608. if v and v.Character and v.Character:findFirstChild("Torso") then
  4609. if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end
  4610. if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end
  4611. v.Character.Torso.Transparency = 1
  4612. v.Character.Torso.Neck.C0 = CFrame.new(0,-.5,-2) * CFrame.Angles(math.rad(90),math.rad(180),0)
  4613. v.Character.Torso["Right Shoulder"].C0 = CFrame.new(.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(90),0)
  4614. v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(-90),0)
  4615. v.Character.Torso["Right Hip"].C0 = CFrame.new(1.5,-1,1.5) * CFrame.Angles(0,math.rad(90),0)
  4616. v.Character.Torso["Left Hip"].C0 = CFrame.new(-1.5,-1,1.5) * CFrame.Angles(0,math.rad(-90),0)
  4617. local new = Instance.new("Seat", v.Character) new.Name = "FAKETORSO" new.formFactor = "Symmetric" new.TopSurface = 0 new.BottomSurface = 0 new.Size = Vector3.new(3,1,4) new.CFrame = v.Character.Torso.CFrame
  4618. local bf = Instance.new("BodyForce", new) bf.force = Vector3.new(0,new:GetMass()*196.25,0)
  4619. local weld = Instance.new("Weld", v.Character.Torso) weld.Part0 = v.Character.Torso weld.Part1 = new weld.C0 = CFrame.new(0,-.5,0)
  4620. for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("Brown") elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("Brown") end end
  4621. end
  4622. end)()
  4623. end
  4624. end)
  4625.  
  4626. set.MakeCommand('UnDog',2,set.Prefix,{'undog','undogify'},{'player'},1,function(plr,args)
  4627. local plrz = set.GetPlayers(plr, args[1]:lower())
  4628. for i, v in pairs(plrz) do
  4629. coroutine.wrap(function()
  4630. if v and v.Character and v.Character:findFirstChild("Torso") then
  4631. if v.Character.Torso:findFirstChild("Shirt") then v.Character.Torso.Shirt.Parent = v.Character end
  4632. if v.Character.Torso:findFirstChild("Pants") then v.Character.Torso.Pants.Parent = v.Character end
  4633. v.Character.Torso.Transparency = 0
  4634. v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
  4635. v.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,.5,0) * CFrame.Angles(0,math.rad(90),0)
  4636. v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1,.5,0) * CFrame.Angles(0,math.rad(-90),0)
  4637. v.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0)
  4638. v.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0)
  4639. for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("White") if part.Name == "FAKETORSO" then part:Destroy() end elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("White") end end
  4640. end
  4641. end)()
  4642. end
  4643. end)
  4644.  
  4645. set.MakeCommand('Creeper',2,set.Prefix,{'creeper','creeperify'},{'player'},1,function(plr,args)
  4646. local plrz = set.GetPlayers(plr, args[1]:lower())
  4647. for i, v in pairs(plrz) do
  4648. coroutine.wrap(function()
  4649. if v and v.Character and v.Character:findFirstChild("Torso") then
  4650. if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end
  4651. if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end
  4652. v.Character.Torso.Transparency = 0
  4653. v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
  4654. v.Character.Torso["Right Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(90),0)
  4655. v.Character.Torso["Left Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(-90),0)
  4656. v.Character.Torso["Right Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(90),0)
  4657. v.Character.Torso["Left Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(-90),0)
  4658. for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("Bright green") if part.Name == "FAKETORSO" then part:Destroy() end elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("Bright green") end end
  4659. end
  4660. end)()
  4661. end
  4662. end)
  4663.  
  4664. set.MakeCommand('UnCreeper',2,set.Prefix,{'uncreeper','uncreeperify'},{'player'},1,function(plr,args)
  4665. local plrz = set.GetPlayers(plr, args[1]:lower())
  4666. for i, v in pairs(plrz) do
  4667. coroutine.wrap(function()
  4668. if v and v.Character and v.Character:findFirstChild("Torso") then
  4669. if v.Character.Torso:findFirstChild("Shirt") then v.Character.Torso.Shirt.Parent = v.Character end
  4670. if v.Character.Torso:findFirstChild("Pants") then v.Character.Torso.Pants.Parent = v.Character end
  4671. v.Character.Torso.Transparency = 0
  4672. v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
  4673. v.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,.5,0) * CFrame.Angles(0,math.rad(90),0)
  4674. v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1,.5,0) * CFrame.Angles(0,math.rad(-90),0)
  4675. v.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0)
  4676. v.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0)
  4677. for a, part in pairs(v.Character:children()) do if part:IsA("BasePart") then part.BrickColor = BrickColor.new("White") if part.Name == "FAKETORSO" then part:Destroy() end elseif part:findFirstChild("NameTag") then part.Head.BrickColor = BrickColor.new("White") end end
  4678. end
  4679. end)()
  4680. end
  4681. end)
  4682.  
  4683. set.MakeCommand('Big Head',2,set.Prefix,{'bighead'},{'player'},1,function(plr,args)
  4684. local plrz = set.GetPlayers(plr, args[1]:lower())
  4685. for i, v in pairs(plrz) do
  4686. coroutine.rwrap(function()
  4687. if v and v.Character then v.Character.Head.Mesh.Scale = Vector3.new(3,3,3) v.Character.Torso.Neck.C0 = CFrame.new(0,1.9,0) * CFrame.Angles(math.rad(90),math.rad(180),0) end
  4688. end)()
  4689. end
  4690. end)
  4691.  
  4692. set.MakeCommand('Small Head',2,set.Prefix,{'smallhead','minihead'},{'player'},1,function(plr,args)
  4693. local plrz = set.GetPlayers(plr, args[1]:lower())
  4694. for i, v in pairs(plrz) do
  4695. coroutine.wrap(function()
  4696. if v and v.Character then v.Character.Head.Mesh.Scale = Vector3.new(.75,.75,.75) v.Character.Torso.Neck.C0 = CFrame.new(0,.8,0) * CFrame.Angles(math.rad(90),math.rad(180),0) end
  4697. end)()
  4698. end
  4699. end)
  4700.  
  4701. set.MakeCommand('Fling',2,set.Prefix,{'fling'},{'player'},1,function(plr,args)
  4702. local plrz = set.GetPlayers(plr, args[1]:lower())
  4703. for i, v in pairs(plrz) do
  4704. coroutine.wrap(function()
  4705. if v and v.Character and v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
  4706. local xran local zran
  4707. repeat xran = math.random(-9999,9999) until math.abs(xran) >= 5555
  4708. repeat zran = math.random(-9999,9999) until math.abs(zran) >= 5555
  4709. v.Character.Humanoid.Sit = true v.Character.Torso.Velocity = Vector3.new(0,0,0)
  4710. local frc = Instance.new("BodyForce", v.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(xran*4,9999*5,zran*4) game:service("Debris"):AddItem(frc,.1)
  4711. end
  4712. end)()
  4713. end
  4714. end)
  4715.  
  4716. set.MakeCommand('Seizure',2,set.Prefix,{'seizure'},{'player'},1,function(plr,args)
  4717. local plrz = set.GetPlayers(plr, args[1]:lower())
  4718. for i, v in pairs(plrz) do
  4719. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  4720. coroutine.wrap(function()
  4721. if v and v.Character then
  4722. v.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.Angles(math.rad(90),0,0)
  4723. set.LoadScript('LocalScript',[[char=game.Players.LocalPlayer.Character;
  4724. repeat wait()
  4725. char.Humanoid.PlatformStand = true
  4726. char.Torso.Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10))
  4727. char.Torso.RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  4728. until nil]],"SeizureBase",true,parent)
  4729. end
  4730. end)()
  4731. end
  4732. end)
  4733.  
  4734. set.MakeCommand('UnSeizure',2,set.Prefix,{'unseizure'},{'player'},1,function(plr,args)
  4735. local plrz = set.GetPlayers(plr,args[1]:lower())
  4736. for i, v in pairs(plrz) do
  4737. coroutine.wrap(function()
  4738. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  4739. if v and parent then
  4740. for i,v in pairs(parent:children()) do if v.Name == "SeizureBase" then v:Destroy() end end
  4741. wait(.1) v.Character.Humanoid.PlatformStand = false
  4742. end
  4743. end)()
  4744. end
  4745. end)
  4746.  
  4747. set.MakeCommand('Remove Limbs',2,set.Prefix,{'removelimbs','delimb'},{'player'},1,function(plr,args)
  4748. local plrz = set.GetPlayers(plr, args[1]:lower())
  4749. for i, v in pairs(plrz) do
  4750. coroutine.wrap(function()
  4751. if v and v.Character then
  4752. for a, obj in pairs(v.Character:children()) do
  4753. if obj:IsA("BasePart") and (obj.Name:find("Leg") or obj.Name:find("Arm")) then obj:Destroy() end
  4754. end
  4755. end
  4756. end)()
  4757. end
  4758. end)
  4759.  
  4760. set.MakeCommand('Name',2,set.Prefix,{'name','rename'},{'player','name'},2,function(plr,args)
  4761. local plrz = set.GetPlayers(plr, args[1]:lower())
  4762. for i, v in pairs(plrz) do
  4763. coroutine.wrap(function()
  4764. if v and v.Character and v.Character:findFirstChild("Head") then
  4765. for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
  4766. local char = v.Character
  4767. local mod = Instance.new("Model", char) mod.Name = args[2]
  4768. local cl = char.Head:Clone() cl.Parent = mod local hum = Instance.new("Humanoid", mod) hum.Name = "NameTag" hum.MaxHealth = 0 hum.Health = 0
  4769. cl.CanCollide=false
  4770. local weld = Instance.new("Weld", cl) weld.Part0 = cl weld.Part1 = char.Head
  4771. char.Head.Transparency = 1
  4772. end
  4773. end)()
  4774. end
  4775. end)
  4776.  
  4777. set.MakeCommand('UnName',2,set.Prefix,{'unname','fixname'},{'player'},1,function(plr,args)
  4778. local plrz = set.GetPlayers(plr, args[1]:lower())
  4779. for i, v in pairs(plrz) do
  4780. coroutine.wrap(function()
  4781. if v and v.Character and v.Character:findFirstChild("Head") then
  4782. for a, mod in pairs(v.Character:children()) do if mod:findFirstChild("NameTag") then v.Character.Head.Transparency = 0 mod:Destroy() end end
  4783. end
  4784. end)()
  4785. end
  4786. end)
  4787.  
  4788. set.MakeCommand('Character Appearance',2,set.Prefix,{'char','character','appearance'},{'player','id'},2,function(plr,args)
  4789. local plrz = set.GetPlayers(plr, args[1]:lower())
  4790. for i, v in pairs(plrz) do
  4791. coroutine.wrap(function()
  4792. if v and v.Character then
  4793. v.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=" .. args[2]
  4794. v:LoadCharacter()
  4795. end
  4796. end)()
  4797. end
  4798. end)
  4799.  
  4800. set.MakeCommand('UnCharacter Appearance',2,set.Prefix,{'unchar','uncharacter','fixappearance'},{'player'},1,function(plr,args)
  4801. local plrz = set.GetPlayers(plr, args[1]:lower())
  4802. for i, v in pairs(plrz) do
  4803. coroutine.wrap(function()
  4804. if v and v.Character then
  4805. v.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=" .. v.userId
  4806. v:LoadCharacter()
  4807. end
  4808. end)()
  4809. end
  4810. end)
  4811.  
  4812. set.MakeCommand('Infect',2,set.Prefix,{'infect','zombify'},{'player'},1,function(plr,args)
  4813. local plrz = set.GetPlayers(plr, args[1]:lower())
  4814. for i, v in pairs(plrz) do
  4815. coroutine.wrap(function()
  4816. if v and v.Character then
  4817. set.Infect(v.Character)
  4818. end
  4819. end)()
  4820. end
  4821. end)
  4822.  
  4823. set.MakeCommand('Rainbowify',2,set.Prefix,{'rainbowify','rainbow'},{'player'},1,function(plr,args)
  4824. local plrz = set.GetPlayers(plr, args[1]:lower())
  4825. for i, v in pairs(plrz) do
  4826. coroutine.wrap(function()
  4827. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  4828. if v and v.Character and v.Character:findFirstChild("Torso") then
  4829. if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end
  4830. if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end
  4831. for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end
  4832. set.LoadScript('LocalScript',[[repeat wait(0.1) local clr = BrickColor.random() for i, v in pairs(game.Players.LocalPlayer.Character:children()) do if v:IsA("BasePart") and v.Name~='HumanoidRootPart' and (v.Name ~= "Head" or not v.Parent:findFirstChild("NameTag", true)) then v.BrickColor = clr v.Reflectance = 0 v.Transparency = 0 elseif v:findFirstChild("NameTag") then v.Head.BrickColor = clr v.Head.Reflectance = 0 v.Head.Transparency = 0 v.Parent.Head.Transparency = 1 end end until nil]],'ify',true,parent)
  4833. end
  4834. end)()
  4835. end
  4836. end)
  4837.  
  4838. set.MakeCommand('Flashify',2,set.Prefix,{'flashify'},{'player'},1,function(plr,args)
  4839. local plrz = set.GetPlayers(plr, args[1]:lower())
  4840. for i, v in pairs(plrz) do
  4841. coroutine.wrap(function()
  4842. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  4843. if v and v.Character and v.Character:findFirstChild("Torso") then
  4844. if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end
  4845. if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end
  4846. for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end
  4847. set.LoadScript('LocalScript',[[repeat wait(0.1)
  4848. for i, v in pairs(game.Players.LocalPlayer.Character:children()) do
  4849. if v:IsA("BasePart") and v.Name~='HumanoidRootPart' and (v.Name ~= "Head" or not v.Parent:findFirstChild("NameTag", true)) then
  4850. v.BrickColor = BrickColor.new("Institutional white") v.Reflectance = 0 v.Transparency = 0
  4851. elseif v:findFirstChild("NameTag") then
  4852. v.Head.BrickColor = BrickColor.new("Institutional white")
  4853. v.Head.Reflectance = 0 v.Head.Transparency = 0
  4854. v.Parent.Head.Transparency = 1 end end
  4855. wait(1/44)
  4856. for i, v in pairs(game.Players.LocalPlayer.Character:children()) do
  4857. if v:IsA("BasePart") and v.Name~='HumanoidRootPart' and (v.Name ~= "Head" or not v.Parent:findFirstChild("NameTag", true)) then
  4858. v.BrickColor = BrickColor.new("Really black")
  4859. v.Reflectance = 0 v.Transparency = 0 elseif v:findFirstChild("NameTag") then
  4860. v.Head.BrickColor = BrickColor.new("Really black") v.Head.Reflectance = 0
  4861. v.Head.Transparency = 0 v.Parent.Head.Transparency = 1 end end until nil]],'ify',true,parent)
  4862. end
  4863. end)()
  4864. end
  4865. end)
  4866.  
  4867. set.MakeCommand('Noobify',2,set.Prefix,{'noobify','noob'},{'player'},1,function(plr,args)
  4868. local plrz = set.GetPlayers(plr, args[1]:lower())
  4869. for i, v in pairs(plrz) do
  4870. coroutine.wrap(function()
  4871. if v and v.Character then
  4872. set.Noobify(v.Character)
  4873. end
  4874. end)()
  4875. end
  4876. end)
  4877.  
  4878. set.MakeCommand('Ghostify',2,set.Prefix,{'ghostify','ghost'},{'player'},1,function(plr,args)
  4879. local plrz = set.GetPlayers(plr, args[1]:lower())
  4880. for i, v in pairs(plrz) do
  4881. coroutine.wrap(function()
  4882. if v and v.Character and v.Character:findFirstChild("Torso") then
  4883. set.LoadOnClient(v,[[
  4884. game:GetService("RunService").Stepped:connect(function()
  4885. pcall(function()
  4886. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  4887. game.Players.LocalPlayer.Character.Head.CanCollide = false
  4888. game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false
  4889. if game.Players.LocalPlayer.Character:FindFirstChild('Head') then
  4890. for i,v in pairs(game.Player.LocalPlayer.Character.Head:children()) do
  4891. if v and v:IsA('Part') then v.CanCollide=false end
  4892. end
  4893. end
  4894. end)
  4895. end)]],false,'Ghost')
  4896. if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end
  4897. if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end
  4898. for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end
  4899. for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  4900. prt.Transparency = .5 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("Institutional white")
  4901. if prt.Name:find("Leg") then prt.Transparency = 1 end
  4902. elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = .5 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("Institutional white")
  4903. end end
  4904. end
  4905. end)()
  4906. end
  4907. end)
  4908.  
  4909. set.MakeCommand('Goldify',2,set.Prefix,{'goldify','gold'},{'player'},1,function(plr,args)
  4910. local plrz = set.GetPlayers(plr, args[1]:lower())
  4911. for i, v in pairs(plrz) do
  4912. coroutine.wrap(function()
  4913. if v and v.Character and v.Character:findFirstChild("Torso") then
  4914. if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end
  4915. if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end
  4916. for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end
  4917. for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and prt.Name~='HumanoidRootPart' and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  4918. prt.Transparency = 0 prt.Reflectance = .4 prt.BrickColor = BrickColor.new("Bright yellow")
  4919. elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = .4 prt.Head.BrickColor = BrickColor.new("Bright yellow")
  4920. end end
  4921. end
  4922. end)()
  4923. end
  4924. end)
  4925.  
  4926. set.MakeCommand('Shiney',2,set.Prefix,{'shiney','shineify','shine'},{'player'},1,function(plr,args)
  4927. local plrz = set.GetPlayers(plr, args[1]:lower())
  4928. for i, v in pairs(plrz) do
  4929. coroutine.wrap(function()
  4930. if v and v.Character and v.Character:findFirstChild("Torso") then
  4931. if v.Character:findFirstChild("Shirt") then v.Character.Shirt.Parent = v.Character.Torso end
  4932. if v.Character:findFirstChild("Pants") then v.Character.Pants.Parent = v.Character.Torso end
  4933. for a, sc in pairs(v.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end
  4934. for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and prt.Name~='HumanoidRootPart' and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  4935. prt.Transparency = 0 prt.Reflectance = 1 prt.BrickColor = BrickColor.new("Institutional white")
  4936. elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 1 prt.Head.BrickColor = BrickColor.new("Institutional white")
  4937. end end
  4938. end
  4939. end)()
  4940. end
  4941. end)
  4942.  
  4943. set.MakeCommand('Normalify',2,set.Prefix,{'normal','normalify'},{'player'},1,function(plr,args)
  4944. local plrz = set.GetPlayers(plr, args[1]:lower())
  4945. for i, v in pairs(plrz) do
  4946. coroutine.wrap(function()
  4947. if v and v.Character and v.Character:findFirstChild("Torso") then
  4948. if v.Character:findFirstChild("Head") then v.Character.Head.Mesh.Scale = Vector3.new(1.25,1.25,1.25) end
  4949. if v.Character.Torso:findFirstChild("Shirt") then v.Character.Torso.Shirt.Parent = v.Character end
  4950. if v.Character.Torso:findFirstChild("Pants") then v.Character.Torso.Pants.Parent = v.Character end
  4951. v.Character.Torso.Transparency = 0
  4952. v.Character.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
  4953. v.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,.5,0) * CFrame.Angles(0,math.rad(90),0)
  4954. v.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1,.5,0) * CFrame.Angles(0,math.rad(-90),0)
  4955. v.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0)
  4956. v.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0)
  4957. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  4958. for a, sc in pairs(parent:children()) do if sc.Name == "ify" or sc.Name == "KohlsPoison" then sc:Destroy() end end
  4959. for a, prt in pairs(v.Character:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  4960. prt.Transparency = 0 prt.Reflectance = 0 prt.BrickColor = BrickColor.new("White")
  4961. if prt.Name == "FAKETORSO" then prt:Destroy() end
  4962. if prt.Name == 'HumanoidRootPart' then prt.Transparency=1 end
  4963. elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = 0 prt.Head.BrickColor = BrickColor.new("White")
  4964. end end
  4965. end
  4966. end)()
  4967. end
  4968. end)
  4969.  
  4970. set.MakeCommand('Trippy',2,set.Prefix,{'trippy'},{'player'},1,function(plr,args)
  4971. local plrz = set.GetPlayers(plr, args[1]:lower())
  4972. for i, v in pairs(plrz) do
  4973. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  4974. set.Remote(v,'Execute',[[for a, g in pairs(game.Players.LocalPlayer.PlayerGui:children()) do if g.Name:find("]]..set.GuiName..[[EFFECTGUI") then g:Destroy() end end]])
  4975. set.LoadOnClient(v,[[
  4976. v=game.Players.LocalPlayer
  4977. local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "]]..set.GuiName..[[EFFECTGUITRIPPY"
  4978. local bg = Instance.new("Frame", scr) bg.BackgroundColor3 = Color3.new(0,0,0) bg.BackgroundTransparency = 0 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 10
  4979. repeat wait(1/44)
  4980. bg.BackgroundColor3 = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255)
  4981. until nil]],true,'EFFECTGUITRIPPY')
  4982. end
  4983. end)
  4984.  
  4985. set.MakeCommand('UnEffectgui',2,set.Prefix,{'uneffectgui','unblind','unstrobe','untrippy','guifix','fixgui'},{'player'},1,function(plr,args)
  4986. local plrz = set.GetPlayers(plr, args[1]:lower())
  4987. for i, v in pairs(plrz) do
  4988. set.Remote(v,'Execute',[[for a, g in pairs(game.Players.LocalPlayer.PlayerGui:children()) do if g.Name:find("]]..set.GuiName..[[EFFECTGUI") then g:Destroy() end end]])
  4989. end
  4990. end)
  4991.  
  4992. set.MakeCommand('Strobe',2,set.Prefix,{'strobe'},{'player'},1,function(plr,args)
  4993. local plrz = set.GetPlayers(plr,args[1]:lower())
  4994. for i, v in pairs(plrz) do
  4995. coroutine.wrap(function()
  4996. set.Remote(v,'Execute',[[for a, g in pairs(game.Players.LocalPlayer.PlayerGui:children()) do if g.Name:find("]]..set.GuiName..[[EFFECTGUI") then g:Destroy() end end]])
  4997. set.LoadOnClient(v,[[
  4998. v=game.Players.LocalPlayer
  4999. local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "]]..set.GuiName..[[EFFECTGUISTROBE"
  5000. local bg = Instance.new("Frame", scr) bg.BackgroundColor3 = Color3.new(0,0,0) bg.BackgroundTransparency = 0 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 10
  5001. repeat wait(1/44)
  5002. bg.BackgroundColor3 = Color3.new(1,1,1)
  5003. wait(1/44)
  5004. bg.BackgroundColor3 = Color3.new(0,0,0)
  5005. until nil
  5006. ]],true,'EFFECTGUISTROBE')
  5007. end)()
  5008. end
  5009. end)
  5010.  
  5011. set.MakeCommand('Blind',2,set.Prefix,{'blind'},{'player'},1,function(plr,args)
  5012. local plrz = set.GetPlayers(plr, args[1]:lower())
  5013. for i, v in pairs(plrz) do
  5014. coroutine.wrap(function()
  5015. set.Remote(v,'Execute',[[for a, g in pairs(game.Players.LocalPlayer.PlayerGui:children()) do if g.Name:find("]]..set.GuiName..[[EFFECTGUI") then g:Destroy() end end]])
  5016. set.LoadOnClient(v,[[
  5017. v=game.Players.LocalPlayer
  5018. local scr = Instance.new("ScreenGui", v.PlayerGui) scr.Name = "]]..set.GuiName..[[EFFECTGUIBLIND"
  5019. local bg = Instance.new("Frame", scr) bg.BackgroundColor3 = Color3.new(0,0,0) bg.BackgroundTransparency = 0 bg.Size = UDim2.new(10,0,10,0) bg.Position = UDim2.new(-5,0,-5,0) bg.ZIndex = 10
  5020. ]],true,'EFFECTGUIBLIND')
  5021. end)()
  5022. end
  5023. end)
  5024.  
  5025. set.MakeCommand('Loop Heal',2,set.Prefix,{'loopheal'},{'player'},1,function(plr,args)
  5026. local plrz = set.GetPlayers(plr, args[1]:lower())
  5027. for i, v in pairs(plrz) do
  5028. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  5029. if v and parent then
  5030. set.LoadScript('LocalScript',[[
  5031. local plr = game.Players:findFirstChild("]] .. v.Name .. [[")
  5032. repeat wait()
  5033. coroutine.resume(coroutine.create(function()
  5034. if plr and plr.Character and plr.Character:findFirstChild("Humanoid") then
  5035. plr.Character.Humanoid.Health = plr.Character.Humanoid.MaxHealth
  5036. plr.Character.Humanoid.Changed:connect(function() r.Character.Humanoid.Health = plr.Character.Humanoid.MaxHealth end)
  5037. end
  5038. end))
  5039. until nil]],"LoopHeal:"..v.Name,true,parent)
  5040. end
  5041. end
  5042. end)
  5043.  
  5044. set.MakeCommand('UnLoop Heal',2,set.Prefix,{'unloopheal'},{'player'},1,function(plr,args)
  5045. local plrz = set.GetPlayers(plr, args[1]:lower())
  5046. for i,v in pairs(plrz) do for q,sc in pairs(set.objects) do if sc.Name == "LoopHeal:"..v.Name then sc:Destroy() table.remove(set.objects,q) end end end
  5047. end)
  5048.  
  5049. set.MakeCommand('Loop Fling',2,set.Prefix,{'loopfling'},{'player'},1,function(plr,args)
  5050. local plrz = set.GetPlayers(plr, args[1]:lower())
  5051. for i, v in pairs(plrz) do
  5052. local parent=v:FindFirstChild('PlayerGui') or v:FindFirstChild('Backpack')
  5053. if v and parent then
  5054. set.LoadScript('LocalScript',[[
  5055. local plr = game.Players.LocalPlayer
  5056. repeat
  5057. coroutine.resume(coroutine.create(function()
  5058. if plr and plr.Character and plr.Character:findFirstChild("Torso") and plr.Character:findFirstChild("Humanoid") then
  5059. local xran local zran
  5060. repeat xran = math.random(-9999,9999) until math.abs(xran) >= 5555
  5061. repeat zran = math.random(-9999,9999) until math.abs(zran) >= 5555
  5062. plr.Character.Humanoid.Sit = true plr.Character.Torso.Velocity = Vector3.new(0,0,0)
  5063. local frc = Instance.new("BodyForce", plr.Character.Torso) frc.Name = "BFRC" frc.force = Vector3.new(xran*4,9999*5,zran*4) game:service("Debris"):AddItem(frc,.1)
  5064. end
  5065. end))
  5066. wait(2) until nil]],"LoopFling:"..v.Name,true,parent)
  5067. end
  5068. end
  5069. end)
  5070.  
  5071. set.MakeCommand('UnLoop Fling',2,set.Prefix,{'unloopfling'},{'player'},1,function(plr,args)
  5072. local plrz = set.GetPlayers(plr, args[1]:lower())
  5073. for i,v in pairs(plrz) do for q,sc in pairs(set.objects) do if sc.Name == "LoopFling:"..v.Name then sc:Destroy() table.remove(set.objects,q) end end end
  5074. end)
  5075.  
  5076. end
  5077.  
  5078. -------------------------
  5079. -- True Owner Commands --
  5080. -------------------------
  5081. set.MakeCommand('Force Teleport to Place',5,set.Prefix,{'forceplace'},{'player','placeid'},2,function(plr,args)
  5082. local plrz = set.GetPlayers(plr, args[1]:lower())
  5083. for i, v in pairs(plrz) do
  5084. coroutine.wrap(function()
  5085. game:GetService('TeleportService'):Teleport(args[2],v)
  5086. end)()
  5087. end
  5088. end)
  5089.  
  5090. set.MakeCommand('Update Script',5,set.Prefix,{'!updatekohls!'},{},1,function(plr,args)
  5091. local m=Instance.new('Message',workspace)
  5092. m.Text="Updating Kohl's Admin [Epix Edit] [MANUAL MODE]"
  5093. local mo=game:GetService('InsertService'):LoadAsset(145629584)
  5094. local news=mo:children()[1]
  5095. _G["Kohls Admin [Epix Edit] Update"]=set
  5096. news.Parent=game:service('ServerScriptService')
  5097. mo:Destroy()
  5098. wait(1)
  5099. m.Text='Breaking old version and respawning players...'
  5100. wait(1)
  5101. m:Destroy()
  5102. set=nil
  5103. RemoteEvent:Destroy()
  5104. script.Parent=nil
  5105. script.Disabled=true
  5106. script:Destroy()
  5107. for i,v in pairs(game.Players:GetPlayers()) do
  5108. v:LoadCharacter()
  5109. end
  5110. error('Breaking Old Version')
  5111. end)
  5112.  
  5113. set.MakeCommand('Perm Ban',5,set.Prefix,{'permban'},{'player'},1,function(plr,args)
  5114. local plrz = set.GetPlayers(plr, args[1]:lower())
  5115. for i, v in pairs(plrz) do
  5116. set.Remote(plr,'Function','PromptPermBan',v)
  5117. end
  5118. end)
  5119.  
  5120. set.MakeCommand('Settings',5,set.Prefix,{'settings'},{},0,function(plr,args)
  5121. for i,v in pairs(UpdatableSettings) do
  5122. if set[v]~=nil then set.Remote(plr,'SetSetting',v,set[v]) end
  5123. end
  5124. set.Remote(plr,'SetSetting','UpdatableSettings',UpdatableSettings)
  5125. wait(1)
  5126. set.Remote(plr,'Function','Settings')
  5127. end)
  5128.  
  5129. --------------------
  5130. -- Owner Commands --
  5131. --------------------
  5132. set.MakeCommand('Restore Map',4,set.Prefix,{'restoremap'},{},0,function(plr,args)
  5133. for i,v in pairs(workspace:children()) do
  5134. pcall(function() v:Destroy() end)
  5135. end
  5136. for i,v in pairs(set.mapbackup) do
  5137. v:clone().Parent=workspace
  5138. end
  5139. chat(plr,set['Prefix'].."respawn all")
  5140. end)
  5141.  
  5142. set.MakeCommand('Explore',4,set.Prefix,{'explore','explorer'},{},0,function(plr,args)
  5143. set.Remote(plr,'Function','Explorer')
  5144. end)
  5145.  
  5146. set.MakeCommand('Tornado',4,set.Prefix,{'tornado','twister'},{'player'},1,function(plr,args)
  5147. for i,v in pairs(set.GetPlayers(plr, args[1]:lower())) do
  5148. local p=Instance.new('Part',workspace)
  5149. local s=Instance.new('Smoke',p)
  5150. s.RiseVelocity=25
  5151. s.Size=50
  5152. p.Transparency=1
  5153. s.Color=Color3.new(0,0,0)
  5154. --local a,b,c=s:clone(),s:clone(),s:clone()
  5155. --a.Parent=p b.Parent=p c.Parent=p
  5156. local pos=v.Character.Torso.CFrame+Vector3.new(0,-3,0)
  5157. p.CFrame=pos
  5158. p.Size=Vector3.new(0.2,0.2,0.2)
  5159. p.Anchored=true
  5160. p.CanCollide=false
  5161. local childList={}
  5162. local function checkObject(obj)
  5163. if (obj ~= p) and (obj.className == "Part") then
  5164. --if (obj.Anchored ~= false) then obj.Anchored=false end
  5165. table.insert(childList, 1, obj)
  5166. --end
  5167. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  5168. local child = obj:GetChildren()
  5169. for x = 1, #child do
  5170. checkObject(child[x])
  5171. end
  5172. obj.ChildAdded:connect(checkObject)
  5173. end
  5174. end
  5175. checkObject(workspace)
  5176. local massConstant = 5
  5177. local mass = 3200 * massConstant
  5178. local n = 0
  5179. coroutine.wrap(function()
  5180. while p.Parent==workspace do
  5181. if n < #childList then
  5182. n = n + 1
  5183. if n % 800 == 0 then
  5184. wait()
  5185. end
  5186. else
  5187. n = 1
  5188. wait()
  5189. end
  5190.  
  5191. local child = childList[n]
  5192. if (child ~= p) and (child.className == "Part") and (child.Anchored == false) then
  5193. local relPos = p.Position - child.Position
  5194. local motivator = child:FindFirstChild("BlackHole Influence")
  5195. if relPos.magnitude * 240 * massConstant < mass then
  5196. child:BreakJoints()
  5197. if (relPos.magnitude * 320 * massConstant < mass) and (child.Size.z + p.Size.x > relPos.magnitude * 2 - 4) then
  5198. mass = mass + child:GetMass()
  5199. child:Remove()
  5200. table.remove(childList, n)
  5201. n = n - 1
  5202. else
  5203. child.CanCollide = false
  5204. if motivator == nil then
  5205. motivator = Instance.new("BodyPosition")
  5206. motivator.Parent = child
  5207. motivator.Name = "BlackHole Influence"
  5208. end
  5209. motivator.position = p.Position
  5210. motivator.maxForce = Vector3.new(1, 1, 1) * mass * child:GetMass() / (relPos.magnitude * massConstant)
  5211. end
  5212. elseif motivator ~= nil then
  5213. motivator:Remove()
  5214. end
  5215. end
  5216. end
  5217. end)()
  5218. coroutine.wrap(function() wait(30) p:Destroy() end)()
  5219. local posi=p.Position
  5220. repeat
  5221. p.CFrame = p.CFrame + Vector3.new(math.random(-5,5), 0, math.random(-5,5))
  5222. wait()
  5223. until p.Parent~=workspace or not p
  5224. end
  5225. end)
  5226.  
  5227. set.MakeCommand('Nuke',4,set.Prefix,{'nuke'},{'player'},1,function(plr,args)
  5228. local plrz = set.GetPlayers(plr, args[1]:lower())
  5229. for i, v in pairs(plrz) do
  5230. coroutine.resume(coroutine.create(function()
  5231. if v and v.Character and v.Character:findFirstChild("Torso") then
  5232. local p = Instance.new("Part",game.Workspace) table.insert(set.objects,p)
  5233. p.Anchored = true
  5234. p.CanCollide = false
  5235. p.formFactor = "Symmetric"
  5236. p.Shape = "Ball"
  5237. p.Size = Vector3.new(1,1,1)
  5238. p.BrickColor = BrickColor.new("New Yeller")
  5239. p.Transparency = .5
  5240. p.Reflectance = .2
  5241. p.TopSurface = 0
  5242. p.BottomSurface = 0
  5243. local ex = Instance.new("Explosion", workspace)
  5244. ex.Position = p.Position
  5245. ex.BlastRadius = 100000
  5246. ex.BlastPressure = math.huge
  5247. ex.Hit:connect(function(hit)
  5248. if hit:IsA('Part') and hit~=p then hit.Anchored=false end
  5249. hit:BreakJoints()
  5250. end)
  5251. p.Touched:connect(function(hit)
  5252. if hit and hit.Parent then
  5253. local ex = Instance.new("Explosion", game.Workspace)
  5254. ex.Position = hit.Position
  5255. ex.BlastRadius = 100000
  5256. ex.BlastPressure = math.huge
  5257. if hit:IsA('Part') then hit.Anchored=false end
  5258. hit:BreakJoints()
  5259. end
  5260. end)
  5261. local cf = v.Character.Torso.CFrame
  5262. p.CFrame = cf
  5263. for i = 1, 333 do
  5264. p.Size = p.Size + Vector3.new(3,3,3)
  5265. p.CFrame = cf
  5266. wait(1/44)
  5267. end
  5268. p:Destroy()
  5269. end
  5270. end))
  5271. end
  5272. end)
  5273.  
  5274. --------------------------
  5275. -- Super Admin Commands --
  5276. --------------------------
  5277.  
  5278. set.MakeCommand('View Logs',3,set.Prefix,{'logs','log','commandlogs'},{},0,function(plr,args)
  5279. set.Remote(plr,'SetSetting','logs',set.logs)
  5280. set.Remote(plr,'Function','ListGui','Admin Logs','logs')
  5281. end)
  5282.  
  5283. set.MakeCommand('Make Script',3,set.Prefix,{'s','scr','script'},{'code'},1,function(plr,args)
  5284. if set.canuseloadstring then
  5285. set.Output(args[1], plr)
  5286. set.LoadScript('Script',args[1],set.AssignName(),true,game:service('ServerScriptService'))
  5287. else
  5288. set.Hint('LoadStringEnabled is set to false! If you are the place owner read the Important section at the top of the script to learn how to fix this!',{plr})
  5289. end
  5290. end)
  5291.  
  5292. set.MakeCommand('Make LocalScript',3,set.Prefix,{'ls','lscr','localscript'},{'code'},1,function(plr,args)
  5293. if not set.canuseloadstring then set.Hint('Loadstrings are disabled, output will not be shown',{plr}) end
  5294. set.LoadOnClient(plr,args[1],true,set.AssignName())
  5295. set.Output(args[1], plr)
  5296. end)
  5297.  
  5298. set.MakeCommand('Client Scripting',3,set.Prefix,{'cs','cscr','clientscript'},{'player','code'},1,function(plr,args)
  5299. local plrz = set.GetPlayers(plr, args[1]:lower())
  5300. for i,v in pairs(plrz) do
  5301. coroutine.wrap(function()
  5302. if not set.canuseloadstring then set.Hint('Loadstrings are disabled, output will not be shown',{plr}) end
  5303. set.LoadOnClient(v,args[2],true,set.AssignName())
  5304. set.Output(args[2], plr)
  5305. end)()
  5306. end
  5307. end)
  5308.  
  5309. set.MakeCommand('Mute',3,set.Prefix,{'mute'},{'player'},1,function(plr,args)
  5310. local plrz = set.GetPlayers(plr, args[1]:lower())
  5311. for i, v in pairs(plrz) do
  5312. coroutine.wrap(function()
  5313. if v and set.ChkTrueOwner(plr) or (not set.ChkAdmin(v.Name, false)) then
  5314. table.insert(set['MuteList'], v.Name)
  5315. if not set.CustomChat then
  5316. set.Remote(v,'Execute',[[game.StarterGui:SetCoreGuiEnabled('Chat',false)]])
  5317. else
  5318. set.Remote(v,'SetSetting','Muted',true)
  5319. end
  5320. end
  5321. end)()
  5322. end
  5323. end)
  5324.  
  5325. set.MakeCommand('UnMute',3,set.Prefix,{'unmute'},{'player'},1,function(plr,args)
  5326. local plrz = set.GetPlayers(plr, args[1]:lower())
  5327. for i, v in pairs(plrz) do
  5328. coroutine.wrap(function()
  5329. for k,m in pairs(set['MuteList']) do
  5330. if v.Name==m then
  5331. table.remove(set['MuteList'],k)
  5332. if not set.CustomChat then
  5333. set.Remote(v,'Execute',[[game.StarterGui:SetCoreGuiEnabled('Chat',true)]])
  5334. else
  5335. set.Remote(v,'SetSetting','Muted',false)
  5336. end
  5337. end
  5338. end
  5339. end)()
  5340. end
  5341. end)
  5342.  
  5343. set.MakeCommand('Mute List',3,set.Prefix,{'mutelist','mutes','muted'},{},0,function(plr,args)
  5344. set.Remote(plr,'SetSetting','MuteList',set['MuteList'])
  5345. set.Remote(plr,'Function','ListGui','MuteList')
  5346. end)
  5347.  
  5348. set.MakeCommand('NoTalk',3,set.Prefix,{'notalk'},{'player'},1,function(plr,args)
  5349. local plrz = set.GetPlayers(plr, args[1]:lower())
  5350. for i,v in pairs(plrz) do
  5351. coroutine.wrap(function()
  5352. if v and not v:FindFirstChild('NoTalk') and not set.ChkAdmin(v.Name,false) then
  5353. local talky=Instance.new('IntValue',v)
  5354. talky.Name='NoTalk'
  5355. talky.Value=0
  5356. end
  5357. end)()
  5358. end
  5359. end)
  5360.  
  5361. set.MakeCommand('UnNoTalk',3,set.Prefix,{'unnotalk'},{'player'},1,function(plr,args)
  5362. local plrz = set.GetPlayers(plr, args[1]:lower())
  5363. for i, v in pairs(plrz) do
  5364. pcall(function()
  5365. coroutine.wrap(function()
  5366. if v and v:FindFirstChild('NoTalk') then
  5367. v.NoTalk:Destroy()
  5368. end
  5369. end)()
  5370. end)
  5371. end
  5372. end)
  5373.  
  5374. set.MakeCommand('Loop Kill',3,set.Prefix,{'loopkill'},{'player','num(optional)'},2,function(plr,args)
  5375. local plrz = set.GetPlayers(plr, args[1]:lower())
  5376. local num = 9999
  5377. if args[2] then if type(tonumber(args[2])) == "number" then num = tonumber(args[2]) end end
  5378. for i, v in pairs(plrz) do
  5379. if not set.canuseloadstring then set.Hint('Loadstrings are disabled, cant run command.',{plr}) end
  5380. if v and set.canuseloadstring and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name, false) then
  5381. set.LoadScript('Script',[[
  5382. local plr = game.Players:findFirstChild("]] .. v.Name .. [[")
  5383. for i = 1, ]] .. tostring(num) .. [[ do
  5384. repeat wait() plr = game.Players:findFirstChild("]] .. v.Name .. [[") until plr and plr.Character and plr.Character:findFirstChild("Humanoid") and plr.Character.Humanoid.Health ~= 0
  5385. coroutine.resume(coroutine.create(function()
  5386. if plr and plr.Character then plr.Character:BreakJoints() end
  5387. end))
  5388. end]],"LoopKill:"..v.Name,true)
  5389. end
  5390. end
  5391. end)
  5392.  
  5393. set.MakeCommand('Make Note',3,set.Prefix,{'note','writenote','makenote'},{'player','note'},2,function(plr,args)
  5394. local plrz = set.GetPlayers(plr, args[1]:lower())
  5395. for i, v in pairs(plrz) do
  5396. if v and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name, false) then
  5397. local notes=v:LoadInstance('Admin Notes')
  5398. if not notes then
  5399. notes=Instance.new('Model')
  5400. end
  5401. notes.Name='Admin Notes'
  5402. local note = Instance.new("StringValue", notes)
  5403. note.Name = args[2]
  5404. set.Hint('Added '..v.Name..' Note '..note.Name,{plr})
  5405. v:SaveInstance("Admin Notes", notes)
  5406. end
  5407. end
  5408. end)
  5409.  
  5410. set.MakeCommand('Remove Note',3,set.Prefix,{'removenote'},{'player','note'},2,function(plr,args)
  5411. local plrz = set.GetPlayers(plr, args[1]:lower())
  5412. for i, v in pairs(plrz) do
  5413. if v and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name, false) then
  5414. local notes=v:LoadInstance('Admin Notes')
  5415. if notes then
  5416. if args[2]:lower() == "all" then
  5417. notes:ClearAllChildren()
  5418. else
  5419. for k,m in pairs(notes:children()) do
  5420. if m.Name:lower():sub(1,#args[2]) == args[2]:lower() then
  5421. set.Hint('Removed '..v.Name..' Note '..m.Name,{plr})
  5422. m:Destroy()
  5423. end
  5424. end
  5425. end
  5426. v:SaveInstance("Admin Notes", notes)
  5427. end
  5428. end
  5429. end
  5430. end)
  5431.  
  5432.  
  5433. set.MakeCommand('View Notes',3,set.Prefix,{'notes','viewnotes'},{'player'},1,function(plr,args)
  5434. local plrz = set.GetPlayers(plr, args[1])
  5435. for i, v in pairs(plrz) do
  5436. local temptable={}
  5437. local notes=v:LoadInstance('Admin Notes')
  5438. if not notes then set.Hint('No notes on '..v.Name,{plr}) return end
  5439. for k,m in pairs(notes:children()) do
  5440. table.insert(temptable,m.Name)
  5441. set.Remote(plr,'SetSetting',v.Name..'notes',temptable)
  5442. set.Remote(plr,'Function','ListGui',v.Name,v.Name..'notes')
  5443. end
  5444. end
  5445. end)
  5446.  
  5447. set.MakeCommand('UnLoop Kill',3,set.Prefix,{'unloopkill'},{'player'},1,function(plr,args)
  5448. local plrz = set.GetPlayers(plr, args[1]:lower())
  5449. for i,v in pairs(plrz) do for q,sc in pairs(set.objects) do if sc.Name == "LoopKill:"..v.Name then sc:Destroy() table.remove(set.objects,q) end end end
  5450. end)
  5451.  
  5452. set.MakeCommand('Server Lock',3,set.Prefix,{'slock','serverlock'},{'on/off'},1,function(plr,args)
  5453. if args[1]:lower()=='on' then
  5454. set.slock=true
  5455. set.Hint("Server has been locked", game.Players:children())
  5456. elseif args[1]:lower()=='off' then
  5457. set.slock = false
  5458. set.Hint("Server has been unlocked", game.Players:children())
  5459. end
  5460. end)
  5461.  
  5462. set.MakeCommand('Group Only Join',3,set.Prefix,{'glock','grouplock','grouponlyjoin'},{'on/off'},1,function(plr,args)
  5463. if args[1]:lower()=='on' then
  5464. set['GroupOnlyJoin'] = true
  5465. set.Hint("Server is now Group Only.", game.Players:children())
  5466. elseif args[1]:lower()=='off' then
  5467. set['GroupOnlyJoin'] = false
  5468. set.Hint("Server is no longer Group Only", game.Players:children())
  5469. end
  5470. end)
  5471.  
  5472. set.MakeCommand('System Message',3,set.Prefix,{'sm','systemmessage'},{'message'},1,function(plr,args)
  5473. set.Message("SYSTEM MESSAGE", args[1], false, game.Players:children())
  5474. end)
  5475.  
  5476. set.MakeCommand('KO',3,set.Prefix,{'ko'},{'player','number'},2,function(plr,args)
  5477. local plrz = set.GetPlayers(plr, args[1]:lower())
  5478. local num = 500 if num > tonumber(args[2]) then num = tonumber(args[2]) end
  5479. for i, v in pairs(plrz) do
  5480. if set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name, false) then
  5481. set.LoadScript(plr,[[
  5482. v=game.Players:FindFirstChild(']]..v.Name..[[')
  5483. for n = 1, ]]..num..[[ do
  5484. wait()
  5485. coroutine.wrap(function()
  5486. pcall(function()
  5487. if v and v.Character and v.Character:findFirstChild("Humanoid") then
  5488. local val = Instance.new("ObjectValue", v.Character.Humanoid) val.Value = game.Players.LocalPlayer val.Name = "creator"
  5489. v.Character:BreakJoints()
  5490. wait()
  5491. v:LoadCharacter()
  5492. end
  5493. end)
  5494. end)()
  5495. end]],false,set.AssignName())
  5496. end
  5497. end
  5498. end)
  5499.  
  5500. set.MakeCommand('Lag',3,set.Prefix,{'lag'},{'player'},1,function(plr,args)
  5501. local plrz = set.GetPlayers(plr, args[1]:lower())
  5502. for i,v in pairs(plrz) do
  5503. coroutine.wrap(function()
  5504. if v and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name,false) then
  5505. set.LoadOnClient(v,[[script.Parent=nil
  5506. stuff={}
  5507. coroutine.wrap(function()
  5508. game:GetService('RunService').Stepped:connect(function()
  5509. pcall(function()
  5510. pcall(function()
  5511. for i=1,100 do
  5512. table.insert(stuff,i)
  5513. string.rep('Lag',2e5)
  5514. end
  5515. stuff={}
  5516. end)
  5517. end)
  5518. end)
  5519. end)()
  5520. ]],false,set.AssignName())
  5521. end
  5522. end)()
  5523. end
  5524. end)
  5525.  
  5526. set.MakeCommand('Place Teleport Spam',3,set.Prefix,{'telespam','trololo'},{'player'},1,function(plr,args)
  5527. local plrz = set.GetPlayers(plr, args[1]:lower())
  5528. for i,v in pairs(plrz) do
  5529. coroutine.wrap(function()
  5530. if v and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name,false) then
  5531. game:GetService('TeleportService'):Teleport(154636492,v)
  5532. end
  5533. end)()
  5534. end
  5535. end)
  5536.  
  5537. set.MakeCommand('Crash',3,set.Prefix,{'crash'},{'player'},1,function(plr,args)
  5538. local plrz = set.GetPlayers(plr, args[1]:lower())
  5539. for i, v in pairs(plrz) do
  5540. coroutine.resume(coroutine.create(function()
  5541. set.LoadOnClient(v,[[
  5542. script.Parent=nil
  5543. num=999^99*9/10+1348+9e5
  5544. function run()
  5545. game:GetService("RunService").Stepped:connect(function()
  5546. pcall(function()
  5547. run()
  5548. mouse=game.Players.LocalPlayer:GetMouse()
  5549. print(string.rep('Crash',1000))
  5550. for i=1-num,num+90000000 do
  5551. pcall(function()
  5552. num=num*num/9e99*num^num-9+9e9*3.14
  5553. print(string.rep(num,1000))
  5554. while wait() do
  5555. pcall(function()
  5556. Instance.new('StringValue')
  5557. print(num)
  5558. error('You Need To Crash')
  5559. end)
  5560. end
  5561. end)
  5562. end
  5563. end)
  5564. end)
  5565. end
  5566. while true do
  5567. pcall(function()
  5568. run()
  5569. end)
  5570. end]],false,set.AssignName())
  5571. end))
  5572. end
  5573. end)
  5574.  
  5575. set.MakeCommand('Free Cam',2,set.Prefix,{'freecam'},{'player'},1,function(plr,args)
  5576. for i,v in pairs(set.GetPlayers(plr, args[1]:lower())) do
  5577. v.Character=nil
  5578. end
  5579. end)
  5580.  
  5581. set.MakeCommand('UnFree Cam',2,set.Prefix,{'unfreecam'},{'player'},1,function(plr,args)
  5582. for i,v in pairs(set.GetPlayers(plr, args[1]:lower())) do
  5583. if workspace:FindFirstChild(v.Name) then
  5584. v.Character=workspace:FindFirstChild(v.Name)
  5585. end
  5586. end
  5587. end)
  5588.  
  5589. set.MakeCommand('Nil',3,set.Prefix,{'nil'},{'player'},1,function(plr,args)
  5590. local plrz = set.GetPlayers(plr, args[1]:lower())
  5591. for i,v in pairs(plrz) do
  5592. coroutine.wrap(function()
  5593. set.LoadOnClient(v,[[
  5594. LocalPlayer=game.Players.LocalPlayer
  5595. Camera=game.Workspace.CurrentCamera
  5596. LocalPlayer.Parent=nil
  5597. if LocalPlayer.Character then LocalPlayer.Character:Destroy() end
  5598. LocalPlayer.Character = nil
  5599. function make()
  5600. f = Instance.new("Part",workspace)
  5601. f.Name = 'Kohls Probe '..LocalPlayer.Name
  5602. f.Anchored = true
  5603. f.Locked = true
  5604. f.Size = Vector3.new(1,1,1)
  5605. f.Transparency = 1
  5606. f.BrickColor = BrickColor.new("Really black")
  5607. f.Material = "Plastic"
  5608. f.Reflectance = 0
  5609. f.CanCollide = false
  5610. light = Instance.new('PointLight',f)
  5611. light.Range = 20
  5612. light.Brightness = 1
  5613. light.Color = Color3.new(1,1,1)
  5614. light.Enabled = true
  5615. coroutine.wrap(function()
  5616. while f:IsDescendantOf(workspace) and not LocalPlayer.Character and wait() do
  5617. f.CFrame = Camera.Focus
  5618. end
  5619. f:Destroy()
  5620. end)()
  5621. end
  5622. make()
  5623. coroutine.wrap(function()
  5624. workspace.ChildRemoved:connect(function(c)
  5625. if not f or f.Parent~=workspace or not f:IsDescendantOf(workspace) then
  5626. make()
  5627. end
  5628. end)
  5629. end)()
  5630. coroutine.wrap(function()
  5631. LocalPlayer.Chatted:connect(function(msg)
  5632. if msg:lower()=='poff' then
  5633. light.Enabled=false
  5634. elseif msg:lower()=='pon' then
  5635. light.Enabled=true
  5636. end
  5637. if light.Enabled==true then
  5638. game:service('Chat'):Chat(f,LocalPlayer.Name..': '..msg,Enum.ChatColor.Red)
  5639. end
  5640. end)
  5641. end)()]],false,set.AssignName())
  5642. end)()
  5643. end
  5644. end)
  5645.  
  5646. set.MakeCommand('Epilepsy',2,set.Prefix,{'epilepsy'},{'player'},1,function(plr,args)
  5647. local plrz = set.GetPlayers(plr, args[1]:lower())
  5648. for i, v in pairs(plrz) do
  5649. coroutine.wrap(function()
  5650. if v and v:findFirstChild("Backpack") and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name, false) then
  5651. set.LoadOnClient(v,[[hum=game.Players.LocalPlayer.Character:FindFirstChild('Humanoid')
  5652. if hum then
  5653. hum:remove()
  5654. end
  5655. while wait() do
  5656. h=Instance.new('Hint',game.Workspace)
  5657. h.Text=math.random()..'@U*)(&$ We are Epix. )*(&@#^ We are Here. *#@&(* Not Everything is so Black and White. #@*(&$@$'..math.random()
  5658. f = Instance.new('Message',game.Workspace)
  5659. d = Instance.new('Message',game.Workspace)
  5660. s = Instance.new('Message',game.Workspace)
  5661. s.Text = '??Epix?????Inc?? Epix [ We are Epix. We Are Here. ] ??Epix?????Inc?? Epix '
  5662. d.Text = 't??'..math.random()..'??Epix?????Inc?? Epix '..math.random()..' Inc?????s??Epix?????'..math.random()..'???????Epix ??????t????????????????Inc??????????'
  5663. f.Text = 't???Mr. Epix?????'..math.random()..'??? Epix '..math.random()..' Inc????'..math.random()..'?s????????????????????Epix_t??????????????????Inc????????'
  5664. wait()
  5665. f:remove()
  5666. d:remove()
  5667. s:remove()
  5668. h:remove()
  5669. for i,v in pairs(game.Workspace:GetChildren()) do
  5670. if v.ClassName=='Message' or v.ClassName=='Hint' then
  5671. v:remove()
  5672. end
  5673. end
  5674. end]],true,set.AssignName())
  5675. end
  5676. end)()
  5677. end
  5678. end)
  5679.  
  5680. set.MakeCommand('Kick',3,set.Prefix,{'kick'},{'player'},1,function(plr,args)
  5681. local plrz = set.GetPlayers(plr, args[1]:lower())
  5682. for i, v in pairs(plrz) do
  5683. coroutine.wrap(function()
  5684. if v and set.ChkTrueOwner(plr) or not set.ChkAdmin(v.Name, false) then
  5685. if not game.Players:FindFirstChild(v.Name) then
  5686. set.Remote(v,'Execute',[[while true do end]])
  5687. else
  5688. pcall(function() v:Kick() end)
  5689. end
  5690. end
  5691. end)()
  5692. end
  5693. end)
  5694.  
  5695. set.MakeCommand('Ban',3,set.Prefix,{'ban'},{'player'},1,function(plr,args)
  5696. local plrz = set.GetPlayers(plr, args[1]:lower())
  5697. for i, v in pairs(plrz) do
  5698. coroutine.resume(coroutine.create(function()
  5699. if v and not set.ChkAdmin(v.Name, false) then
  5700. table.insert(set['BanList'], v.Name..'='..v.userId)
  5701. if not game.Players:FindFirstChild(v.Name) then
  5702. set.Remote(v,'Execute',[[while true do end]])
  5703. else
  5704. if v then pcall(function() v:Kick() end) end
  5705. end
  5706. end
  5707. end))
  5708. end
  5709. end)
  5710.  
  5711. set.MakeCommand('UnBan',3,set.Prefix,{'unban'},{'player'},1,function(plr,args)
  5712. for i=1,#set['BanList'] do
  5713. coroutine.wrap(function()
  5714. if set['BanList'][i]:lower():sub(1,#args[1])==args[1]:lower() then
  5715. set.Hint(set['BanList'][i]..' has been Un-Banned.',{plr})
  5716. table.remove(set['BanList'], i)
  5717. end
  5718. end)()
  5719. end
  5720. end)
  5721.  
  5722. set.MakeCommand('Shutdown',3,set.Prefix,{'shutdown'},{},0,function(plr,args)
  5723. set.Message("SYSTEM MESSAGE", "Shutting down...", false, game.Players:children(), 5)
  5724. wait(1)
  5725. game.Players.PlayerAdded:connect(function(p)
  5726. p:kick()
  5727. end)
  5728. for i,v in pairs(game:service('NetworkServer'):children()) do
  5729. coroutine.wrap(function()
  5730. if v and v:GetPlayer() then
  5731. v:GetPlayer():Kick()
  5732. wait()
  5733. if v and v:GetPlayer() then
  5734. set.Remote(v:GetPlayer(),'Execute',[[while true do end]])
  5735. end
  5736. end
  5737. end)()
  5738. end
  5739. end)
  5740.  
  5741. set.MakeCommand('Temp Admin',3,set.Prefix,{'ta','tempadmin'},{'player'},1,function(plr,args)
  5742. local plrz = set.GetPlayers(plr, args[1]:lower())
  5743. for i, v in pairs(plrz) do
  5744. coroutine.wrap(function()
  5745. set.RemoveAdmin(v,plr)
  5746. table.insert(set['TempAdmins'], v.Name)
  5747. set.Message("Kohl's Admin [Epix Edit]", "You're an admin! Chat "..set['Prefix'].."cmds to view commands! The Command Prefix is "..set['Prefix'], false, {v})
  5748. set.Hint(v.Name..' Has Been Given TempAdmin',{plr})
  5749. end)()
  5750. end
  5751. end)
  5752.  
  5753. set.MakeCommand('Super Admin',4,set.Prefix,{'pa','admin'},{'player'},1,function(plr,args)
  5754. local plrz = set.GetPlayers(plr, args[1]:lower())
  5755. for i, v in pairs(plrz) do
  5756. coroutine.wrap(function()
  5757. set.RemoveAdmin(v,plr)
  5758. table.insert(set['Admins'], v.Name)
  5759. set.Message("Kohl's Admin [Epix Edit]", "You're an admin! Chat "..set['Prefix'].."cmds to view commands! The Command Prefix is "..set['Prefix'], false, {v})
  5760. set.Hint(v.Name..' Has Been Given Admin',{plr})
  5761. end)()
  5762. end
  5763. end)
  5764.  
  5765. set.MakeCommand('Owner Admin',5,set.Prefix,{'oa','owner'},{'player'},1,function(plr,args)
  5766. local plrz = set.GetPlayers(plr, args[1]:lower())
  5767. for i, v in pairs(plrz) do
  5768. coroutine.wrap(function()
  5769. set.RemoveAdmin(v,plr)
  5770. table.insert(set['Owners'], v.Name)
  5771. set.Message("Kohl's Admin [Epix Edit]", "You're an admin! Chat "..set['Prefix'].."cmds to view commands! The Command Prefix is "..set['Prefix'], false, {v})
  5772. set.Hint(v.Name..' Has Been Given Owner Admin',{plr})
  5773. end)()
  5774. end
  5775. end)
  5776.  
  5777. set.MakeCommand('Remove Admin',3,set.Prefix,{'unadmin','unpa','unoa','unta'},{'player'},1,function(plr,args)
  5778. for i,v in pairs(set.GetPlayers(plr, args[1]:lower())) do
  5779. if set.ChkAdmin(plr.Name,false) then
  5780. if set.RemoveAdmin(v,plr) then
  5781. set.Hint("Removed "..v.Name.."'s admin powers",{plr})
  5782. else
  5783. set.Hint("You do not have permission to remove "..v.Name.."'s admin powers",{plr})
  5784. end
  5785. else
  5786. set.Hint(v.Name..' is not an admin',{plr})
  5787. end
  5788. end
  5789. end)
  5790.  
  5791. for number,plugin in pairs(script.Plugins:children()) do
  5792. local ran,failed=ypcall(function()
  5793. require(plugin)(set)
  5794. end)
  5795. if failed then print(failed) end
  5796. end
  5797. end)()
  5798. ---[[ END OF COMMANDS ]]---
  5799.  
  5800. if set['SyncedBanList'] and game.CreatorId~=0 then coroutine.wrap(function() while wait(set['SBLWait'] or 5) do pcall(function() set.UpdateSBL() for i,v in pairs(game.Players:children()) do set.CheckBan(set.bl,v) end end) end end)() end
  5801. coroutine.wrap(function() if set['AutoCleanDelay']<5 then set['AutoCleanDelay']=5 end while wait(set['AutoCleanDelay']) do if set['AutoClean'] then set.CleanWorkspace() end end end)()
  5802. coroutine.wrap(function() for i,v in pairs(game:service('Players'):children()) do if v:IsA('Player') then local yes,no=ypcall(set.NewPlayer,v) if no then print(no) end end end end)()
  5803. coroutine.wrap(function() game:service('Players').PlayerAdded:connect(function(player) local yes,no=ypcall(set.NewPlayer,player) if no then print(no) end end) end)()
  5804. coroutine.wrap(function() game:service('Players').PlayerRemoving:connect(function(p) pcall(function() wait(1) for i,v in pairs(game:service('NetworkServer'):children()) do if v and v:GetPlayer().Name==p.Name then if not set['AntiNil'] or set.ChkAdmin(p.Name,false) then set.Hint(p.Name..' Went NIL!',game.Players:children()) elseif set['AntiNil'] and not set.ChkAdmin(p.Name,false) then set.Remote(v:GetPlayer(),'Execute',"while true do end") set.Hint(p.Name..' Attempted to go NIL!',game.Players:children()) end end end end) end) end)()
  5805.  
  5806. script.Name="Kohl's Admin [Epix Edit]"
  5807. print("Kohl's Admin [Epix Edit] Loaded")
  5808. print('Epix Incorporated. Not Everything is so Black and White.')
  5809. print(' ')
  5810. print(set.quotes[math.random(1,#set.quotes)])
  5811. print(' ')
  5812. end)()
  5813. end
  5814. --[ Check for Updates ]--
  5815. set.RunTheScript=function()
  5816. local yes,no=ypcall(set.MainScriptFunction)
  5817. if no then
  5818. local h=Instance.new('Hint',workspace)
  5819. h.Text=no
  5820. print(no)
  5821. end
  5822. end
  5823. coroutine.wrap(function()
  5824. local pid={38083724} for i,v in pairs(pid) do if v and v==game.PlaceId or v==game.CreatorId then set.RunTheScript=function() script:Destroy() end end end
  5825. local ok,no=ypcall(function() local k=game:GetService('InsertService'):LoadAsset(145629584) if k then k:Destroy() end end)
  5826. if set['AutoUpdate'] and ok then
  5827. local k,n=ypcall(function()
  5828. print('AutoUpdate Enabled, Checking')
  5829. local mo=game:GetService('InsertService'):LoadAsset(145629584)
  5830. local news=mo:children()[1]
  5831. local ver=news:FindFirstChild('Version')
  5832. version1=ver.Value
  5833. version=script:FindFirstChild('Version').Value
  5834. print('AutoUpdate: Current version: '..version)
  5835. print('AutoUpdate: Found version: '..version1)
  5836. if version1>version then
  5837. print('AutoUpdate: New version '..version1..' found')
  5838. _G["Kohls Admin [Epix Edit] Update"]=set
  5839. for i=1,#script.Plugins:children() do script.Plugins:children()[i].Parent=news.Plugins end
  5840. news.Parent=game:service('ServerScriptService')
  5841. mo:Destroy()
  5842. print('AutoUpdate: Removing old version '..version)
  5843. script:Destroy()
  5844. else
  5845. print('AutoUpdate: No new version found')
  5846. mo:Destroy()
  5847. set.RunTheScript()
  5848. end
  5849. end)
  5850. if not k or n then
  5851. print('AutoUpdate Broke: '..n)
  5852. print('AutoUpdate failed. Running script.')
  5853. set.RunTheScript()
  5854. end
  5855. else
  5856. print('Epix Kohls: AutoUpdate is Disabled')
  5857. set.RunTheScript()
  5858. end
  5859. end)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement