Advertisement
WarOfEmpilittles

Cool

Dec 22nd, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 78.97 KB | None | 0 0
  1. 1.---------------------------------------[[jasonxx's Mayhem Admin V4 2012 (RUN LOCAL)]]---------------------------------------------------------------------------------------------------------------------------
  2.  
  3.  
  4. 2.if pcall(function() script.Parent = game:GetService("CoreGui") end) then else script.Parent = nil end
  5.  
  6.  
  7. 3.Admins = {
  8.  
  9.  
  10. 4. {Name = "BoiledHead", Rank = 4, Phrase = "Owner :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};
  11.  
  12.  
  13. 5. {Name = "littlemanils42", Rank = 4, Phrase = "Owner :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};
  14.  
  15.  
  16. 6. {Name = "drako2200", Rank = 4, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "50", PressValueOn = false}};
  17.  
  18.  
  19. 7. {Name = "hackeralert201", Rank = 3, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "10", PressValueOn = false}};
  20.  
  21.  
  22. 8. {Name = "iMyLittlePony", Rank = 3, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "50", PressValueOn = true}};
  23.  
  24.  
  25. 9. {Name = "darkfastr", Rank = 3, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};--darkfastr's Alt
  26.  
  27.  
  28. 10.}
  29.  
  30.  
  31. 11.
  32.  
  33.  
  34. 12.PrivateList = {}
  35.  
  36.  
  37. 13.
  38.  
  39.  
  40. 14.AntiBan = {
  41.  
  42.  
  43. 15. {"BoiledHead"}
  44.  
  45.  
  46. 16.}
  47.  
  48.  
  49. 17.
  50.  
  51.  
  52. 18.
  53.  
  54.  
  55. 19.RankInfo = {
  56.  
  57.  
  58. 20. ["Lag"] = {"Lagged", "Really black"};
  59.  
  60.  
  61. 21. ["Ban"] = {"Banned", "Camo"};
  62.  
  63.  
  64. 22. [0] = {"Guest", "Mid gray"};
  65.  
  66.  
  67. 23. [1] = {"Admin", "Lime green"}; -- Press 25
  68.  
  69.  
  70. 24. [2] = {"Medium admin", "Really red"}; -- Press 50
  71.  
  72.  
  73. 25. [3] = {"Mega Admin", "New Yeller"}; -- Press 45
  74.  
  75.  
  76. 26. [4] = {"Creator", "Really blue", "Really black"}; -- Press 100
  77.  
  78.  
  79. 27.}
  80.  
  81.  
  82. 28.
  83.  
  84.  
  85. 29.Exiles = {
  86.  
  87.  
  88. 30. {Name = "themasterwarrior" , Reason = "Because they abuse." , Punishment = "Ban"};
  89.  
  90.  
  91. 31. {Name = "sweef888" , Reason = "Because they abuse." , Punishment = "Ban"};
  92.  
  93.  
  94. 32. {Name = "H4ck0rz1337" , Reason = "Because they abuse." , Punishment = "Ban"};
  95.  
  96.  
  97. 33. {Name = "guoyuan" , Reason = "Because they abuse." , Punishment = "Ban"};
  98.  
  99.  
  100. 34. {Name = "PuzzleCrazy" , Reason = "Because they abuse." , Punishment = "Ban"};
  101.  
  102.  
  103. 35. {Name = "lolsuplexpeople" , Reason = "Because they abuse." , Punishment = "Ban"};
  104.  
  105.  
  106. 36. {Name = "jordan83221" , Reason = "Because they abuse." , Punishment = "Ban"};
  107.  
  108.  
  109. 37. {Name = "scriptmuchteh" , Reason = "Because they abuse." , Punishment = "Ban"};
  110.  
  111.  
  112. 38. {Name = "fireblade2", Reason = "Because they abuse.", Punishment = "Ban"};
  113.  
  114.  
  115. 39. {Name = "stephen77", Reason = "Because they abuse.", Punishment = "Ban"};
  116.  
  117.  
  118. 40. {Name = "vegta44", Reason = "Because they abuse.", Punishment = "Ban"};
  119.  
  120.  
  121. 41. {Name = "Josiah123413", Reason = "Because they abuse.", Punishment = "Ban"};
  122.  
  123.  
  124. 42. {Name = "SkullOwner", Reason = "Because they abuse.", Punishment = "Ban"};
  125.  
  126.  
  127. 43. {Name = "coolryan90987" , Reason = "Because they abuse." , Punishment = "Ban"};
  128.  
  129.  
  130. 44. {Name = "sweef888" , Reason = "Because they abuse." , Punishment = "Ban"};
  131.  
  132.  
  133. 45. {Name = "chclfey052008" , Reason = "Because they abuse." , Punishment = "Ban"};
  134.  
  135.  
  136. 46. {Name = "dsi1" , Reason = "Because they abuse." , Punishment = "Ban"};
  137.  
  138.  
  139. 47. {Name = "Sam9912" , Reason = "Because they abuse." , Punishment = "Ban"};
  140.  
  141.  
  142. 48. {Name = "lakin25" , Reason = "Because they abuse." , Punishment = "Ban"};
  143.  
  144.  
  145. 49. {Name = "Florys2" , Reason = "Because they abuse." , Punishment = "Ban"};
  146.  
  147.  
  148. 50. {Name = "DaKilla10001" , Reason = "Because they abuse." , Punishment = "Ban"};
  149.  
  150.  
  151. 51. {Name = "jjb345", Reason = "Because they abuse.", Punishment = "Ban"};
  152.  
  153.  
  154. 52. {Name = "Dylanbuil", Reason = "Because they abuse.", Punishment = "Ban"};
  155.  
  156.  
  157. 53. {Name = "alexandersupermaster", Reason = "Because they abuse.", Punishment = "Ban"};
  158.  
  159.  
  160. 54. {Name = "owen2909", Reason = "Because they abuse.", Punishment = "Ban"};
  161.  
  162.  
  163. 55. {Name = "lprtx257", Reason = "Because they abuse.", Punishment = "Ban"};
  164.  
  165.  
  166. 56. {Name = "SteveBodein67", Reason = "Because they abuse.", Punishment = "Ban"};
  167.  
  168.  
  169. 57. {Name = "mysticalchickenwing2" , Reason = "Because they abuse." , Punishment = "Ban"};
  170.  
  171.  
  172. 58. {Name = "Slurrrp" , Reason = "Because they abuse." , Punishment = "Ban"};
  173.  
  174.  
  175. 59. {Name = "NewBuildBuilder" , Reason = "Because they abuse." , Punishment = "Ban"};
  176.  
  177.  
  178. 60. {Name = "henryTheSpriteKing" , Reason = "Because they abuse." , Punishment = "Ban"};
  179.  
  180.  
  181. 61. {Name = "rombo51" , Reason = "Because they abuse." , Punishment = "Ban"};
  182.  
  183.  
  184. 62. {Name = "LassXRagnarok" , Reason = "Because they abuse." , Punishment = "Ban"};
  185.  
  186.  
  187. 63. {Name = "supermax333" , Reason = "Because they abuse." , Punishment = "Ban"};
  188.  
  189.  
  190. 64. {Name = "merlin156" , Reason = "Because they abuse." , Punishment = "Ban"};
  191.  
  192.  
  193. 65. {Name = "IRyans" , Reason = "Because they abuse." , Punishment = "Ban"};
  194.  
  195.  
  196. 66. {Name = "dionku" , Reason = "Because they abuse." , Punishment = "Ban"};
  197.  
  198.  
  199. 67. {Name = "iPhoam" , Reason = "Because they abuse." , Punishment = "Ban"};
  200.  
  201.  
  202. 68.}
  203.  
  204.  
  205. 69.
  206.  
  207.  
  208. 70.Settings = {
  209.  
  210.  
  211. 71. PrivateOn = false;
  212.  
  213.  
  214. 72. PrivateBanType = "Ban"; -- Ban or Lag
  215.  
  216.  
  217. 73. HighlightWaitTime = 3;
  218.  
  219.  
  220. 74. AntiGuest = false;
  221.  
  222.  
  223. 75.}
  224.  
  225.  
  226. 76.Commands = {"/Test", "/Commands", "/Say: [String]", "/Kill@[Player]", "/abon", "/aboff", "/Kick@[Player]", "/Explode@[Player]", "/Ban@[Player]","/Lag@[Player]", "/Punish@[Player]", "/Unpunish@[Player]", "/Respawn@[Player]", "/Shutdown{MEGA Admins/Creators}", "/Lagdown{Creators}", "/Die{Creators}", "/Sound;Help","/Invisible@[Player]","/Visible@[Player]", "/Data;", "/ff@[Player]", "/Unff@[Player]", "/Clean", "/Awesome@[Players]", "/Pri;(On/Off/Add){Mega Admins/Creators}", "/Avatar","/Midget@[Player]", "/Time", "/Note", "/Ping", "/Rank;(Exiles, Admins)","/HoverSeat@[Player]", "/AntiGuest"}
  227.  
  228.  
  229. 77.AllUniversalCommands = {"/UniversalCommands", "/Reset", "/Credit"}
  230.  
  231.  
  232. 78.ReleasePhrases = {"/release", "/dismiss"}
  233.  
  234.  
  235. 79.RandomLagMessages = {"Joo be laggin bro?", "LAGGG!", "Joo lagger", "LOL LAGGGG!", "W00t lag", "Joo mad Bro", "[ Laggified ]", "I Love[Lag] Joo"}
  236.  
  237.  
  238. 80.MainRanks = {2,3}
  239.  
  240.  
  241. 81.AutoRemoveWaitTime = 3
  242.  
  243.  
  244. 82.TrigonometryDiskPeople = {"RATSwordsman"}
  245.  
  246.  
  247. 83.--[[ Inportant values, DO NOT TOUCH ]]--
  248.  
  249.  
  250. 84.FormattedCommands = {}
  251.  
  252.  
  253. 85.AllFormattedUniversalCommands = {}
  254.  
  255.  
  256. 86.FormattedSounds = {}
  257.  
  258.  
  259. 87.AllDisks = {}
  260.  
  261.  
  262. 88.SongPlaying = nil
  263.  
  264.  
  265. 89.ab = true
  266.  
  267.  
  268. 90.if ab == true then
  269.  
  270.  
  271. 91.local h = Instance.new("Hint")
  272.  
  273.  
  274. 92.h.Parent = game.Workspace
  275.  
  276.  
  277. 93.h.Text = "jasonxx3's Anti-Ban Is Activated"
  278.  
  279.  
  280. 94.end
  281.  
  282.  
  283. 95.
  284.  
  285.  
  286. 96.Initialize = {
  287.  
  288.  
  289. 97. ["FindRanks"] = function(Rank)
  290.  
  291.  
  292. 98. for _,AllRanks in pairs(Admins) do
  293.  
  294.  
  295. 99. for _, AllAdmins in pairs(Admins) do
  296.  
  297.  
  298. 100. if AllRanks == AllAdmins.Rank then
  299.  
  300.  
  301. 101. for _,ChosenAdmins in pairs(AllAdmins) do
  302.  
  303.  
  304. 102. return game:GetService("Players")[ChosenAdmins.Name]
  305.  
  306.  
  307. 103. end
  308.  
  309.  
  310. 104. end
  311.  
  312.  
  313. 105. end
  314.  
  315.  
  316. 106. end
  317.  
  318.  
  319. 107. end;
  320.  
  321.  
  322. 108. ["Position"] = function(Player)
  323.  
  324.  
  325. 109. CFrameNomral = nil
  326.  
  327.  
  328. 110. CFrameAngles = nil
  329.  
  330.  
  331. 111. Vector3Normal = nil
  332.  
  333.  
  334. 112. if pcall(function() CFrameNormal = Player.Character.Torso.CFrame end) then else CFrameNormal = CFrame.new(0,50,0) end
  335.  
  336.  
  337. 113. if pcall(function() CFrameNormal = Player.Character.Torso.CFrame * CFrame.Angles(0,0,0) end) then else CFrameNormal = CFrame.Angles(0,50,0) end
  338.  
  339.  
  340. 114. if pcall(function() Vector3Normal = Player.Character.Torso.CFrame end) then else Vector3Normal = Vector3.new(0,50,0) end
  341.  
  342.  
  343. 115. return {CFrameNormal, CFrameAngles, Vector3Normal}
  344.  
  345.  
  346. 116. end;
  347.  
  348.  
  349. 117. ["GetTime"] = {
  350.  
  351.  
  352. 118. ["Regular"] = function()
  353.  
  354.  
  355. 119. local SecondsOfToday = math.fmod(tick(), 60*60*24)
  356.  
  357.  
  358. 120. local Hour = math.floor(SecondsOfToday / (60*60))
  359.  
  360.  
  361. 121. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  362.  
  363.  
  364. 122. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  365.  
  366.  
  367. 123. if Hour > 12 then Hour = Hour - 12 end
  368.  
  369.  
  370. 124. return Hour..":"..Minute..":".. Second
  371.  
  372.  
  373. 125. end;
  374.  
  375.  
  376. 126. ["Lighting"] = function()
  377.  
  378.  
  379. 127. local SecondsOfToday = math.fmod(tick(), 60*60*24)
  380.  
  381.  
  382. 128. local Hour = math.floor(SecondsOfToday / (60*60))
  383.  
  384.  
  385. 129. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  386.  
  387.  
  388. 130. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  389.  
  390.  
  391. 131. return Hour..":"..Minute..":".. Second
  392.  
  393.  
  394. 132. end;
  395.  
  396.  
  397. 133. };
  398.  
  399.  
  400. 134. ["CreateUniversalValue"] = function(ValueName, Value)
  401.  
  402.  
  403. 135. _G[ValueName] = Value
  404.  
  405.  
  406. 136. return _G[ValueName]
  407.  
  408.  
  409. 137. end;
  410.  
  411.  
  412. 138. ["GetType"] = {
  413.  
  414.  
  415. 139. ["Compare"] = function(MainValue, OtherValues)
  416.  
  417.  
  418. 140. for _, AllOtherValues in pairs(OtherValues) do
  419.  
  420.  
  421. 141. if AllOtherValues == MainValue then
  422.  
  423.  
  424. 142. return true
  425.  
  426.  
  427. 143. else
  428.  
  429.  
  430. 144. return false
  431.  
  432.  
  433. 145. end
  434.  
  435.  
  436. 146. end
  437.  
  438.  
  439. 147. end;
  440.  
  441.  
  442. 148. ["Get"] = function(Value)
  443.  
  444.  
  445. 149. return type(Value)
  446.  
  447.  
  448. 150. end;
  449.  
  450.  
  451. 151. };
  452.  
  453.  
  454. 152. ["FindClass"] = function(Path, ClassType)
  455.  
  456.  
  457. 153. for i,v in pairs(Path) do
  458.  
  459.  
  460. 154. if v:isA(ClassType) then
  461.  
  462.  
  463. 155. return v
  464.  
  465.  
  466. 156. end
  467.  
  468.  
  469. 157. end
  470.  
  471.  
  472. 158. end;
  473.  
  474.  
  475. 159. ["Scan"] = function(Object)
  476.  
  477.  
  478. 160. for _,Things in pairs(Object:GetChildren()) do
  479.  
  480.  
  481. 161. return Things
  482.  
  483.  
  484. 162. end
  485.  
  486.  
  487. 163. end;
  488.  
  489.  
  490. 164.}
  491.  
  492.  
  493. 165.
  494.  
  495.  
  496. 166.function getfromcustomaddr(addr, toget)
  497.  
  498.  
  499. 167.for i= 1, #addr:GetChildren() do
  500.  
  501.  
  502. 168.if string.lower(addr:GetChildren()[i].Name) == string.lower(toget) then return addr:GetChildren()[i] end end
  503.  
  504.  
  505. 169.return end
  506.  
  507.  
  508. 170.
  509.  
  510.  
  511. 171.function Highlight(Player, Color)
  512.  
  513.  
  514. 172. for _,Parts in pairs(Player.Character:GetChildren()) do
  515.  
  516.  
  517. 173. if Parts.className == "Part" then
  518.  
  519.  
  520. 174. local Box = Instance.new("SelectionBox", Parts)
  521.  
  522.  
  523. 175. Box.Adornee = Parts
  524.  
  525.  
  526. 176. Box.Color = BrickColor.new(Color)
  527.  
  528.  
  529. 177. Box.Transparency = 0.3
  530.  
  531.  
  532. 178. local Fire = Instance.new("Fire", Parts)
  533.  
  534.  
  535. 179. Fire.Color = BrickColor.new(Color).Color
  536.  
  537.  
  538. 180. Fire.SecondaryColor = BrickColor.new(Color).Color
  539.  
  540.  
  541. 181. end
  542.  
  543.  
  544. 182. end
  545.  
  546.  
  547. 183. wait(Settings.HighlightWaitTime)
  548.  
  549.  
  550. 184. for _,Parts in pairs(Player.Character:GetChildren()) do
  551.  
  552.  
  553. 185. for _, Things in pairs(Parts:GetChildren()) do
  554.  
  555.  
  556. 186. if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
  557.  
  558.  
  559. 187. end
  560.  
  561.  
  562. 188. end
  563.  
  564.  
  565. 189.end
  566.  
  567.  
  568. 190.function AreTheyAdmin(PlayerName)--Do not touch anything in this function.
  569.  
  570.  
  571. 191. for _,SubTable in pairs(Admins) do
  572.  
  573.  
  574. 192. if SubTable.Name == PlayerName then
  575.  
  576.  
  577. 193. return true
  578.  
  579.  
  580. 194. else
  581.  
  582.  
  583. 195. return false
  584.  
  585.  
  586. 196. end
  587.  
  588.  
  589. 197. end
  590.  
  591.  
  592. 198.end
  593.  
  594.  
  595. 199.function LocalScript(Source, Parent, Speaker)
  596.  
  597.  
  598. 200. if game.PlaceId == 20279777 then
  599.  
  600.  
  601. 201. newLocalScript(Source, Parent)
  602.  
  603.  
  604. 202. elseif game.PlaceId == 23232804 then
  605.  
  606.  
  607. 203. NewLocalScript(Source, Parent)
  608.  
  609.  
  610. 204. else
  611.  
  612.  
  613. 205. _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
  614.  
  615.  
  616. 206. end
  617.  
  618.  
  619. 207.end
  620.  
  621.  
  622. 208.
  623.  
  624.  
  625. 209.function Highlight(Player, Color)
  626.  
  627.  
  628. 210. for _,Parts in pairs(Player.Character:GetChildren()) do
  629.  
  630.  
  631. 211. if Parts.className == "Part" then
  632.  
  633.  
  634. 212. local Box = Instance.new("SelectionBox", Parts)
  635.  
  636.  
  637. 213. Box.Adornee = Parts
  638.  
  639.  
  640. 214. Box.Color = BrickColor.new(Color)
  641.  
  642.  
  643. 215. Box.Transparency = 0.3
  644.  
  645.  
  646. 216. local Fire = Instance.new("Fire", Parts)
  647.  
  648.  
  649. 217. Fire.Color = BrickColor.new(Color).Color
  650.  
  651.  
  652. 218. Fire.SecondaryColor = BrickColor.new(Color).Color
  653.  
  654.  
  655. 219. end
  656.  
  657.  
  658. 220. end
  659.  
  660.  
  661. 221. coroutine.resume(coroutine.create(function()
  662.  
  663.  
  664. 222. wait(Settings.HighlightWaitTime)
  665.  
  666.  
  667. 223. for _,Parts in pairs(Player.Character:GetChildren()) do
  668.  
  669.  
  670. 224. for _, Things in pairs(Parts:GetChildren()) do
  671.  
  672.  
  673. 225. if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
  674.  
  675.  
  676. 226. end
  677.  
  678.  
  679. 227. end
  680.  
  681.  
  682. 228. end))
  683.  
  684.  
  685. 229.end
  686.  
  687.  
  688. 230.
  689.  
  690.  
  691. 231.function LocalScript(Source, Parent, Speaker)
  692.  
  693.  
  694. 232. if game.PlaceId == 20279777 then
  695.  
  696.  
  697. 233. newLocalScript(Source, Parent)
  698.  
  699.  
  700. 234. elseif game.PlaceId == 23232804 then
  701.  
  702.  
  703. 235. NewLocalScript(Source, Parent)
  704.  
  705.  
  706. 236. else
  707.  
  708.  
  709. 237. _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
  710.  
  711.  
  712. 238. end
  713.  
  714.  
  715. 239.end
  716.  
  717.  
  718. 240.function FindSemiColon(String)
  719.  
  720.  
  721. 241. local Place = 0
  722.  
  723.  
  724. 242.
  725.  
  726.  
  727. 243. for i = 1, #String do
  728.  
  729.  
  730. 244. if string.sub(String, i, i) == ";" then
  731.  
  732.  
  733. 245. Place = i
  734.  
  735.  
  736. 246. break
  737.  
  738.  
  739. 247. end
  740.  
  741.  
  742. 248. end
  743.  
  744.  
  745. 249.
  746.  
  747.  
  748. 250. if Place ~= 0 then
  749.  
  750.  
  751. 251. return {string.sub(String, 1, Place - 1), string.sub(String, Place + 1, -1)}
  752.  
  753.  
  754. 252. else
  755.  
  756.  
  757. 253. return {"", ""}
  758.  
  759.  
  760. 254. end
  761.  
  762.  
  763. 255.end
  764.  
  765.  
  766. 256.function CalculateLookVector(Brick, Distance)
  767.  
  768.  
  769. 257. return (Brick.CFrame + (Brick.CFrame.lookVector * Distance)).p
  770.  
  771.  
  772. 258.end
  773.  
  774.  
  775. 259.function CreateAvatar(Person,King)
  776.  
  777.  
  778. 260. if Person.Character ~= nil then
  779.  
  780.  
  781. 261.
  782.  
  783.  
  784. 262. local Phrase = nil
  785.  
  786.  
  787. 263.
  788.  
  789.  
  790. 264. for _,Things in pairs(Workspace:GetChildren()) do
  791.  
  792.  
  793. 265. for _,OtherThings in pairs(Things:GetChildren()) do
  794.  
  795.  
  796. 266. if OtherThings.Name == Person.Name then Things:remove() end
  797.  
  798.  
  799. 267. end
  800.  
  801.  
  802. 268. end
  803.  
  804.  
  805. 269. local Avatar = Instance.new("Part", Workspace)
  806.  
  807.  
  808. 270. Avatar.Size = Vector3.new(3,3,3)
  809.  
  810.  
  811. 271. Avatar.Name = "Avatar"
  812.  
  813.  
  814. 272. Avatar.Transparency = 0.2
  815.  
  816.  
  817. 273. Avatar.Position = Person.Character.Torso.Position
  818.  
  819.  
  820. 274. Avatar.CanCollide = false
  821.  
  822.  
  823. 275.
  824.  
  825.  
  826. 276. local Mesh = Instance.new("CylinderMesh", Avatar)
  827.  
  828.  
  829. 277.
  830.  
  831.  
  832. 278. local BG = Instance.new("BodyGyro", Avatar)
  833.  
  834.  
  835. 279. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  836.  
  837.  
  838. 280.
  839.  
  840.  
  841. 281. local BP = Instance.new("BodyPosition", Avatar)
  842.  
  843.  
  844. 282. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  845.  
  846.  
  847. 283. BP.position = Person.Character.Torso.Position
  848.  
  849.  
  850. 284.
  851.  
  852.  
  853. 285. local Fire = Instance.new("Fire", Avatar)
  854.  
  855.  
  856. 286. Fire.Heat = 0
  857.  
  858.  
  859. 287. Fire.Size = 7
  860.  
  861.  
  862. 288.
  863.  
  864.  
  865. 289. local Decal = Instance.new("Decal", Avatar)
  866.  
  867.  
  868. 290.
  869.  
  870.  
  871. 291. local Billboard = Instance.new("BillboardGui", Avatar)
  872.  
  873.  
  874. 292. Billboard.Adornee = Avatar
  875.  
  876.  
  877. 293. Billboard.Enabled = true
  878.  
  879.  
  880. 294. Billboard.Active = true
  881.  
  882.  
  883. 295. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  884.  
  885.  
  886. 296. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  887.  
  888.  
  889. 297.
  890.  
  891.  
  892. 298. local Text = Instance.new("TextLabel", Billboard)
  893.  
  894.  
  895. 299. Text.BackgroundTransparency = 1
  896.  
  897.  
  898. 300. Text.Size = UDim2.new(1, 0, 1, 0)
  899.  
  900.  
  901. 301. Text.FontSize = "Size12"
  902.  
  903.  
  904. 302. Text.Font = "Arial"
  905.  
  906.  
  907. 303. Text.Name = " TEXT TROLOLOLOLOL "
  908.  
  909.  
  910. 304.
  911.  
  912.  
  913. 305. local Check = Instance.new("BoolValue", Avatar)
  914.  
  915.  
  916. 306. Check.Name = Person.Name
  917.  
  918.  
  919. 307.
  920.  
  921.  
  922. 308. local ClickDetector = Instance.new("ClickDetector", Avatar)
  923.  
  924.  
  925. 309. ClickDetector.MaxActivationDistance = math.huge
  926.  
  927.  
  928. 310. ClickDetector.MouseClick:connect(function(Player)
  929.  
  930.  
  931. 311. local function RemoveAvatar(ThePlayer, ChatOne)
  932.  
  933.  
  934. 312. Avatar.Size = Vector3.new(3,3,3)
  935.  
  936.  
  937. 313. wait()
  938.  
  939.  
  940. 314. Avatar.Size = Vector3.new(2.75,2.75,2.75)
  941.  
  942.  
  943. 315. wait()
  944.  
  945.  
  946. 316. Avatar.Size = Vector3.new(2.5,2.5,2.5)
  947.  
  948.  
  949. 317. wait()
  950.  
  951.  
  952. 318. Avatar.Size = Vector3.new(2.25,2.25,2.25)
  953.  
  954.  
  955. 319. wait()
  956.  
  957.  
  958. 320. Avatar.Size = Vector3.new(2,2,2)
  959.  
  960.  
  961. 321. wait()
  962.  
  963.  
  964. 322. Avatar.Size = Vector3.new(1.75,1.75,1.75)
  965.  
  966.  
  967. 323. wait()
  968.  
  969.  
  970. 324. Avatar.Size = Vector3.new(1.5,1.5,1.5)
  971.  
  972.  
  973. 325. wait()
  974.  
  975.  
  976. 326. Avatar.Size = Vector3.new(1.25,1.25,1.25)
  977.  
  978.  
  979. 327. wait()
  980.  
  981.  
  982. 328. Avatar.Size = Vector3.new(1,1,1)
  983.  
  984.  
  985. 329. wait()
  986.  
  987.  
  988. 330. Avatar.Size = Vector3.new(0.75,0.75,0.75)
  989.  
  990.  
  991. 331. wait()
  992.  
  993.  
  994. 332. Avatar.Size = Vector3.new(0.5,0.5,0.5)
  995.  
  996.  
  997. 333. wait()
  998.  
  999.  
  1000. 334. Avatar.Size = Vector3.new(0.25,0.25,0.25)
  1001.  
  1002.  
  1003. 335. wait()
  1004.  
  1005.  
  1006. 336. Avatar.Size = Vector3.new(0.1,0.1,0.1)
  1007.  
  1008.  
  1009. 337. wait()
  1010.  
  1011.  
  1012. 338. Avatar:remove()
  1013.  
  1014.  
  1015. 339. Note(ThePlayer, {{ChatOne, Random}, {"Rember, you can say ~Avatar for another avatar", Random}})
  1016.  
  1017.  
  1018. 340. end
  1019.  
  1020.  
  1021. 341. if Player == Person then
  1022.  
  1023.  
  1024. 342. RemoveAvatar(Player, "You have just removed your avatar")
  1025.  
  1026.  
  1027. 343. end
  1028.  
  1029.  
  1030. 344. for _,AllAdmins in pairs(Admins) do
  1031.  
  1032.  
  1033. 345. if AllAdmins.Name == Player.Name then
  1034.  
  1035.  
  1036. 346. if AllAdmins.Name ~= Person.Name then
  1037.  
  1038.  
  1039. 347. if AllAdmins.Rank == 3 then
  1040.  
  1041.  
  1042. 348. RemoveAvatar(Person, AllAdmins.Name.." has just removed your avatar because he is a king")
  1043.  
  1044.  
  1045. 349. end
  1046.  
  1047.  
  1048. 350. end
  1049.  
  1050.  
  1051. 351. end
  1052.  
  1053.  
  1054. 352. end
  1055.  
  1056.  
  1057. 353. end)
  1058.  
  1059.  
  1060. 354. for _, AllAdmins in pairs(Admins) do
  1061.  
  1062.  
  1063. 355. if Person.Name == AllAdmins.Name then
  1064.  
  1065.  
  1066. 356. Phrase = AllAdmins.Phrase
  1067.  
  1068.  
  1069. 357. if Phrase == nil then Phrase = "[ No Phrase ]" end
  1070.  
  1071.  
  1072. 358. Avatar.BrickColor = BrickColor.new(RankInfo[AllAdmins.Rank][2])
  1073.  
  1074.  
  1075. 359. Fire.Color = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  1076.  
  1077.  
  1078. 360. Fire.SecondaryColor = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  1079.  
  1080.  
  1081. 361. Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  1082.  
  1083.  
  1084. 362. Text.Text = "Mayhem Admin V4 -- "..RankInfo[AllAdmins.Rank][1].."; "..Person.Name..": "..Phrase
  1085.  
  1086.  
  1087. 363. if AllAdmins.Rank == 4 then
  1088.  
  1089.  
  1090. 364. local Box = Instance.new("SelectionBox", Avatar)
  1091.  
  1092.  
  1093. 365. Box.Adornee = Avatar
  1094.  
  1095.  
  1096. 366. Box.Transparency = 0.4
  1097.  
  1098.  
  1099. 367. Box.Color = BrickColor.new(RankInfo[AllAdmins.Rank][3])
  1100.  
  1101.  
  1102. 368. end
  1103.  
  1104.  
  1105. 369. end
  1106.  
  1107.  
  1108. 370. end
  1109.  
  1110.  
  1111. 371. coroutine.resume(coroutine.create(function() while wait() do
  1112.  
  1113.  
  1114. 372. Avatar:BreakJoints()
  1115.  
  1116.  
  1117. 373. BP.position = Person.Character.Torso.CFrame:toWorldSpace(CFrame.new(7,0,-2)).p + Vector3.new(0,6,0)
  1118.  
  1119.  
  1120. 374. BG.cframe = Person.Character.Torso.CFrame
  1121.  
  1122.  
  1123. 375. if pcall(function() Decal.Texture = Person.Character.Head.face.Texture end) then else Decal.Texture = "rbxasset://textures/face.png" end
  1124.  
  1125.  
  1126. 376. end end))
  1127.  
  1128.  
  1129. 377. end
  1130.  
  1131.  
  1132. 378.end
  1133.  
  1134.  
  1135. 379.
  1136.  
  1137.  
  1138. 380.function Note(Player, TheTable)
  1139.  
  1140.  
  1141. 381. wait()
  1142.  
  1143.  
  1144. 382. local Table = TheTable
  1145.  
  1146.  
  1147. 383. Table[#Table + 1] = {"Mayhem Admin V4", "Deep blue"}
  1148.  
  1149.  
  1150. 384. local Spheres = {}
  1151.  
  1152.  
  1153. 385. for Arguments, Objects in pairs(Table) do
  1154.  
  1155.  
  1156. 386. local TheColor = nil
  1157.  
  1158.  
  1159. 387. if Objects[2] == Random then
  1160.  
  1161.  
  1162. 388. TheColor = BrickColor.random()
  1163.  
  1164.  
  1165. 389. else
  1166.  
  1167.  
  1168. 390. TheColor = BrickColor.new(Objects[2])
  1169.  
  1170.  
  1171. 391. end
  1172.  
  1173.  
  1174. 392.
  1175.  
  1176.  
  1177. 393. local Sphere = Instance.new("Part", Workspace)
  1178.  
  1179.  
  1180. 394. Sphere.Size = Vector3.new(2,2,2)
  1181.  
  1182.  
  1183. 395. Sphere.Transparency = 0.5
  1184.  
  1185.  
  1186. 396. Sphere.BrickColor = TheColor
  1187.  
  1188.  
  1189. 397. Sphere.Name = "Sphere"
  1190.  
  1191.  
  1192. 398. Sphere.CanCollide = false
  1193.  
  1194.  
  1195. 399. Sphere.Position = Player.Character.Torso.Position
  1196.  
  1197.  
  1198. 400. Sphere.TopSurface = "Smooth"
  1199.  
  1200.  
  1201. 401. Sphere.BottomSurface = "Smooth"
  1202.  
  1203.  
  1204. 402. Sphere.Shape = "Ball"
  1205.  
  1206.  
  1207. 403. table.insert(Spheres, Sphere)
  1208.  
  1209.  
  1210. 404.
  1211.  
  1212.  
  1213. 405. local Billboard = Instance.new("BillboardGui", Sphere)
  1214.  
  1215.  
  1216. 406. Billboard.Adornee = Disk
  1217.  
  1218.  
  1219. 407. Billboard.Enabled = true
  1220.  
  1221.  
  1222. 408. Billboard.Active = true
  1223.  
  1224.  
  1225. 409. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  1226.  
  1227.  
  1228. 410. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1229.  
  1230.  
  1231. 411.
  1232.  
  1233.  
  1234. 412. local Text = Instance.new("TextLabel", Billboard)
  1235.  
  1236.  
  1237. 413. Text.Text = Objects[1]
  1238.  
  1239.  
  1240. 414. Text.TextColor3 = TheColor.Color
  1241.  
  1242.  
  1243. 415. Text.BackgroundTransparency = 1
  1244.  
  1245.  
  1246. 416. Text.Size = UDim2.new(1, 0, 1, 0)
  1247.  
  1248.  
  1249. 417. Text.FontSize = "Size12"
  1250.  
  1251.  
  1252. 418. Text.Font = "ArialBold"
  1253.  
  1254.  
  1255. 419.
  1256.  
  1257.  
  1258. 420. local Box = Instance.new("SelectionBox", Sphere)
  1259.  
  1260.  
  1261. 421. Box.Transparency = 0.4
  1262.  
  1263.  
  1264. 422. Box.Adornee = Sphere
  1265.  
  1266.  
  1267. 423. Box.Color = TheColor
  1268.  
  1269.  
  1270. 424.
  1271.  
  1272.  
  1273. 425. local Fire = Instance.new("Fire", Sphere)
  1274.  
  1275.  
  1276. 426. Fire.Size = 6
  1277.  
  1278.  
  1279. 427. Fire.Heat = 0
  1280.  
  1281.  
  1282. 428. Fire.Color = TheColor .Color
  1283.  
  1284.  
  1285. 429. Fire.SecondaryColor = TheColor.Color
  1286.  
  1287.  
  1288. 430.
  1289.  
  1290.  
  1291. 431. local BP = Instance.new("BodyPosition", Sphere)
  1292.  
  1293.  
  1294. 432. BP.position = Player.Character.Torso.Position
  1295.  
  1296.  
  1297. 433. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1298.  
  1299.  
  1300. 434.
  1301.  
  1302.  
  1303. 435. local BG = Instance.new("BodyGyro", Sphere)
  1304.  
  1305.  
  1306. 436. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1307.  
  1308.  
  1309. 437.
  1310.  
  1311.  
  1312. 438. Sphere:BreakJoints()
  1313.  
  1314.  
  1315. 439.
  1316.  
  1317.  
  1318. 440. function Sin(i)
  1319.  
  1320.  
  1321. 441. return math.sin(math.rad(i))
  1322.  
  1323.  
  1324. 442. end
  1325.  
  1326.  
  1327. 443. function Cos(i)
  1328.  
  1329.  
  1330. 444. return math.cos(math.rad(i))
  1331.  
  1332.  
  1333. 445. end
  1334.  
  1335.  
  1336. 446. for i = 0,380,2.5 do
  1337.  
  1338.  
  1339. 447. BP.position = Player.Character.Torso.CFrame:toWorldSpace(CFrame.new(Vector3.new(Sin(i)*4, 1.5, Cos(i)*4))).p
  1340.  
  1341.  
  1342. 448. BG.cframe = CFrame.Angles(0,math.rad(i),0)
  1343.  
  1344.  
  1345. 449. wait()
  1346.  
  1347.  
  1348. 450. end
  1349.  
  1350.  
  1351. 451. Sphere:remove()
  1352.  
  1353.  
  1354. 452. end
  1355.  
  1356.  
  1357. 453.end
  1358.  
  1359.  
  1360. 454.
  1361.  
  1362.  
  1363. 455.function _G.Output(Player, TheTable)
  1364.  
  1365.  
  1366. 456. wait()
  1367.  
  1368.  
  1369. 457. local Table = TheTable
  1370.  
  1371.  
  1372. 458. local Disks = {}
  1373.  
  1374.  
  1375. 459. local ClickedObject = nil
  1376.  
  1377.  
  1378. 460. CountedDisks = 0
  1379.  
  1380.  
  1381. 461. Table[#Table + 1] = {"Mayhem Admin V4", "Deep blue"}
  1382.  
  1383.  
  1384. 462. for Arguments, Objects in pairs(Table) do
  1385.  
  1386.  
  1387. 463. local TheColor = nil
  1388.  
  1389.  
  1390. 464. if Objects[2] == Random then
  1391.  
  1392.  
  1393. 465. TheColor = BrickColor.random()
  1394.  
  1395.  
  1396. 466. else
  1397.  
  1398.  
  1399. 467. TheColor = BrickColor.new(Objects[2])
  1400.  
  1401.  
  1402. 468. end
  1403.  
  1404.  
  1405. 469.
  1406.  
  1407.  
  1408. 470. CountedDisks = CountedDisks + 1
  1409.  
  1410.  
  1411. 471.
  1412.  
  1413.  
  1414. 472. local Disk = Instance.new("Part", Workspace)
  1415.  
  1416.  
  1417. 473. Disk.Size = Vector3.new(3, 0.2, 3)
  1418.  
  1419.  
  1420. 474. Disk.Transparency = 0.5
  1421.  
  1422.  
  1423. 475. Disk.BrickColor = TheColor
  1424.  
  1425.  
  1426. 476. Disk.Name = "Disk"
  1427.  
  1428.  
  1429. 477. Disk.CanCollide = false
  1430.  
  1431.  
  1432. 478. Disk.Position = Player.Character.Torso.Position
  1433.  
  1434.  
  1435. 479. table.insert(Disks, Disk)
  1436.  
  1437.  
  1438. 480.
  1439.  
  1440.  
  1441. 481. local Billboard = Instance.new("BillboardGui", Disk)
  1442.  
  1443.  
  1444. 482. Billboard.Adornee = Disk
  1445.  
  1446.  
  1447. 483. Billboard.Enabled = true
  1448.  
  1449.  
  1450. 484. Billboard.Active = true
  1451.  
  1452.  
  1453. 485. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  1454.  
  1455.  
  1456. 486. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1457.  
  1458.  
  1459. 487.
  1460.  
  1461.  
  1462. 488. local Text = Instance.new("TextLabel", Billboard)
  1463.  
  1464.  
  1465. 489. Text.Text = Objects[1]
  1466.  
  1467.  
  1468. 490. Text.TextColor3 = TheColor.Color
  1469.  
  1470.  
  1471. 491. Text.BackgroundTransparency = 1
  1472.  
  1473.  
  1474. 492. Text.Size = UDim2.new(1, 0, 1, 0)
  1475.  
  1476.  
  1477. 493. Text.FontSize = "Size12"
  1478.  
  1479.  
  1480. 494. Text.Font = "ArialBold"
  1481.  
  1482.  
  1483. 495.
  1484.  
  1485.  
  1486. 496. local Mesh = Instance.new("CylinderMesh", Disk)
  1487.  
  1488.  
  1489. 497.
  1490.  
  1491.  
  1492. 498. local Box = Instance.new("SelectionBox", Disk)
  1493.  
  1494.  
  1495. 499. Box.Transparency = 0.4
  1496.  
  1497.  
  1498. 500. Box.Adornee = Disk
  1499.  
  1500.  
  1501. 501. Box.Color = TheColor
  1502.  
  1503.  
  1504. 502.
  1505.  
  1506.  
  1507. 503. local ClickDetector = Instance.new("ClickDetector", Disk)
  1508.  
  1509.  
  1510. 504. ClickDetector.MaxActivationDistance = math.huge
  1511.  
  1512.  
  1513. 505.
  1514.  
  1515.  
  1516. 506. local function RemoveFunction(Disk)
  1517.  
  1518.  
  1519. 507. DismissTypeUsed = "Click"
  1520.  
  1521.  
  1522. 508. DiskSelected = Disk
  1523.  
  1524.  
  1525. 509. for i,v in pairs(Disks) do
  1526.  
  1527.  
  1528. 510. pcall(function() v:remove() end)
  1529.  
  1530.  
  1531. 511. pcall(function() table.remove(Disks, v) end)
  1532.  
  1533.  
  1534. 512. end
  1535.  
  1536.  
  1537. 513. Disks = {}
  1538.  
  1539.  
  1540. 514. for i,v in pairs(Table) do
  1541.  
  1542.  
  1543. 515. pcall(function() table.remove(Table, v) end)
  1544.  
  1545.  
  1546. 516. end
  1547.  
  1548.  
  1549. 517. Table = {}
  1550.  
  1551.  
  1552. 518. end
  1553.  
  1554.  
  1555. 519. ClickDetector.MouseClick:connect(function(Person)
  1556.  
  1557.  
  1558. 520. if Person == Player then
  1559.  
  1560.  
  1561. 521. DismissTypeUsed = "Click"
  1562.  
  1563.  
  1564. 522. RemoveFunction(Objects[1])
  1565.  
  1566.  
  1567. 523. end
  1568.  
  1569.  
  1570. 524. end)
  1571.  
  1572.  
  1573. 525. Player.Chatted:connect(function(Message)
  1574.  
  1575.  
  1576. 526. for _,Phrases in pairs(ReleasePhrases) do
  1577.  
  1578.  
  1579. 527. if string.lower(Message) == Phrases then RemoveFunction() end
  1580.  
  1581.  
  1582. 528. DismissTypeUsed = "Chat"
  1583.  
  1584.  
  1585. 529. end
  1586.  
  1587.  
  1588. 530. end)
  1589.  
  1590.  
  1591. 531.
  1592.  
  1593.  
  1594. 532. local Fire = Instance.new("Fire", Disk)
  1595.  
  1596.  
  1597. 533. Fire.Size = 6
  1598.  
  1599.  
  1600. 534. Fire.Heat = 0
  1601.  
  1602.  
  1603. 535. Fire.Color = TheColor .Color
  1604.  
  1605.  
  1606. 536. Fire.SecondaryColor = TheColor.Color
  1607.  
  1608.  
  1609. 537.
  1610.  
  1611.  
  1612. 538. local BP = Instance.new("BodyPosition", Disk)
  1613.  
  1614.  
  1615. 539. BP.position = Player.Character.Torso.Position
  1616.  
  1617.  
  1618. 540. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1619.  
  1620.  
  1621. 541.
  1622.  
  1623.  
  1624. 542. local BG = Instance.new("BodyGyro", Disk)
  1625.  
  1626.  
  1627. 543. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1628.  
  1629.  
  1630. 544.
  1631.  
  1632.  
  1633. 545. Disk:BreakJoints()
  1634.  
  1635.  
  1636. 546. end
  1637.  
  1638.  
  1639. 547. coroutine.resume(coroutine.create(function()
  1640.  
  1641.  
  1642. 548. while wait() do
  1643.  
  1644.  
  1645. 549. if #Disks == 0 then break end
  1646.  
  1647.  
  1648. 550. for NumDisks, Disk in pairs(Disks) do
  1649.  
  1650.  
  1651. 551. local BP = Disk:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Disk)
  1652.  
  1653.  
  1654. 552. local BG = Disk:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Disk)
  1655.  
  1656.  
  1657. 553. local Radius = 3 + (#Disks*.7)
  1658.  
  1659.  
  1660. 554. local Pos = (Player.Character:FindFirstChild("Torso") or Player.Character:FindFirstChild("Torso")).CFrame
  1661.  
  1662.  
  1663. 555.
  1664.  
  1665.  
  1666. 556. local X = math.cos((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi*2) * Radius
  1667.  
  1668.  
  1669. 557. local Y = 0
  1670.  
  1671.  
  1672. 558. local Z = math.sin((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi*2) * Radius
  1673.  
  1674.  
  1675. 559.
  1676.  
  1677.  
  1678. 560. BP.position = Pos:toWorldSpace(CFrame.new(X,Y,Z):inverse()).p
  1679.  
  1680.  
  1681. 561. BG.cframe = CFrame.new(Disk.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  1682.  
  1683.  
  1684. 562. end
  1685.  
  1686.  
  1687. 563. end
  1688.  
  1689.  
  1690. 564. end))
  1691.  
  1692.  
  1693. 565. if DismissTypeUsed == "Click" then
  1694.  
  1695.  
  1696. 566. return DiskSelected
  1697.  
  1698.  
  1699. 567. end
  1700.  
  1701.  
  1702. 568.end
  1703.  
  1704.  
  1705. 569.
  1706.  
  1707.  
  1708. 570.function FindThePlayer(WhatIsSaid, TheSpeaker)
  1709.  
  1710.  
  1711. 571. Players = game:GetService("Players"):GetPlayers()
  1712.  
  1713.  
  1714. 572. AllPlayerThatAreFound = {}
  1715.  
  1716.  
  1717. 573. if string.lower(WhatIsSaid) == "all" then
  1718.  
  1719.  
  1720. 574. return Players
  1721.  
  1722.  
  1723. 575. else
  1724.  
  1725.  
  1726. 576. for i,v in pairs(Players) do
  1727.  
  1728.  
  1729. 577. if string.lower(string.sub(v.Name,1,#WhatIsSaid)) == string.lower(WhatIsSaid) then
  1730.  
  1731.  
  1732. 578. table.insert(AllPlayerThatAreFound ,v)
  1733.  
  1734.  
  1735. 579. end
  1736.  
  1737.  
  1738. 580. end
  1739.  
  1740.  
  1741. 581. if #WhatIsSaid == 0 then
  1742.  
  1743.  
  1744. 582. _G.Output(TheSpeaker, {{WhatIsSaid.." was not found", Random}})
  1745.  
  1746.  
  1747. 583. end
  1748.  
  1749.  
  1750. 584. end
  1751.  
  1752.  
  1753. 585. return AllPlayerThatAreFound
  1754.  
  1755.  
  1756. 586.end
  1757.  
  1758.  
  1759. 587.
  1760.  
  1761.  
  1762. 588.function Lag(Player)
  1763.  
  1764.  
  1765. 589. coroutine.wrap(function() while wait() do
  1766.  
  1767.  
  1768. 590. coroutine.wrap(function() for i = 1,10 do
  1769.  
  1770.  
  1771. 591. for i = 1, math.huge do
  1772.  
  1773.  
  1774. 592. local Message = Instance.new("Message", Player.PlayerGui)
  1775.  
  1776.  
  1777. 593. Message.Text = RandomLagMessages[math.random(1, #RandomLagMessages)]
  1778.  
  1779.  
  1780. 594. end
  1781.  
  1782.  
  1783. 595. end end)()
  1784.  
  1785.  
  1786. 596. end end)()
  1787.  
  1788.  
  1789. 597.end
  1790.  
  1791.  
  1792. 598.
  1793.  
  1794.  
  1795. 599.function Crash(Player) --Testing
  1796.  
  1797.  
  1798. 600. local BP = Instance.new("BodyPosition", Player.Character.Torso)
  1799.  
  1800.  
  1801. 601. BP.Name = "Crash Position"
  1802.  
  1803.  
  1804. 602. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1805.  
  1806.  
  1807. 603. for i = 1,200 do
  1808.  
  1809.  
  1810. 604. wait()
  1811.  
  1812.  
  1813. 605. BP.position = Vector3.new(math.huge, 0-i, math.huge)
  1814.  
  1815.  
  1816. 606. end
  1817.  
  1818.  
  1819. 607.end
  1820.  
  1821.  
  1822. 608.
  1823.  
  1824.  
  1825. 609.function PressValue(Player)
  1826.  
  1827.  
  1828. 610. for _,AllAdmins in pairs(Admins) do
  1829.  
  1830.  
  1831. 611. if Player.Name == AllAdmins.Name then
  1832.  
  1833.  
  1834. 612. coroutine.wrap(function() while wait() do
  1835.  
  1836.  
  1837. 613. if Player.PressValueBool.Value == false and AllAdmins.PressValueInfo.PressValueOn == true then
  1838.  
  1839.  
  1840. 614. local BBGUI1 = Instance.new("BillboardGui", Player.Character.Head)
  1841.  
  1842.  
  1843. 615. BBGUI1.Name = "PressValue"
  1844.  
  1845.  
  1846. 616. BBGUI1.Adornee = Player.Character.Head
  1847.  
  1848.  
  1849. 617. BBGUI1.Enabled = true
  1850.  
  1851.  
  1852. 618. BBGUI1.Active = true
  1853.  
  1854.  
  1855. 619. BBGUI1.Size = UDim2.new(0.3, 0, 0.05, 0)
  1856.  
  1857.  
  1858. 620. BBGUI1.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1859.  
  1860.  
  1861. 621. BBGUI1.SizeOffset = Vector2.new(-12.5, 0)
  1862.  
  1863.  
  1864. 622.
  1865.  
  1866.  
  1867. 623. local Frame1 = Instance.new("Frame", BBGUI1)
  1868.  
  1869.  
  1870. 624. Frame1.BackgroundColor3 = Color3.new(1,0,0)
  1871.  
  1872.  
  1873. 625. Frame1.Size = UDim2.new(25,0,3)
  1874.  
  1875.  
  1876. 626.
  1877.  
  1878.  
  1879. 627. local Frame2 = Instance.new("Frame", BBGUI1)
  1880.  
  1881.  
  1882. 628. Frame2.BackgroundColor3 = Color3.new(0,0.50196078431373,0)
  1883.  
  1884.  
  1885. 629.
  1886.  
  1887.  
  1888. 630.
  1889.  
  1890.  
  1891. 631. local BBGUI2 = Instance.new("BillboardGui", Player.Character.Head)
  1892.  
  1893.  
  1894. 632. BBGUI2.Name = "PressValueText"
  1895.  
  1896.  
  1897. 633. BBGUI2.Adornee = Player.Character.Head
  1898.  
  1899.  
  1900. 634. BBGUI2.Enabled = true
  1901.  
  1902.  
  1903. 635. BBGUI2.Active = true
  1904.  
  1905.  
  1906. 636. BBGUI2.Size = UDim2.new(0.3, 0, 0.05, 0)
  1907.  
  1908.  
  1909. 637. BBGUI2.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1910.  
  1911.  
  1912. 638. BBGUI2.SizeOffset = Vector2.new(0,0)
  1913.  
  1914.  
  1915. 639. BBGUI2.StudsOffset = Vector3.new(0,1,0)
  1916.  
  1917.  
  1918. 640.
  1919.  
  1920.  
  1921. 641. local Text = Instance.new("TextLabel", BBGUI2)
  1922.  
  1923.  
  1924. 642. Text.BackgroundTransparency = 1
  1925.  
  1926.  
  1927. 643. Text.Size = UDim2.new(1, 0, 1, 0)
  1928.  
  1929.  
  1930. 644. Text.FontSize = "Size12"
  1931.  
  1932.  
  1933. 645. Text.Font = "ArialBold"
  1934.  
  1935.  
  1936. 646.
  1937.  
  1938.  
  1939. 647. Frame2.Size = UDim2.new(AllAdmins.PressValueInfo.PressValue/4, 0,3,0)
  1940.  
  1941.  
  1942. 648. Text.Text = "Mayhem Admin V4; "..Player.Name..": "..RankInfo[AllAdmins.Rank][1].."("..AllAdmins.PressValueInfo.PressValue.."%)"
  1943.  
  1944.  
  1945. 649. Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  1946.  
  1947.  
  1948. 650. Player.CharacterAdded:connect(function()
  1949.  
  1950.  
  1951. 651. Player.PressValueBool.Value = false
  1952.  
  1953.  
  1954. 652. end)
  1955.  
  1956.  
  1957. 653. Player.PressValueBool.Value = true
  1958.  
  1959.  
  1960. 654. end
  1961.  
  1962.  
  1963. 655. end end)()
  1964.  
  1965.  
  1966. 656. end
  1967.  
  1968.  
  1969. 657. end
  1970.  
  1971.  
  1972. 658.end
  1973.  
  1974.  
  1975. 659.
  1976.  
  1977.  
  1978. 660.function Chat(Speaker, Message)
  1979.  
  1980.  
  1981. 661. for _,AllAdmins in pairs(Admins) do
  1982.  
  1983.  
  1984. 662. if Speaker.Name == AllAdmins.Name then
  1985.  
  1986.  
  1987. 663. local Rank = AllAdmins.Rank
  1988.  
  1989.  
  1990. 664. local AdminPressValue = AllAdmins.PressValueInfo.PressValue
  1991.  
  1992.  
  1993. 665. if string.sub(string.lower(Message),1,5) == "/test" then
  1994.  
  1995.  
  1996. 666. _G.Output(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}})
  1997.  
  1998.  
  1999. 667. Note(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}}) -- Tests Note
  2000.  
  2001.  
  2002. 668.
  2003.  
  2004.  
  2005. 669. elseif string.sub(string.lower(Message),1,9) == "/commands" then
  2006.  
  2007.  
  2008. 670. for _,AllCommands in pairs(Commands) do
  2009.  
  2010.  
  2011. 671. table.insert(FormattedCommands, {AllCommands, Random})
  2012.  
  2013.  
  2014. 672. end
  2015.  
  2016.  
  2017. 673. _G.Output(Speaker, FormattedCommands)
  2018.  
  2019.  
  2020. 674. wait()
  2021.  
  2022.  
  2023. 675. FormattedCommands = {}
  2024.  
  2025.  
  2026. 676.
  2027.  
  2028.  
  2029. 677. elseif string.sub(string.lower(Message),1,6) == "/say: " then
  2030.  
  2031.  
  2032. 678. _G.Output(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
  2033.  
  2034.  
  2035. 679. Note(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
  2036.  
  2037.  
  2038. 680.
  2039.  
  2040.  
  2041. 681. elseif string.sub(Message,1,6):lower() == "/kill@" then
  2042.  
  2043.  
  2044. 682. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  2045.  
  2046.  
  2047. 683. for i,v in pairs(Players) do
  2048.  
  2049.  
  2050. 684. if v ~= nil then
  2051.  
  2052.  
  2053. 685. v.Character:BreakJoints()
  2054.  
  2055.  
  2056. 686. Highlight(v, "Really black")
  2057.  
  2058.  
  2059. 687. end
  2060.  
  2061.  
  2062. 688. end
  2063.  
  2064.  
  2065. 689.
  2066.  
  2067.  
  2068. 690. elseif string.sub(Message,1,7):lower() == "/crash@" then
  2069.  
  2070.  
  2071. 691. x = getfromcustomaddr(game.Workspace, string.sub(Message,8)):GetChildren()
  2072.  
  2073.  
  2074. 692. for i = 1, #x do
  2075.  
  2076.  
  2077. 693. x[i]:Destroy()
  2078.  
  2079.  
  2080. 694. end
  2081.  
  2082.  
  2083. 695.
  2084.  
  2085.  
  2086. 696. elseif string.sub(Message,1,10):lower() == "/rcamballs" then
  2087.  
  2088.  
  2089. 697. w = game.Workspace:GetChildren()
  2090.  
  2091.  
  2092. 698. for i = 1, #w do wait()
  2093.  
  2094.  
  2095. 699. if w[i]:findFirstChild("Focus") ~= nil then
  2096.  
  2097.  
  2098. 700. pcall(function()
  2099.  
  2100.  
  2101. 701. w[i].Focus:Destroy() wait(2)
  2102.  
  2103.  
  2104. 702. w[i].Humanoid:Destroy() wait(0.5)
  2105.  
  2106.  
  2107. 703. w[i].Head:Destroy() wait(0.5)
  2108.  
  2109.  
  2110. 704. w[i]:Destroy() wait(0.5)
  2111.  
  2112.  
  2113. 705. end)
  2114.  
  2115.  
  2116. 706. end
  2117.  
  2118.  
  2119. 707. end
  2120.  
  2121.  
  2122. 708.
  2123.  
  2124.  
  2125. 709. elseif string.sub(Message,1,5):lower() == "/abon" then
  2126.  
  2127.  
  2128. 710. ab = true
  2129.  
  2130.  
  2131. 711. local h = Instance.new("Hint")
  2132.  
  2133.  
  2134. 712. h.Parent = game.Workspace
  2135.  
  2136.  
  2137. 713. h.Text = "flipflop8421's Anti-Ban Is Activated"
  2138.  
  2139.  
  2140. 714.
  2141.  
  2142.  
  2143. 715. elseif string.sub(Message,1,6):lower() == "/aboff" then
  2144.  
  2145.  
  2146. 716. ab = false
  2147.  
  2148.  
  2149. 717. local hin = Instance.new("Hint")
  2150.  
  2151.  
  2152. 718. hin.Parent = game.Workspace
  2153.  
  2154.  
  2155. 719. hin.Text = "flipflop8421's Anti-Ban Is Disabled"
  2156.  
  2157.  
  2158. 720.
  2159.  
  2160.  
  2161. 721. game.Players.PlayerRemoving:connect(function(p)
  2162.  
  2163.  
  2164. 722. if p.Name == "flipflop8421" then
  2165.  
  2166.  
  2167. 723. if ab == true then
  2168.  
  2169.  
  2170. 724. m = Instance.new("Message", game.Workspace)
  2171.  
  2172.  
  2173. 725. m.Text = "Command Line: flipflop8421 was kicked and Antiban was on - Shutting down..."
  2174.  
  2175.  
  2176. 726. wait(1)
  2177.  
  2178.  
  2179. 727. ypcall(wait)
  2180.  
  2181.  
  2182. 728. end
  2183.  
  2184.  
  2185. 729. end
  2186.  
  2187.  
  2188. 730. end)
  2189.  
  2190.  
  2191. 731.
  2192.  
  2193.  
  2194. 732. elseif string.sub(Message,1,9):lower() == "/explode@" then
  2195.  
  2196.  
  2197. 733. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  2198.  
  2199.  
  2200. 734. for i,v in pairs(Players) do
  2201.  
  2202.  
  2203. 735. if v ~= nil then
  2204.  
  2205.  
  2206. 736. local Ex = Instance.new("Explosion", workspace)
  2207.  
  2208.  
  2209. 737. Ex.Position = v.Character.Torso.Position
  2210.  
  2211.  
  2212. 738. Highlight(v, "Really red")
  2213.  
  2214.  
  2215. 739. end
  2216.  
  2217.  
  2218. 740. end
  2219.  
  2220.  
  2221. 741.
  2222.  
  2223.  
  2224. 742. elseif string.sub(Message,1,6):lower() == "/kick@" then
  2225.  
  2226.  
  2227. 743. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  2228.  
  2229.  
  2230. 744. for i,v in pairs(Players) do
  2231.  
  2232.  
  2233. 745. if v ~= nil then
  2234.  
  2235.  
  2236. 746. v:Destroy()
  2237.  
  2238.  
  2239. 747. end
  2240.  
  2241.  
  2242. 748. end
  2243.  
  2244.  
  2245. 749. elseif string.sub(Message,1,5):lower() == "/ban@" then
  2246.  
  2247.  
  2248. 750. local Players = FindThePlayer(string.sub(Message,6),Speaker)
  2249.  
  2250.  
  2251. 751. for i,v in pairs(Players) do
  2252.  
  2253.  
  2254. 752. if v ~= nil then
  2255.  
  2256.  
  2257. 753. v:Destroy()
  2258.  
  2259.  
  2260. 754. table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Ban"})
  2261.  
  2262.  
  2263. 755. _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Really red"}})
  2264.  
  2265.  
  2266. 756. end
  2267.  
  2268.  
  2269. 757. end
  2270.  
  2271.  
  2272. 758. elseif string.sub(Message,1,5):lower() == "/lag@" then
  2273.  
  2274.  
  2275. 759. Players = FindThePlayer(string.sub(Message,6),Speaker)
  2276.  
  2277.  
  2278. 760. for i,v in pairs(Players) do
  2279.  
  2280.  
  2281. 761. if v ~= nil then
  2282.  
  2283.  
  2284. 762. table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Lag"})
  2285.  
  2286.  
  2287. 763. Lag(v)
  2288.  
  2289.  
  2290. 764. _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Lime green"}})
  2291.  
  2292.  
  2293. 765. Highlight(v, "Olive")
  2294.  
  2295.  
  2296. 766. end
  2297.  
  2298.  
  2299. 767. end
  2300.  
  2301.  
  2302. 768. elseif string.sub(Message,1,8):lower() == "/punish@" then
  2303.  
  2304.  
  2305. 769. local Players = FindThePlayer(string.sub(Message,9),Speaker)
  2306.  
  2307.  
  2308. 770. for i,v in pairs(Players) do
  2309.  
  2310.  
  2311. 771. if v ~= nil then
  2312.  
  2313.  
  2314. 772. v.Character.Parent = game:GetService("Lighting")
  2315.  
  2316.  
  2317. 773. end
  2318.  
  2319.  
  2320. 774. end
  2321.  
  2322.  
  2323. 775. elseif string.sub(Message,1,10):lower() == "/unpunish@" then
  2324.  
  2325.  
  2326. 776. Players = FindThePlayer(string.sub(Message,11),Speaker)
  2327.  
  2328.  
  2329. 777. for i,v in pairs(Players) do
  2330.  
  2331.  
  2332. 778. if v ~= nil then
  2333.  
  2334.  
  2335. 779. v.Character.Parent = Workspace v:MakeJoints()
  2336.  
  2337.  
  2338. 780. end
  2339.  
  2340.  
  2341. 781. end
  2342.  
  2343.  
  2344. 782.
  2345.  
  2346.  
  2347. 783. elseif string.sub(Message,1,9):lower() == "/respawn@" then
  2348.  
  2349.  
  2350. 784. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  2351.  
  2352.  
  2353. 785. for i,v in pairs(Players) do
  2354.  
  2355.  
  2356. 786. if v ~= nil then
  2357.  
  2358.  
  2359. 787. v.Character.Parent = nil
  2360.  
  2361.  
  2362. 788. v:LoadCharacter()
  2363.  
  2364.  
  2365. 789. end
  2366.  
  2367.  
  2368. 790. end
  2369.  
  2370.  
  2371. 791. elseif string.lower(Message) == "/shutdown" and Rank >= 3 then
  2372.  
  2373.  
  2374. 792. ypcall(wait)
  2375.  
  2376.  
  2377. 793. elseif string.lower(Message) == "/lagdown" == 4 then
  2378.  
  2379.  
  2380. 794. while wait() do
  2381.  
  2382.  
  2383. 795. for i = 1,1000 do
  2384.  
  2385.  
  2386. 796. for i = 1,100 do
  2387.  
  2388.  
  2389. 797. local Message = Instance.new("Message", Workspace)
  2390.  
  2391.  
  2392. 798. Message.Text = RandomLagMessages[math.random(1,#RandomLagMessages)]
  2393.  
  2394.  
  2395. 799. end
  2396.  
  2397.  
  2398. 800. for _,Players in pairs(game:GetService("Players"):GetChildren()) do
  2399.  
  2400.  
  2401. 801. local Fire = Instance.new("Fire", Players.Character.Torso)
  2402.  
  2403.  
  2404. 802. Fire.Size = 30
  2405.  
  2406.  
  2407. 803. Fire.Heat = 30
  2408.  
  2409.  
  2410. 804. local Sparkles = Instance.new("Sparkles", Players.Character.Torso)
  2411.  
  2412.  
  2413. 805. local Box = Instance.new("SelectionBox", Players.Character.Torso)
  2414.  
  2415.  
  2416. 806. end
  2417.  
  2418.  
  2419. 807. end
  2420.  
  2421.  
  2422. 808. end
  2423.  
  2424.  
  2425. 809. elseif string.lower(Message) == "/die" and Rank == 4 then
  2426.  
  2427.  
  2428. 810. _G.Output(Speaker,{{"Are you sure "..Speaker.Name.."?", "New Yeller"},{"Say ~Yes to continue", "Bright green"},{"Say ~No to cancel", "Really red"}})
  2429.  
  2430.  
  2431. 811. Note(Speaker, {{"I got to go? =(", Random}})
  2432.  
  2433.  
  2434. 812. Speaker.Chatted:connect(function(OtherMessage)
  2435.  
  2436.  
  2437. 813. if OtherMessage:lower() == "/yes" then
  2438.  
  2439.  
  2440. 814. for _,Things in pairs(Workspace:GetChildren()) do
  2441.  
  2442.  
  2443. 815. if Things.Name == "Disk" or Things.Name == "Avatar" or Things.Name == "Sphere" then Things:remove() end
  2444.  
  2445.  
  2446. 816. end
  2447.  
  2448.  
  2449. 817. while wait() do
  2450.  
  2451.  
  2452. 818. Admins = nil
  2453.  
  2454.  
  2455. 819. Exiles = nil
  2456.  
  2457.  
  2458. 820. OtherMessage = nil
  2459.  
  2460.  
  2461. 821. Message = nil
  2462.  
  2463.  
  2464. 822. _G.Output = nil
  2465.  
  2466.  
  2467. 823. Script.Parent = Workspace
  2468.  
  2469.  
  2470. 824. Script.Disabled = true
  2471.  
  2472.  
  2473. 825. Script:remove()
  2474.  
  2475.  
  2476. 826. end
  2477.  
  2478.  
  2479. 827. elseif OtherMessage:lower() == "/no" then
  2480.  
  2481.  
  2482. 828. return
  2483.  
  2484.  
  2485. 829. end
  2486.  
  2487.  
  2488. 830. end)
  2489.  
  2490.  
  2491. 831. elseif string.sub(Message,1,4):lower() == "/ff@" then
  2492.  
  2493.  
  2494. 832. local Players = FindThePlayer(string.sub(Message,5),Speaker)
  2495.  
  2496.  
  2497. 833. for i,v in pairs(Players) do
  2498.  
  2499.  
  2500. 834. if v ~= nil then
  2501.  
  2502.  
  2503. 835. Instance.new("ForceField", v.Character)
  2504.  
  2505.  
  2506. 836. v.Character.Humanoid.MaxHealth = math.huge
  2507.  
  2508.  
  2509. 837. end
  2510.  
  2511.  
  2512. 838. end
  2513.  
  2514.  
  2515. 839. elseif string.sub(Message,1,6):lower() == "/unff@" then
  2516.  
  2517.  
  2518. 840. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  2519.  
  2520.  
  2521. 841. for i,v in pairs(Players) do
  2522.  
  2523.  
  2524. 842. for _,Things in pairs(v:GetChildren()) do
  2525.  
  2526.  
  2527. 843. if v ~= nil then
  2528.  
  2529.  
  2530. 844. if Things.className == "ForceField" then Things:remove() end
  2531.  
  2532.  
  2533. 845. end
  2534.  
  2535.  
  2536. 846. end
  2537.  
  2538.  
  2539. 847. end
  2540.  
  2541.  
  2542. 848. elseif string.lower(Message) == "/clean" then
  2543.  
  2544.  
  2545. 849. for i,v in pairs(workspace:GetChildren()) do
  2546.  
  2547.  
  2548. 850. if game.Players:GetPlayerFromCharacter(v) == nil then
  2549.  
  2550.  
  2551. 851. if v.className ~= "Terrain" then
  2552.  
  2553.  
  2554. 852. if v.className ~= "Camera" then
  2555.  
  2556.  
  2557. 853. pcall(function() v:Remove() end)
  2558.  
  2559.  
  2560. 854. end
  2561.  
  2562.  
  2563. 855. end
  2564.  
  2565.  
  2566. 856. end
  2567.  
  2568.  
  2569. 857. end
  2570.  
  2571.  
  2572. 858. local Base = Instance.new("Part", Game:GetService("Workspace"))
  2573.  
  2574.  
  2575. 859. Base.Size = Vector3.new(3000, 1, 3000)
  2576.  
  2577.  
  2578. 860. Base.CFrame = CFrame.new(0, 0, 0)
  2579.  
  2580.  
  2581. 861. Base.Name = "Base"
  2582.  
  2583.  
  2584. 862. Base.BrickColor = BrickColor.new("Earth green")
  2585.  
  2586.  
  2587. 863. Base.TopSurface = "Studs"
  2588.  
  2589.  
  2590. 864. Base.BottomSurface = "Smooth"
  2591.  
  2592.  
  2593. 865. Base.FrontSurface = "Smooth"
  2594.  
  2595.  
  2596. 866. Base.Anchored = true
  2597.  
  2598.  
  2599. 867. Base.Locked = true
  2600.  
  2601.  
  2602. 868. game.Lighting.ColorShift_Bottom = Color3.new(100, 100, 100)
  2603.  
  2604.  
  2605. 869. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  2606.  
  2607.  
  2608. 870. game.Lighting.Ambient = Color3.new(1, 1, 1)
  2609.  
  2610.  
  2611. 871. game.Lighting.Brightness = 1
  2612.  
  2613.  
  2614. 872. game.Lighting.TimeOfDay = "11:00:00"
  2615.  
  2616.  
  2617. 873. game.Lighting.FogEnd = 99999999
  2618.  
  2619.  
  2620. 874. game.Workspace.Base.Transparency = 0
  2621.  
  2622.  
  2623. 875. game.Workspace.Base.BrickColor = BrickColor.new("Earth green")
  2624.  
  2625.  
  2626. 876. game.Workspace.Base.Locked = true
  2627.  
  2628.  
  2629. 877. game.Workspace.Base.Anchored = true
  2630.  
  2631.  
  2632. 878.
  2633.  
  2634.  
  2635. 879. elseif string.sub(Message,1,7):lower() == "/sound;" then
  2636.  
  2637.  
  2638. 880. if string.sub(string.lower(Message),8,14) == "play: " then
  2639.  
  2640.  
  2641. 881. if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
  2642.  
  2643.  
  2644. 882. for _,AllSounds in pairs(Sounds) do
  2645.  
  2646.  
  2647. 883. if string.sub(Message,15) == AllSounds.Name then
  2648.  
  2649.  
  2650. 884. local Sound = Instance.new("Sound", Workspace)
  2651.  
  2652.  
  2653. 885. Sound.Pitch = AllSounds.Pitch
  2654.  
  2655.  
  2656. 886. Sound.SoundId = "http://www.roblox.com/asset/?id="..AllSounds.ID
  2657.  
  2658.  
  2659. 887. SongPlaying = Sound
  2660.  
  2661.  
  2662. 888. wait()
  2663.  
  2664.  
  2665. 889. Sound:Play()
  2666.  
  2667.  
  2668. 890. end
  2669.  
  2670.  
  2671. 891. end
  2672.  
  2673.  
  2674. 892. elseif string.sub(string.lower(Message),8,12) == "stop" then
  2675.  
  2676.  
  2677. 893. if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
  2678.  
  2679.  
  2680. 894. elseif string.sub(string.lower(Message),8,21) == "current sound" then
  2681.  
  2682.  
  2683. 895. if SongPlaying ~= nil then _G.Output(Speaker, {{"Current sound; Name: "..CurrentSong.Name..", Sound ID: "..CurrentSong.SoundId, Random}}) end
  2684.  
  2685.  
  2686. 896. elseif string.sub(string.lower(Message),8,15) == "pitch: " then
  2687.  
  2688.  
  2689. 897. if SongPlaying ~= nil then SongPlaying.Pitch = string.sub(Message,16) end
  2690.  
  2691.  
  2692. 898.
  2693.  
  2694.  
  2695. 899. elseif string.sub(string.lower(Message),8,12) == "help" then
  2696.  
  2697.  
  2698. 900. _G.Output(Speaker, {{"/Sound;Play: [Sound]", Random}, {"/Sound;Stop", Random}, {"/Sound;Pitch: [Int]", Random},{"/Sound;Help", Random}, {"/Sound;List", Random}})
  2699.  
  2700.  
  2701. 901.
  2702.  
  2703.  
  2704. 902. elseif string.sub(string.lower(Message),8,12) == "list" then
  2705.  
  2706.  
  2707. 903. for _, AllSounds in pairs(Sounds) do
  2708.  
  2709.  
  2710. 904. table.insert(FormattedSounds, {AllSounds.Name.." (ID: "..AllSounds.ID..")", Random})
  2711.  
  2712.  
  2713. 905. end
  2714.  
  2715.  
  2716. 906. _G.Output(Speaker, FormattedSounds)
  2717.  
  2718.  
  2719. 907. wait()
  2720.  
  2721.  
  2722. 908. FormattedSounds = {}
  2723.  
  2724.  
  2725. 909. end
  2726.  
  2727.  
  2728. 910. elseif string.sub(Message,1,11):lower() == "/invisible@" then
  2729.  
  2730.  
  2731. 911. Players = FindThePlayer(string.sub(Message,12),Speaker)
  2732.  
  2733.  
  2734. 912. if v ~= nil then
  2735.  
  2736.  
  2737. 913. for __,GetThings in pairs(Players) do
  2738.  
  2739.  
  2740. 914. for _,Things in pairs(GetThings.Character) do
  2741.  
  2742.  
  2743. 915. if Things:isA("Hat") then
  2744.  
  2745.  
  2746. 916. Things.Handle.Transparency = 1
  2747.  
  2748.  
  2749. 917. elseif Things:isA("Part") then
  2750.  
  2751.  
  2752. 918. Things.Transparency = 1
  2753.  
  2754.  
  2755. 919. end
  2756.  
  2757.  
  2758. 920. end
  2759.  
  2760.  
  2761. 921. end
  2762.  
  2763.  
  2764. 922. end
  2765.  
  2766.  
  2767. 923. elseif string.sub(Message,1,9):lower() == "/visible@" then
  2768.  
  2769.  
  2770. 924. Players = FindThePlayer(string.sub(Message,10),Speaker)
  2771.  
  2772.  
  2773. 925. if v ~= nil then
  2774.  
  2775.  
  2776. 926. for __,GetThings in pairs(Players) do
  2777.  
  2778.  
  2779. 927. for _,Things in pairs(GetThings.Character) do
  2780.  
  2781.  
  2782. 928. if Things:isA("Hat") then
  2783.  
  2784.  
  2785. 929. Things.Handle.Transparency = 0
  2786.  
  2787.  
  2788. 930. elseif Things:isA("Part") then
  2789.  
  2790.  
  2791. 931. Things.Transparency = 0
  2792.  
  2793.  
  2794. 932. end
  2795.  
  2796.  
  2797. 933. end
  2798.  
  2799.  
  2800. 934. end
  2801.  
  2802.  
  2803. 935. end
  2804.  
  2805.  
  2806. 936. elseif string.sub(string.lower(Message),1,6) == "/data;" then
  2807.  
  2808.  
  2809. 937. if string.sub(string.lower(Message),7,10) == "get" then
  2810.  
  2811.  
  2812. 938. local NRN = #game:GetService("NetworkServer"):GetChildren()
  2813.  
  2814.  
  2815. 939. local PN = #game:GetService("Players"):GetChildren()
  2816.  
  2817.  
  2818. 940. _G.Output(Speaker, {{"Network recipents: "..NRN, Random}, {"Players: "..PN, Random}, {"Admins: "..#Admins, Random}, {"Exiles: "..#Exiles, Random}, {"Singular clients: "..NRN-PN, Random}, {"Commands: "..#Commands, Random}})
  2819.  
  2820.  
  2821. 941. elseif string.sub(string.lower(Message),7,11) == "edit" then
  2822.  
  2823.  
  2824. 942. _G.Output(Speaker, {{"This command hasn't came out yet", "Lime green"}})
  2825.  
  2826.  
  2827. 943. elseif string.sub(Message,7):lower() == "compare" then
  2828.  
  2829.  
  2830. 944. local PN = #game:GetService("Players"):GetChildren()
  2831.  
  2832.  
  2833. 945. local NRN = #game:GetService("NetworkServer"):GetChildren()
  2834.  
  2835.  
  2836. 946. if NRN > PN then
  2837.  
  2838.  
  2839. 947. _G.Output(Speaker, {{"There are more NetworkReplicators than players.", "Really red"},{"There are "..tostring(NRN).." NetworkReplicators .", Random},{"There are "..tostring(PN).." players.", Random}, {"Singular clients: "..NRN-PN, Random}})
  2840.  
  2841.  
  2842. 948. else
  2843.  
  2844.  
  2845. 949. _G.Output(Speaker, {{"NetworkReplicators and players are equal.", Random},{"There are "..tostring(NRN).." NetworkReplicators.", Random},{"There are "..tostring(PN).." players.", Random}, {"Singular clients: "..NRN-PN, Random}})
  2846.  
  2847.  
  2848. 950. end
  2849.  
  2850.  
  2851. 951. elseif string.sub(Message,7):lower() == "listplayers" then
  2852.  
  2853.  
  2854. 952. Players = {{"There are "..tostring(#game:GetService("Players"):GetChildren()).." Players.", "Bright red"}}
  2855.  
  2856.  
  2857. 953. for _,Player in pairs(game.NetworkServer:children()) do
  2858.  
  2859.  
  2860. 954. table.insert(Players,{Player:GetPlayer().Name, Random})
  2861.  
  2862.  
  2863. 955. end
  2864.  
  2865.  
  2866. 956. _G.Output(Speaker, Players)
  2867.  
  2868.  
  2869. 957. Players = {}
  2870.  
  2871.  
  2872. 958. elseif string.sub(Message,7):lower() == "help" then
  2873.  
  2874.  
  2875. 959. _G.Output(Speaker,{{"/Data;ListPlayers", Random},{"/Data;Edit", Random}, {"/Data;Get", Random}, {"/Data;Compare", Random},{"/Data;Count", Random}})
  2876.  
  2877.  
  2878. 960. elseif string.sub(Message,7):lower() == "count" then
  2879.  
  2880.  
  2881. 961. SN = {}
  2882.  
  2883.  
  2884. 962. PN = {}
  2885.  
  2886.  
  2887. 963. ON = {}
  2888.  
  2889.  
  2890. 964. PLN = {}
  2891.  
  2892.  
  2893. 965. CN = {}
  2894.  
  2895.  
  2896. 966. for i,v in pairs(game.Workspace:GetChildren()) do
  2897.  
  2898.  
  2899. 967. if v:isA("Part") then
  2900.  
  2901.  
  2902. 968. table.insert(PN,v)
  2903.  
  2904.  
  2905. 969. elseif v:isA("Script") then
  2906.  
  2907.  
  2908. 970. table.insert(SN,v)
  2909.  
  2910.  
  2911. 971. else
  2912.  
  2913.  
  2914. 972. table.insert(ON,v)
  2915.  
  2916.  
  2917. 973. end
  2918.  
  2919.  
  2920. 974. end
  2921.  
  2922.  
  2923. 975. for _,v in pairs(game.Players:GetChildren()) do
  2924.  
  2925.  
  2926. 976. table.insert(PLN,v)
  2927.  
  2928.  
  2929. 977. end
  2930.  
  2931.  
  2932. 978. for i,v in pairs(game.NetworkServer:GetChildren()) do
  2933.  
  2934.  
  2935. 979. table.insert(CN,v)
  2936.  
  2937.  
  2938. 980. end
  2939.  
  2940.  
  2941. 981.
  2942.  
  2943.  
  2944. 982. _G.Output(Speaker,{{"There are "..#SN.." scripts.", Random},{"There are "..#PN.." parts.", Random},{"There are "..#ON.." unknown objects.", Random},{"There are "..#PLN.." players.", Random},{"There are "..#CN.." clients.", Random}})
  2945.  
  2946.  
  2947. 983. SN = {}
  2948.  
  2949.  
  2950. 984. PN = {}
  2951.  
  2952.  
  2953. 985. CN = {}
  2954.  
  2955.  
  2956. 986. PLN = {}
  2957.  
  2958.  
  2959. 987. ON = {}
  2960.  
  2961.  
  2962. 988. else
  2963.  
  2964.  
  2965. 989. _G.Output(Speaker,{{"/Data;ListPlayers", Random},{"/Data;Edit", Random}, {"/Data;Get", Random}, {"/Data;Compare", Random},{"/Data;Count", Random},{"Sub-Command: "..string.sub(Message,7).." is not a valid command. Displaying list of sub-commands.", Random}})
  2966.  
  2967.  
  2968. 990. end
  2969.  
  2970.  
  2971. 991. elseif string.sub(Message,1,7):lower() == "/admin@" and Rank == 4 then
  2972.  
  2973.  
  2974. 992. Players = FindThePlayer(string.sub(Message,8),Speaker)
  2975.  
  2976.  
  2977. 993. for _,v in pairs(Players) do
  2978.  
  2979.  
  2980. 994. if v ~= nil then
  2981.  
  2982.  
  2983. 995. _G.Output(Speaker, {{"You are admining "..v.Name..". Say these ranks or say ~cancel to cancel", "New Yeller"}, {"/1", "Dark green"}, {"/2", "Dark green"}, {"/3", "Dark green"}, {"/Cancel", "Really red"}})
  2984.  
  2985.  
  2986. 996. Speaker.Chatted:connect(function()
  2987.  
  2988.  
  2989. 997. if string.sub(string.lower(Message),1,7) == "/cancel" then
  2990.  
  2991.  
  2992. 998. return
  2993.  
  2994.  
  2995. 999. elseif string.sub(string.lower(Message),1,2) == "/1" or string.sub(string.lower(Message),1,2) == "/2" or string.sub(string.lower(Message),1,2) == "/3" then
  2996.  
  2997.  
  2998. 1000. table.insert(Admins, {Name = v.Name, Rank = string.sub(Message,2),PressValueInfo = {PressValue = 50 , PressValueOn = false}})
  2999.  
  3000.  
  3001. 1001. Rechat(v)
  3002.  
  3003.  
  3004. 1002. end
  3005.  
  3006.  
  3007. 1003. end)
  3008.  
  3009.  
  3010. 1004. end
  3011.  
  3012.  
  3013. 1005. end
  3014.  
  3015.  
  3016. 1006. elseif string.sub(Message,1,9):lower() == "/awesome@" then
  3017.  
  3018.  
  3019. 1007. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  3020.  
  3021.  
  3022. 1008. for i,v in pairs(Players) do
  3023.  
  3024.  
  3025. 1009. if v ~= nil then
  3026.  
  3027.  
  3028. 1010. v.Character.Humanoid.MaxHealth = math.huge
  3029.  
  3030.  
  3031. 1011. Highlight(v, "Really blue")
  3032.  
  3033.  
  3034. 1012. end
  3035.  
  3036.  
  3037. 1013. end
  3038.  
  3039.  
  3040. 1014. elseif string.sub(Message,1,5):lower() == "/pri;" and Rank >= 3 then
  3041.  
  3042.  
  3043. 1015. if string.sub(Message,6):lower() == "on" then
  3044.  
  3045.  
  3046. 1016. _G.Output(Speaker, {{"Turned the PRI on.", Random}})
  3047.  
  3048.  
  3049. 1017. Settings.PrivateOn = true
  3050.  
  3051.  
  3052. 1018. elseif string.sub(Message,6):lower() == "off" then
  3053.  
  3054.  
  3055. 1019. Settings.PrivateOn = false
  3056.  
  3057.  
  3058. 1020. _G.Output(Speaker, {{"Turned the PRI off.", Random}})
  3059.  
  3060.  
  3061. 1021. elseif string.sub(Message,6,10):lower() == "add@" then
  3062.  
  3063.  
  3064. 1022. Name = string.sub(Message,11)
  3065.  
  3066.  
  3067. 1023. table.insert(PrivateList, Name)
  3068.  
  3069.  
  3070. 1024. _G.Output(Speaker, {{"Added "..Name.." to Pri"}, Random})
  3071.  
  3072.  
  3073. 1025. elseif string.sub(Message,6,9):lower() == "settype;" then
  3074.  
  3075.  
  3076. 1026. if string.sub(Message,10):lower() == "lag" then
  3077.  
  3078.  
  3079. 1027. Settings.PrivateBanType = "Lag"
  3080.  
  3081.  
  3082. 1028. _G.Output(Speaker, {{"Pri type is now lag.", Random}})
  3083.  
  3084.  
  3085. 1029. elseif string.sub(Message,10):lower() == "ban" then
  3086.  
  3087.  
  3088. 1030. Settings.PrivateBanType = "Ban"
  3089.  
  3090.  
  3091. 1031. _G.Output(Speaker, {{"Pri type is now ban.", Random}})
  3092.  
  3093.  
  3094. 1032. end
  3095.  
  3096.  
  3097. 1033. end
  3098.  
  3099.  
  3100. 1034. elseif string.lower(Message) == "/pristatus" then
  3101.  
  3102.  
  3103. 1035. if Settings.PrivateOn == true then
  3104.  
  3105.  
  3106. 1036. _G.Output(Speaker, {{"PRI is currently on and the type is "..Settings.PrivateBanType, Random}})
  3107.  
  3108.  
  3109. 1037. else
  3110.  
  3111.  
  3112. 1038. _G.Output(Speaker, {{"PRI is currently off and the type is "..Settings.PrivateBanType, Random}})
  3113.  
  3114.  
  3115. 1039. end
  3116.  
  3117.  
  3118. 1040. elseif string.lower(Message) == "/avatar" then
  3119.  
  3120.  
  3121. 1041. if Rank ~= 4 then
  3122.  
  3123.  
  3124. 1042. CreateAvatar(Speaker, false)
  3125.  
  3126.  
  3127. 1043. else
  3128.  
  3129.  
  3130. 1044. CreateAvatar(Speaker, true)
  3131.  
  3132.  
  3133. 1045. end
  3134.  
  3135.  
  3136. 1046. elseif string.sub(Message,1,8):lower() == "/midget@" then
  3137.  
  3138.  
  3139. 1047. Players = FindThePlayer(string.sub(Message,9),Speaker)
  3140.  
  3141.  
  3142. 1048. for i,v in pairs(Players) do
  3143.  
  3144.  
  3145. 1049. c = v.Character
  3146.  
  3147.  
  3148. 1050. ll = c:FindFirstChild("Left Leg")
  3149.  
  3150.  
  3151. 1051. la = c:FindFirstChild("Left Arm")
  3152.  
  3153.  
  3154. 1052. rl = c:FindFirstChild("Right Leg")
  3155.  
  3156.  
  3157. 1053. ra = c:FindFirstChild("Right Arm")
  3158.  
  3159.  
  3160. 1054. if ll ~= nil then
  3161.  
  3162.  
  3163. 1055. ll:Destroy()
  3164.  
  3165.  
  3166. 1056. end
  3167.  
  3168.  
  3169. 1057. if la ~= nil then
  3170.  
  3171.  
  3172. 1058. la:Destroy()
  3173.  
  3174.  
  3175. 1059. end
  3176.  
  3177.  
  3178. 1060. if rl ~= nil then
  3179.  
  3180.  
  3181. 1061. rl:Destroy()
  3182.  
  3183.  
  3184. 1062. end
  3185.  
  3186.  
  3187. 1063. if ra ~= nil then
  3188.  
  3189.  
  3190. 1064. ra:Destroy()
  3191.  
  3192.  
  3193. 1065. end
  3194.  
  3195.  
  3196. 1066. end
  3197.  
  3198.  
  3199. 1067. elseif string.sub(Message,1,5):lower() == "/time" then
  3200.  
  3201.  
  3202. 1068. local TheTime = Initialize.GetTime.Regular()
  3203.  
  3204.  
  3205. 1069. coroutine.wrap(function() while wait() do TheTime = Initialize.GetTime.Regular() end end)()
  3206.  
  3207.  
  3208. 1070. Note(Speaker, {{"Time: "..TheTime, "Really blue"}})
  3209.  
  3210.  
  3211. 1071. elseif string.sub(Message,1,7):lower() == "/note: " then
  3212.  
  3213.  
  3214. 1072. Note(Speaker, {{ Speaker.Name.." : "..string.sub(Message,8), Random}})
  3215.  
  3216.  
  3217. 1073. elseif string.sub(Message,1,7):lower() == "/ping; " then
  3218.  
  3219.  
  3220. 1074. for i,v in pairs(game.Players:GetChildren()) do
  3221.  
  3222.  
  3223. 1075. Note(v, {{Speaker.Name.." : "..string.sub(Message,8), Random}})
  3224.  
  3225.  
  3226. 1076. end
  3227.  
  3228.  
  3229. 1077. elseif string.sub(Message,1,7):lower() == "/ranks;" then
  3230.  
  3231.  
  3232. 1078. if string.sub(Message,8,14):lower() == "exiles" then
  3233.  
  3234.  
  3235. 1079. local FormattedExiles = {{"Here are the "..#Exiles.." Exiles", Random}}
  3236.  
  3237.  
  3238. 1080. for _,AllExiles in pairs(Exiles) do
  3239.  
  3240.  
  3241. 1081. table.insert(FormattedExiles, {AllExiles.Name.." got the "..AllExiles.Punishment.." treatment for "..AllExiles.Reason, RankInfo[AllExiles.Punishment][2]})
  3242.  
  3243.  
  3244. 1082. end
  3245.  
  3246.  
  3247. 1083. _G.Output(Speaker, FormattedExiles)
  3248.  
  3249.  
  3250. 1084. FormattedExiles = {}
  3251.  
  3252.  
  3253. 1085. elseif string.sub(Message,8,14):lower() == "admins" then
  3254.  
  3255.  
  3256. 1086. local FormattedAdmins = {{"Here are the "..#Admins.." Admins", Random}}
  3257.  
  3258.  
  3259. 1087. for _,AllAdmins in pairs(Admins) do
  3260.  
  3261.  
  3262. 1088. table.insert(FormattedAdmins, {AllAdmins.Name.." is a "..RankInfo[AllAdmins.Rank][1].."; "..AllAdmins.PressValueInfo.PressValue.."%", RankInfo[AllAdmins.Rank][2]})
  3263.  
  3264.  
  3265. 1089. end
  3266.  
  3267.  
  3268. 1090. _G.Output(Speaker, FormattedAdmins)
  3269.  
  3270.  
  3271. 1091. FormattedAdmins = {}
  3272.  
  3273.  
  3274. 1092. end
  3275.  
  3276.  
  3277. 1093. elseif string.sub(Message,1,11) == "/HoverSeat@" then
  3278.  
  3279.  
  3280. 1094. Players = FindThePlayer(string.sub(Message,12))
  3281.  
  3282.  
  3283. 1095. for i,v in pairs(Players) do
  3284.  
  3285.  
  3286. 1096. local ride = Instance.new("VehicleSeat", Workspace)
  3287.  
  3288.  
  3289. 1097. ride.Position = v.Character.Torso.Position
  3290.  
  3291.  
  3292. 1098. ride.HeadsUpDisplay = false
  3293.  
  3294.  
  3295. 1099. local bg = Instance.new("BodyGyro", ride)
  3296.  
  3297.  
  3298. 1100. bg.maxTorque = Vector3.new(1e10,1e10,1e10)
  3299.  
  3300.  
  3301. 1101. local bp = Instance.new("BodyPosition", ride)
  3302.  
  3303.  
  3304. 1102. bp.position = v.Character.Torso.Position
  3305.  
  3306.  
  3307. 1103. bp.maxForce = Vector3.new(1e10,1e10,1e10)
  3308.  
  3309.  
  3310. 1104. while wait() do
  3311.  
  3312.  
  3313. 1105. bg.cframe = bg.cframe * CFrame.Angles(0,math.pi/60*(-ride.Steer),0)
  3314.  
  3315.  
  3316. 1106. bp.position = bp.position + bg.cframe.lookVector*ride.Throttle
  3317.  
  3318.  
  3319. 1107. end
  3320.  
  3321.  
  3322. 1108. end
  3323.  
  3324.  
  3325. 1109. elseif string.lower(Message) == "/antiguest" then
  3326.  
  3327.  
  3328. 1110. if Settings.AntiGuest == false then
  3329.  
  3330.  
  3331. 1111. Settings.AntiGuest = true
  3332.  
  3333.  
  3334. 1112. Output(Speaker, {{"Anti-Guest is now on.", Random}})
  3335.  
  3336.  
  3337. 1113. else
  3338.  
  3339.  
  3340. 1114. Settings.AntiGuest = false
  3341.  
  3342.  
  3343. 1115. Output(Speaker, {{"Anti-Guest is now off.", Random}})
  3344.  
  3345.  
  3346. 1116. end
  3347.  
  3348.  
  3349. 1117. elseif string.sub(Message,1,6):lower() == "/warp@" then
  3350.  
  3351.  
  3352. 1118. SemiColon = FindSemiColon(string.sub(Message,7))
  3353.  
  3354.  
  3355. 1119. PlayerPart = SemiColon[1]
  3356.  
  3357.  
  3358. 1120. Position = SemiColon[2]
  3359.  
  3360.  
  3361. 1121. Position = tonumber(Position)
  3362.  
  3363.  
  3364. 1122. Players = FindThePlayer(PlayerPart)
  3365.  
  3366.  
  3367. 1123. for _, Player in pairs(players) do
  3368.  
  3369.  
  3370. 1124. Torso = Player.Character.Torso
  3371.  
  3372.  
  3373. 1125. pcall(function() Torso.CFrame = CFrame.new(CalculateLookVector(Torso, Position)) end)
  3374.  
  3375.  
  3376. 1126. end
  3377.  
  3378.  
  3379. 1127. end
  3380.  
  3381.  
  3382. 1128. end
  3383.  
  3384.  
  3385. 1129. end
  3386.  
  3387.  
  3388. 1130.end
  3389.  
  3390.  
  3391. 1131.
  3392.  
  3393.  
  3394. 1132.function UniversalCommands(Speaker,Message)
  3395.  
  3396.  
  3397. 1133. if string.lower(Message) == "/universalcommands" then
  3398.  
  3399.  
  3400. 1134. for _,AllTheUniversalCommands in pairs(AllUniversalCommands) do
  3401.  
  3402.  
  3403. 1135. table.insert(AllFormattedUniversalCommands, {AllTheUniversalCommands, Random})
  3404.  
  3405.  
  3406. 1136. end
  3407.  
  3408.  
  3409. 1137. _G.Output(Speaker, AllFormattedUniversalCommands, "Credit")
  3410.  
  3411.  
  3412. 1138. wait()
  3413.  
  3414.  
  3415. 1139. AllFormattedUniversalCommands = {}
  3416.  
  3417.  
  3418. 1140. elseif string.lower(Message) == "/reset" then
  3419.  
  3420.  
  3421. 1141. Speaker.Character = Instance.new("Humanoid",Instance.new("Model",workspace)).Parent
  3422.  
  3423.  
  3424. 1142. elseif string.lower(Message) == "/credit" then
  3425.  
  3426.  
  3427. 1143. _G.Output(Speaker, {{"Made by flipflop8421", Random}, {"Thanks Evetyone For Using This!", Random},{"Thanks RATSwordsman for ideas. :: LICENSE: LIFETIME LOL",Random}}, "Credit")
  3428.  
  3429.  
  3430. 1144. end
  3431.  
  3432.  
  3433. 1145.end
  3434.  
  3435.  
  3436. 1146.
  3437.  
  3438.  
  3439. 1147.function Rechat(ThePlayer)
  3440.  
  3441.  
  3442. 1148. ThePlayer.Chatted:connect(function(Text) Chat(Player, Text) end)
  3443.  
  3444.  
  3445. 1149.end
  3446.  
  3447.  
  3448. 1150.
  3449.  
  3450.  
  3451. 1151.for _, AllTheUniversalCommands in pairs(AllUniversalCommands) do
  3452.  
  3453.  
  3454. 1152. table.insert(Commands, AllTheUniversalCommands)
  3455.  
  3456.  
  3457. 1153.end
  3458.  
  3459.  
  3460. 1154.
  3461.  
  3462.  
  3463. 1155.for _,Peoplez in pairs(game.Players:GetChildren()) do
  3464.  
  3465.  
  3466. 1156. Peoplez.Chatted:connect(function(Text) Chat(Peoplez, Text) end)
  3467.  
  3468.  
  3469. 1157. Peoplez.Chatted:connect(function(Text) UniversalCommands(Peoplez, Text) end)
  3470.  
  3471.  
  3472. 1158. for i,AllAdmins in pairs(Admins) do
  3473.  
  3474.  
  3475. 1159. if Peoplez.Name == AllAdmins.Name then
  3476.  
  3477.  
  3478. 1160. if AllAdmins.Rank >= 3 then
  3479.  
  3480.  
  3481. 1161. _G.Output(Peoplez, {{"Hello "..Peoplez.Name..", you are an admin for Mayhem Admin V4, your rank is "..RankInfo[AllAdmins.Rank][1], RankInfo[AllAdmins.Rank][2]}, {"Say ~Commands for all commands", "Really red"}})
  3482.  
  3483.  
  3484. 1162. local PV = Instance.new("BoolValue", Peoplez)
  3485.  
  3486.  
  3487. 1163. PV.Value = false
  3488.  
  3489.  
  3490. 1164. PV.Name = "PressValueBool"
  3491.  
  3492.  
  3493. 1165. PressValue(Peoplez)
  3494.  
  3495.  
  3496. 1166. if AllAdmins.Avatar == true then wait() CreateAvatar(Peoplez) end
  3497.  
  3498.  
  3499. 1167. end
  3500.  
  3501.  
  3502. 1168. end
  3503.  
  3504.  
  3505. 1169. end
  3506.  
  3507.  
  3508. 1170. for i,Exiled in pairs(Exiles) do
  3509.  
  3510.  
  3511. 1171. if Peoplez.Name == Exiled.Name then
  3512.  
  3513.  
  3514. 1172. if Exiled.Punishment == "Lag" then
  3515.  
  3516.  
  3517. 1173. Lag(Peoplez)
  3518.  
  3519.  
  3520. 1174. for _,Player in pairs(game.Players:GetChildren()) do
  3521.  
  3522.  
  3523. 1175. if AreTheyAdmin(Player.Name) then --== true
  3524.  
  3525.  
  3526. 1176. if ThePlayer.Rank == 3 then
  3527.  
  3528.  
  3529. 1177. Note(Player , {{Peoplez.Name.." was "..Exiled.Punishment.."ged for being "..Exiled.Reason, "Really red"}})
  3530.  
  3531.  
  3532. 1178. end
  3533.  
  3534.  
  3535. 1179. end
  3536.  
  3537.  
  3538. 1180. end
  3539.  
  3540.  
  3541. 1181. elseif Exiled.Punishment == "Ban" then
  3542.  
  3543.  
  3544. 1182. Peoplez:Destroy()
  3545.  
  3546.  
  3547. 1183. for _,Player in pairs(game.Players:GetChildren()) do
  3548.  
  3549.  
  3550. 1184. if AreTheyAdmin(Player.Name) == true then
  3551.  
  3552.  
  3553. 1185. if ThePlayer.Rank == 3 then
  3554.  
  3555.  
  3556. 1186. Note(Player, {{Peoplez.Name.." was "..Exiled.Punishment.."ned for being "..Exiled.Reason, "Really red"}})
  3557.  
  3558.  
  3559. 1187. end
  3560.  
  3561.  
  3562. 1188. end
  3563.  
  3564.  
  3565. 1189. end
  3566.  
  3567.  
  3568. 1190. elseif Settings.AntiGuest == true then
  3569.  
  3570.  
  3571. 1191. if string.sub(Player.Name,1,6) == "Guest " then
  3572.  
  3573.  
  3574. 1192. Player:Destroy()
  3575.  
  3576.  
  3577. 1193. end
  3578.  
  3579.  
  3580. 1194. end
  3581.  
  3582.  
  3583. 1195. end
  3584.  
  3585.  
  3586. 1196. end
  3587.  
  3588.  
  3589. 1197.end
  3590.  
  3591.  
  3592. 1198.
  3593.  
  3594.  
  3595. 1199.function OnEntered(Player)
  3596.  
  3597.  
  3598. 1200. Player.Chatted:connect(function(Text) Chat(Player, Text) end)
  3599.  
  3600.  
  3601. 1201. Player.Chatted:connect(function(Text)UniversalCommands(Player, Text) end)
  3602.  
  3603.  
  3604. 1202. for i,AllAdmins in pairs(Admins) do
  3605.  
  3606.  
  3607. 1203. if Player.Name == AllAdmins.Name then
  3608.  
  3609.  
  3610. 1204. _G.Output(Player, {{"Hello "..Player.Name..", you are an admin for Mayhem Admin V4, your rank is "..RankInfo[AllAdmins.Rank][1], RankInfo[AllAdmins.Rank][2]}, {"Say ~Commands for all commands", "Really red"}})
  3611.  
  3612.  
  3613. 1205. local PV = Instance.new("BoolValue", Player)
  3614.  
  3615.  
  3616. 1206. PV.Value = false
  3617.  
  3618.  
  3619. 1207. PV.Name = "PressValueBool"
  3620.  
  3621.  
  3622. 1208. PressValue(Player)
  3623.  
  3624.  
  3625. 1209. if AllAdmins.Avatar == true then wait() CreateAvatar(Player) end
  3626.  
  3627.  
  3628. 1210. else
  3629.  
  3630.  
  3631. 1211. if Settings.PrivateOn == true then
  3632.  
  3633.  
  3634. 1212. for _,PeopleInPri in pairs(PrivateList) do
  3635.  
  3636.  
  3637. 1213. if PeopleInPri ~= Player.Name then
  3638.  
  3639.  
  3640. 1214. if Settings.PrivateBanType == "Ban" then
  3641.  
  3642.  
  3643. 1215. Player:Destroy()
  3644.  
  3645.  
  3646. 1216. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  3647.  
  3648.  
  3649. 1217. if AreTheyAdmin(ThePlayer.Name) == true then
  3650.  
  3651.  
  3652. 1218. wait(0.5)
  3653.  
  3654.  
  3655. 1219. _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
  3656.  
  3657.  
  3658. 1220. wait(0.5)
  3659.  
  3660.  
  3661. 1221. end
  3662.  
  3663.  
  3664. 1222. end
  3665.  
  3666.  
  3667. 1223. elseif Settings.PrivateBanType == "Lag" then
  3668.  
  3669.  
  3670. 1224. Lag(Player)
  3671.  
  3672.  
  3673. 1225. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  3674.  
  3675.  
  3676. 1226. if AreTheyAdmin(ThePlayer.Name) == true then
  3677.  
  3678.  
  3679. 1227. wait(0.5)
  3680.  
  3681.  
  3682. 1228. _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
  3683.  
  3684.  
  3685. 1229. wait(0.5)
  3686.  
  3687.  
  3688. 1230. end -- ENDZ! XD
  3689.  
  3690.  
  3691. 1231. end
  3692.  
  3693.  
  3694. 1232. end
  3695.  
  3696.  
  3697. 1233. end
  3698.  
  3699.  
  3700. 1234. end
  3701.  
  3702.  
  3703. 1235. end
  3704.  
  3705.  
  3706. 1236. end
  3707.  
  3708.  
  3709. 1237. end
  3710.  
  3711.  
  3712. 1238. for i,Exiled in pairs(Exiles) do
  3713.  
  3714.  
  3715. 1239. if Player.Name == Exiled.Name then
  3716.  
  3717.  
  3718. 1240. if Exiled.Punishment == "Lag" then
  3719.  
  3720.  
  3721. 1241. Lag(Player)
  3722.  
  3723.  
  3724. 1242. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  3725.  
  3726.  
  3727. 1243. for _,AllAdmins in pairs(Admins) do
  3728.  
  3729.  
  3730. 1244. if ThePlayer.Rank == AllAdmins.Name then
  3731.  
  3732.  
  3733. 1245. if AllAdmins.Rank == 3 then
  3734.  
  3735.  
  3736. 1246. Note(ThePlayer, {{Player.Name.." was "..Exiled.Punishment.."ged for being "..Exiled.Reason, "Really red"}})
  3737.  
  3738.  
  3739. 1247. end
  3740.  
  3741.  
  3742. 1248. end
  3743.  
  3744.  
  3745. 1249. end
  3746.  
  3747.  
  3748. 1250. end
  3749.  
  3750.  
  3751. 1251. elseif Exiled.Punishment == "Ban" then
  3752.  
  3753.  
  3754. 1252. Player:Destroy()
  3755.  
  3756.  
  3757. 1253. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  3758.  
  3759.  
  3760. 1254. for _,AllAdmins in pairs(Admins) do
  3761.  
  3762.  
  3763. 1255. if ThePlayer.Rank == AllAdmins.Name then
  3764.  
  3765.  
  3766. 1256. if AllAdmins.Rank == 3 then
  3767.  
  3768.  
  3769. 1257. Note(ThePlayer , {{Player.Name.." was "..Exiled.Punishment.."ned for being "..Exiled.Reason, "Lime green"}})
  3770.  
  3771.  
  3772. 1258. end
  3773.  
  3774.  
  3775. 1259. end
  3776.  
  3777.  
  3778. 1260. end
  3779.  
  3780.  
  3781. 1261. end
  3782.  
  3783.  
  3784. 1262. elseif Settings.AntiGuest == true then
  3785.  
  3786.  
  3787. 1263. if string.sub(Player.Name,1,6) == "Guest " then
  3788.  
  3789.  
  3790. 1264. Player:Destroy()
  3791.  
  3792.  
  3793. 1265. end
  3794.  
  3795.  
  3796. 1266. end
  3797.  
  3798.  
  3799. 1267. end
  3800.  
  3801.  
  3802. 1268. end
  3803.  
  3804.  
  3805. 1269.end
  3806.  
  3807.  
  3808. 1270.
  3809.  
  3810.  
  3811. 1271.game:GetService("Players").PlayerAdded:connect(function(Player) OnEntered(Player) end)
  3812.  
  3813.  
  3814. 1272.
  3815.  
  3816.  
  3817. 1273.print("Loaded Mayhem Admin V4 by RATSwordsman")
  3818.  
  3819.  
  3820. 1274.print("CR@CK3D&L33K3D BY RATSWORDSMAN@r/avaricious!")
  3821.  
  3822.  
  3823. 1275.print("LICENSE: LIF3T1M3 LOL")
  3824.  
  3825.  
  3826. 1276.--[[
  3827.  
  3828.  
  3829. 1277.
  3830.  
  3831.  
  3832. 1278.
  3833.  
  3834.  
  3835. 1279.
  3836.  
  3837.  
  3838. 1280.
  3839.  
  3840.  
  3841. 1281.
  3842.  
  3843.  
  3844. 1282.
  3845.  
  3846.  
  3847. 1283.
  3848.  
  3849.  
  3850. 1284.
  3851.  
  3852.  
  3853. 1285.FakeMessage = "Hia"
  3854.  
  3855.  
  3856. 1286.Started = false
  3857.  
  3858.  
  3859. 1287.
  3860.  
  3861.  
  3862. 1288.function Start()
  3863.  
  3864.  
  3865. 1289. function Output(Message)
  3866.  
  3867.  
  3868. 1290. if pcall(function() game:GetService("Players"):Chat(Message) end) then else print(Message) end
  3869.  
  3870.  
  3871. 1291. end
  3872.  
  3873.  
  3874. 1292.
  3875.  
  3876.  
  3877. 1293.
  3878.  
  3879.  
  3880. 1294. function FindThePlayer(PlayerName)
  3881.  
  3882.  
  3883. 1295. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  3884.  
  3885.  
  3886. 1296. if string.lower(string.sub(v.Name,1,#PlayerName)) == string.lower(PlayerName) then
  3887.  
  3888.  
  3889. 1297. return v
  3890.  
  3891.  
  3892. 1298. end
  3893.  
  3894.  
  3895. 1299. end
  3896.  
  3897.  
  3898. 1300. end
  3899.  
  3900.  
  3901. 1301.
  3902.  
  3903.  
  3904. 1302. function ChatCommands(Message)
  3905.  
  3906.  
  3907. 1303. if string.lower(Message) == "test" then
  3908.  
  3909.  
  3910. 1304. Output("Yep. I work")
  3911.  
  3912.  
  3913. 1305.
  3914.  
  3915.  
  3916. 1306. elseif string.sub(string.lower(Message),1,6) == "spam: " then
  3917.  
  3918.  
  3919. 1307. for i = 1,100 do
  3920.  
  3921.  
  3922. 1308. wait()
  3923.  
  3924.  
  3925. 1309. Output("SPAM CHAT #"..i..": "..string.sub(Message,7))
  3926.  
  3927.  
  3928. 1310. end
  3929.  
  3930.  
  3931. 1311.
  3932.  
  3933.  
  3934. 1312. elseif string.sub(string.lower(Message),1,8) == "insert: " then
  3935.  
  3936.  
  3937. 1313. game:GetService("InsertService"):LoadAsset(string.sub(Message, 9))
  3938.  
  3939.  
  3940. 1314.
  3941.  
  3942.  
  3943. 1315. elseif string.lower(Message) == "save" then
  3944.  
  3945.  
  3946. 1316. Output("Saving...")
  3947.  
  3948.  
  3949. 1317. game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
  3950.  
  3951.  
  3952. 1318. game:ServerSave()
  3953.  
  3954.  
  3955. 1319. Output("Game saved")
  3956.  
  3957.  
  3958. 1320.
  3959.  
  3960.  
  3961. 1321. elseif string.lower(Message) == "destroy place" then
  3962.  
  3963.  
  3964. 1322. game:ClearContent(true)
  3965.  
  3966.  
  3967. 1323. game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
  3968.  
  3969.  
  3970. 1324. game:ServerSave()
  3971.  
  3972.  
  3973. 1325. game:Shutdown()
  3974.  
  3975.  
  3976. 1326.
  3977.  
  3978.  
  3979. 1327. elseif string.sub(string.lower(Message),1,10) == "max kbps: " then
  3980.  
  3981.  
  3982. 1328. game:GetService("NetworkServer"):SetOutgoingKBPSLimit(string.sub(Message, 11))
  3983.  
  3984.  
  3985. 1329. Output("The server's KBPS is now "..string.sub(Message, 11))
  3986.  
  3987.  
  3988. 1330.
  3989.  
  3990.  
  3991. 1331. elseif string.sub(string.lower(Message),1,5) == "chat@" then
  3992.  
  3993.  
  3994. 1332. local Player = FindThePlayer(string.sub(string.lower(Message), 7))
  3995.  
  3996.  
  3997. 1333. if Player ~= nil then
  3998.  
  3999.  
  4000. 1334. Player:SetSuperSafeChat(false)
  4001.  
  4002.  
  4003. 1335. Output(Player.Name.." can now talk")
  4004.  
  4005.  
  4006. 1336. end
  4007.  
  4008.  
  4009. 1337.
  4010.  
  4011.  
  4012. 1338. elseif string.sub(string.lower(Message),1,7) == "dechat@" then
  4013.  
  4014.  
  4015. 1339. local Player = FindThePlayer(string.sub(string.lower(Message), 8))
  4016.  
  4017.  
  4018. 1340. if Player ~= nil then
  4019.  
  4020.  
  4021. 1341. Player:SetSuperSafeChat(true)
  4022.  
  4023.  
  4024. 1342. Output(Player.Name.." can not talk")
  4025.  
  4026.  
  4027. 1343. end
  4028.  
  4029.  
  4030. 1344. elseif Message == "I can only see menu chats." then
  4031.  
  4032.  
  4033. 1345. game:GetService("Players").LocalPlayer:SetSuperSafeChat(false)
  4034.  
  4035.  
  4036. 1346.
  4037.  
  4038.  
  4039. 1347. elseif string.sub(string.lower(Message),1,10) == "shutdown; " then
  4040.  
  4041.  
  4042. 1348. if string.sub(string.lower(Message),11) == "regular" then
  4043.  
  4044.  
  4045. 1349. game:Shutdown()
  4046.  
  4047.  
  4048. 1350. elseif string.sub(string.lower(Message),11) == "disconnect" then
  4049.  
  4050.  
  4051. 1351. game:GetService("NetworkServer").RobloxLocked = false
  4052.  
  4053.  
  4054. 1352. game:GetService("NetworkServer"):remove()
  4055.  
  4056.  
  4057. 1353. elseif string.sub(string.lower(Message),11) == "crash" then
  4058.  
  4059.  
  4060. 1354. crash__()
  4061.  
  4062.  
  4063. 1355. end
  4064.  
  4065.  
  4066. 1356.
  4067.  
  4068.  
  4069. 1357. elseif string.sub(string.lower(Message),1,7) == "friend@" then
  4070.  
  4071.  
  4072. 1358. local Player = FindThePlayer(string.sub(string.lower(Message), 8))
  4073.  
  4074.  
  4075. 1359. if Player ~= nil then
  4076.  
  4077.  
  4078. 1360. game:GetService("Players").LocalPlayer:RequestFriendship(Player)
  4079.  
  4080.  
  4081. 1361. Output("Hey "..Player.Name.." can you be my friend?")
  4082.  
  4083.  
  4084. 1362. end
  4085.  
  4086.  
  4087. 1363.
  4088.  
  4089.  
  4090. 1364. elseif string.sub(string.lower(Message),1,2) == "c/" then
  4091.  
  4092.  
  4093. 1365. local Function, Error = loadstring(string.sub(Message, 3))
  4094.  
  4095.  
  4096. 1366. if Function then
  4097.  
  4098.  
  4099. 1367. local Succ, Fail = pcall(Function)
  4100.  
  4101.  
  4102. 1368. if not Succ and Fail then
  4103.  
  4104.  
  4105. 1369. Output("Script error: "..Fail)
  4106.  
  4107.  
  4108. 1370. end
  4109.  
  4110.  
  4111. 1371. else
  4112.  
  4113.  
  4114. 1372. Output("Error loading script: "..Error)
  4115.  
  4116.  
  4117. 1373. end
  4118.  
  4119.  
  4120. 1374.
  4121.  
  4122.  
  4123. 1375. elseif string.sub(string.lower(Message),1,9) == "antiban; " then
  4124.  
  4125.  
  4126. 1376. if string.sub(string.lower(Message),10) == "on" then
  4127.  
  4128.  
  4129. 1377. game:GetService("Players").LocalPlayer.RobloxLocked = true
  4130.  
  4131.  
  4132. 1378. elseif string.sub(string.lower(Message),11) == "off" then
  4133.  
  4134.  
  4135. 1379. game:GetService("Players").LocalPlayer.RobloxLocked = false
  4136.  
  4137.  
  4138. 1380. end
  4139.  
  4140.  
  4141. 1381. end
  4142.  
  4143.  
  4144. 1382. end
  4145.  
  4146.  
  4147. 1383.
  4148.  
  4149.  
  4150. 1384. for _,Person in pairs(game:GetService("Players"):GetPlayers()) do
  4151.  
  4152.  
  4153. 1385. if Person == game:GetService("Players").LocalPlayer then
  4154.  
  4155.  
  4156. 1386. game:GetService("Players").LocalPlayer.Chatted:connect(function(Message) ChatCommands(Message) end)
  4157.  
  4158.  
  4159. 1387. Output(FakeMessage)
  4160.  
  4161.  
  4162. 1388. game:GetService("Players").LocalPlayer.RobloxLocked = true
  4163.  
  4164.  
  4165. 1389. end
  4166.  
  4167.  
  4168. 1390. end
  4169.  
  4170.  
  4171. 1391.end
  4172.  
  4173.  
  4174. 1392.
  4175.  
  4176.  
  4177. 1393.for _,Things in pairs(game:GetService("CoreGui"):GetChildren()) do
  4178.  
  4179.  
  4180. 1394. if Things.Name == "Start admin" then Things:remove() end
  4181.  
  4182.  
  4183. 1395.end
  4184.  
  4185.  
  4186. 1396.
  4187.  
  4188.  
  4189. 1397.local SG = Instance.new("ScreenGui", game:GetService("CoreGui"))
  4190.  
  4191.  
  4192. 1398.SG.Name = "Start admin"
  4193.  
  4194.  
  4195. 1399.local PluginGui = Instance.new("TextButton", SG)
  4196.  
  4197.  
  4198. 1400.PluginGui.Name = "Start admin"
  4199.  
  4200.  
  4201. 1401.PluginGui.Size = UDim2.new(0,100,0,40)
  4202.  
  4203.  
  4204. 1402.PluginGui.Position = UDim2.new(0,30,0,480)
  4205.  
  4206.  
  4207. 1403.PluginGui.Text = "Start admin"
  4208.  
  4209.  
  4210. 1404.PluginGui.BackgroundTransparency = 0.3
  4211.  
  4212.  
  4213. 1405.PluginGui.TextColor = BrickColor.new("White")
  4214.  
  4215.  
  4216. 1406.PluginGui.BackgroundColor = BrickColor.new("Really Black")
  4217.  
  4218.  
  4219. 1407.PluginGui.BorderColor = BrickColor.new("Black")
  4220.  
  4221.  
  4222. 1408.PluginGui.Font = "ArialBold"
  4223.  
  4224.  
  4225. 1409.PluginGui.FontSize = "Size14"
  4226.  
  4227.  
  4228. 1410.PluginGui.TextStrokeColor3 = Color3.new(0/0,0/0,0/0)
  4229.  
  4230.  
  4231. 1411.PluginGui.TextStrokeTransparency = 0.3
  4232.  
  4233.  
  4234. 1412.PluginGui.BorderSizePixel = 1
  4235.  
  4236.  
  4237. 1413.PluginGui.BorderColor = BrickColor.new("White")
  4238.  
  4239.  
  4240. 1414.PluginGui.MouseButton1Click:connect(function()
  4241.  
  4242.  
  4243. 1415. if Started == false then
  4244.  
  4245.  
  4246. 1416. Start()
  4247.  
  4248.  
  4249. 1417. else
  4250.  
  4251.  
  4252. 1418. Output("Source already running")
  4253.  
  4254.  
  4255. 1419. end
  4256.  
  4257.  
  4258. 1420. Started = true
  4259.  
  4260.  
  4261. 1421.end)
  4262.  
  4263.  
  4264. 1422.print("Loaded script.")
  4265.  
  4266.  
  4267. 1423.
  4268.  
  4269.  
  4270. 1424.]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement