Advertisement
leaspect489

Untitled

Jan 22nd, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.34 KB | None | 0 0
  1. ------------------------------------------------------------------------------------------[[ MediaFire ]]------------------------------------------------------------------------------------
  2. if pcall(function() script.Parent = game:GetService("CoreGui") end) then else script.Parent = nil end
  3. Admins = {
  4. {Name = "rigletto", Rank = 4, Phrase = "Owner :: Win", Avatar = false, PressValueInfo = {PressValue = "100", PressValueOn = false}};
  5. {Name = "rxbl", Rank = 4, Phrase = "Owner :: Win", Avatar = false, PressValueInfo = {PressValue = "100", PressValueOn = false}};
  6. {Name = "ADMINNAME", Rank = 4, Phrase = "Owner :: Win", Avatar = false, PressValueInfo = {PressValue = "50", PressValueOn = false}};
  7. {Name = "upquark",--[[actually upquark can stay he's kool ]] Rank = 4, Phrase = "Owner :: Win", Avatar = false, PressValueInfo = {PressValue = "10", PressValueOn = false}};
  8. {Name = "ADMINNAME", Rank = 4, Phrase = "Owner :: Win", Avatar = true, PressValueInfo = {PressValue = "50", PressValueOn = true}};
  9. {Name = "ADMINNAME", Rank = 4, Phrase = "Owner :: Win", Avatar = false, PressValueInfo = {PressValue = "100", PressValueOn = false}};--thomas02333's Alt
  10. }
  11.  
  12. PrivateList = {}
  13.  
  14. --[[AntiBan = {
  15. {Name = "LuaModelMaker", Type = "Lag"};
  16. }
  17. ]]
  18.  
  19. RankInfo = {
  20. ["Lag"] = {"Lagged", "Really black"};
  21. ["Ban"] = {"Banned", "Camo"};
  22. [0] = {"Guest", "Mid gray"};
  23. [1] = {"Admin", "Lime green"}; -- Press 25
  24. [2] = {"Medium admin", "Really red"}; -- Press 50
  25. [3] = {"Mega Admin", "New Yeller"}; -- Press 45
  26. [4] = {"Creator", "Really blue", "Really black"}; -- Press 100
  27. }
  28.  
  29. Exiles = {
  30. {Name = "LastRegicide" , Reason = "Stealing thomas0233's AdminBricks" , Punishment = "Lag"};
  31. {Name = "eletronix" , Reason = "Hacking." , Punishment = "Lag"};
  32. {Name = "xROBLOXianBuilderx " , Reason = "Camball. Nuff' said." , Punishment = "Ban"};
  33. --{Name = "DragonWarlord101" , Reason = "Kicking/Potentially banning thomas0233 " , Punishment = "Lag"};
  34. {Name = "mountaindew717" , Reason = "Calling MAV2 a free model" , Punishment = "Ban"};
  35. {Name = "CammyDodger" , Reason = "Abusing CBA" , Punishment = "Ban"};
  36. --{Name = "jaredvaldez4" , Reason = "Being a nob and stealing places" , Punishment = "Ban"};
  37. --{Name = "ChanceTK2" , Reason = "being jaredvaldez4's alt" , Punishment = "Ban"};
  38. {Name = "Eric68" , Reason = "Using MAV1" , Punishment = "Ban"};
  39. {Name = "CodyStryker12" , Reason = "Using Mayhem Admin V1" , Punishment = "Lag"};
  40. {Name = "jacoslide101" , Reason = "Exploititng Mayhem Admin V1" , Punishment = "Lag"};
  41. --{Name = "apokalyps", Reason = "Stealing MAV2", Punishment = "Lag"};
  42. {Name = "lollypop8089", Reason = "Being a nob and pestering thomas0233 .", Punishment = "Lag"};
  43. {Name = "takota12345", Reason = "Threatning to hack thomas0233.", Punishment = "Lag"};
  44. {Name = "ugly65", Reason = "Not giving credit to LuaModelMaker on his pen.", Punishment = "Lag"};
  45. {Name = "Elduardo4", Reason = "Not giving credit to LuaModelMaker on his pen.", Punishment = "Lag"};
  46. {Name = "Mariohachem", Reason = "thomas0233's forever enemy.", Punishment = "Lag"};
  47. }
  48.  
  49. Settings = {
  50. PrivateOn = false;
  51. PrivateBanType = "Ban"; -- Ban or Lag
  52. HighlightWaitTime = 3;
  53. AntiGuest = false;
  54. }
  55. Commands = {"~Test", "~Commands", "~Say: [String]", "~Kill@[Player]","~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"}
  56. AllUniversalCommands = {"~UniversalCommands", "~Reset", "~Credit"}
  57. ReleasePhrases = {"~release", "~dismiss"}
  58. RandomLagMessages = {"Joo be laggin bro?", "LAGGG!", "Joo lagger", "LOL LAGGGG!", "W00t lag", "Joo mad Bro", "[ Laggified ]", "I Love[Lag] Joo"}
  59. MainRanks = {2,3}
  60. AutoRemoveWaitTime = 3
  61. TrigonometryDiskPeople = {"RATSwordsman"}
  62. --[[ Inportant values, DO NOT TOUCH ]]--
  63. FormattedCommands = {}
  64. AllFormattedUniversalCommands = {}
  65. FormattedSounds = {}
  66. AllDisks = {}
  67. SongPlaying = nil
  68.  
  69. Initialize = {
  70. ["FindRanks"] = function(Rank)
  71. for _,AllRanks in pairs(Admins) do
  72. for _, AllAdmins in pairs(Admins) do
  73. if AllRanks == AllAdmins.Rank then
  74. for _,ChosenAdmins in pairs(AllAdmins) do
  75. return game:GetService("Players")[ChosenAdmins.Name]
  76. end
  77. end
  78. end
  79. end
  80. end;
  81. ["Position"] = function(Player)
  82. CFrameNomral = nil
  83. CFrameAngles = nil
  84. Vector3Normal = nil
  85. if pcall(function() CFrameNormal = Player.Character.Torso.CFrame end) then else CFrameNormal = CFrame.new(0,50,0) end
  86. if pcall(function() CFrameNormal = Player.Character.Torso.CFrame * CFrame.Angles(0,0,0) end) then else CFrameNormal = CFrame.Angles(0,50,0) end
  87. if pcall(function() Vector3Normal = Player.Character.Torso.CFrame end) then else Vector3Normal = Vector3.new(0,50,0) end
  88. return {CFrameNormal, CFrameAngles, Vector3Normal}
  89. end;
  90. ["GetTime"] = {
  91. ["Regular"] = function()
  92. local SecondsOfToday = math.fmod(tick(), 60*60*24)
  93. local Hour = math.floor(SecondsOfToday / (60*60))
  94. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  95. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  96. if Hour > 12 then Hour = Hour - 12 end
  97. return Hour..":"..Minute..":".. Second
  98. end;
  99. ["Lighting"] = function()
  100. local SecondsOfToday = math.fmod(tick(), 60*60*24)
  101. local Hour = math.floor(SecondsOfToday / (60*60))
  102. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  103. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  104. return Hour..":"..Minute..":".. Second
  105. end;
  106. };
  107. ["CreateUniversalValue"] = function(ValueName, Value)
  108. _G[ValueName] = Value
  109. return _G[ValueName]
  110. end;
  111. ["GetType"] = {
  112. ["Compare"] = function(MainValue, OtherValues)
  113. for _, AllOtherValues in pairs(OtherValues) do
  114. if AllOtherValues == MainValue then
  115. return true
  116. else
  117. return false
  118. end
  119. end
  120. end;
  121. ["Get"] = function(Value)
  122. return type(Value)
  123. end;
  124. };
  125. ["FindClass"] = function(Path, ClassType)
  126. for i,v in pairs(Path) do
  127. if v:isA(ClassType) then
  128. return v
  129. end
  130. end
  131. end;
  132. ["Scan"] = function(Object)
  133. for _,Things in pairs(Object:GetChildren()) do
  134. return Things
  135. end
  136. end;
  137. }
  138. function Highlight(Player, Color)
  139. for _,Parts in pairs(Player.Character:GetChildren()) do
  140. if Parts.className == "Part" then
  141. local Box = Instance.new("SelectionBox", Parts)
  142. Box.Adornee = Parts
  143. Box.Color = BrickColor.new(Color)
  144. Box.Transparency = 0.3
  145. local Fire = Instance.new("Fire", Parts)
  146. Fire.Color = BrickColor.new(Color).Color
  147. Fire.SecondaryColor = BrickColor.new(Color).Color
  148. end
  149. end
  150. wait(Settings.HighlightWaitTime)
  151. for _,Parts in pairs(Player.Character:GetChildren()) do
  152. for _, Things in pairs(Parts:GetChildren()) do
  153. if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
  154. end
  155. end
  156. end
  157. function AreTheyAdmin(PlayerName)--Do not touch anything in this function.
  158. for _,SubTable in pairs(Admins) do
  159. if SubTable.Name == PlayerName then
  160. return true
  161. else
  162. return false
  163. end
  164. end
  165. end
  166. function LocalScript(Source, Parent, Speaker)
  167. if game.PlaceId == 20279777 then
  168. newLocalScript(Source, Parent)
  169. elseif game.PlaceId == 23232804 then
  170. NewLocalScript(Source, Parent)
  171. else
  172. _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
  173. end
  174. end
  175.  
  176. function Highlight(Player, Color)
  177. for _,Parts in pairs(Player.Character:GetChildren()) do
  178. if Parts.className == "Part" then
  179. local Box = Instance.new("SelectionBox", Parts)
  180. Box.Adornee = Parts
  181. Box.Color = BrickColor.new(Color)
  182. Box.Transparency = 0.3
  183. local Fire = Instance.new("Fire", Parts)
  184. Fire.Color = BrickColor.new(Color).Color
  185. Fire.SecondaryColor = BrickColor.new(Color).Color
  186. end
  187. end
  188. coroutine.resume(coroutine.create(function()
  189. wait(Settings.HighlightWaitTime)
  190. for _,Parts in pairs(Player.Character:GetChildren()) do
  191. for _, Things in pairs(Parts:GetChildren()) do
  192. if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
  193. end
  194. end
  195. end))
  196. end
  197.  
  198. function LocalScript(Source, Parent, Speaker)
  199. if game.PlaceId == 20279777 then
  200. newLocalScript(Source, Parent)
  201. elseif game.PlaceId == 23232804 then
  202. NewLocalScript(Source, Parent)
  203. else
  204. _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
  205. end
  206. end
  207. function FindSemiColon(String)
  208. local Place = 0
  209.  
  210. for i = 1, #String do
  211. if string.sub(String, i, i) == ";" then
  212. Place = i
  213. break
  214. end
  215. end
  216.  
  217. if Place ~= 0 then
  218. return {string.sub(String, 1, Place - 1), string.sub(String, Place + 1, -1)}
  219. else
  220. return {"", ""}
  221. end
  222. end
  223. function CalculateLookVector(Brick, Distance)
  224. return (Brick.CFrame + (Brick.CFrame.lookVector * Distance)).p
  225. end
  226. function CreateAvatar(Person,King)
  227. if Person.Character ~= nil then
  228.  
  229. local Phrase = nil
  230.  
  231. for _,Things in pairs(Workspace:GetChildren()) do
  232. for _,OtherThings in pairs(Things:GetChildren()) do
  233. if OtherThings.Name == Person.Name then Things:remove() end
  234. end
  235. end
  236. local Avatar = Instance.new("Part", Workspace)
  237. Avatar.Size = Vector3.new(3,4,3)
  238. Avatar.Name = "Avatar"
  239. Avatar.Transparency = 0.5
  240. Avatar.Position = Person.Character.Torso.Position
  241. Avatar.CanCollide = false
  242.  
  243. local Mesh = Instance.new("CylinderMesh", Avatar)
  244.  
  245. local BG = Instance.new("BodyGyro", Avatar)
  246. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  247.  
  248. local BP = Instance.new("BodyPosition", Avatar)
  249. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  250. BP.position = Person.Character.Torso.Position
  251.  
  252. local Fire = Instance.new("Fire", Avatar)
  253. Fire.Heat = 0
  254. Fire.Size = 7
  255.  
  256. local Decal = Instance.new("Decal", Avatar)
  257.  
  258. local Billboard = Instance.new("BillboardGui", Avatar)
  259. Billboard.Adornee = Avatar
  260. Billboard.Enabled = true
  261. Billboard.Active = true
  262. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  263. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  264.  
  265. local Text = Instance.new("TextLabel", Billboard)
  266. Text.BackgroundTransparency = 1
  267. Text.Size = UDim2.new(1, 0, 1, 0)
  268. Text.FontSize = "Size12"
  269. Text.Font = "Arial"
  270. Text.Name = " TEXT TROLOLOLOLOL "
  271.  
  272. local Check = Instance.new("BoolValue", Avatar)
  273. Check.Name = Person.Name
  274.  
  275. local ClickDetector = Instance.new("ClickDetector", Avatar)
  276. ClickDetector.MaxActivationDistance = math.huge
  277. ClickDetector.MouseClick:connect(function(Player)
  278. local function RemoveAvatar(ThePlayer, ChatOne)
  279. Avatar:remove()
  280. Note(ThePlayer, {{ChatOne, Random}, {"Rember, you can say ~Avatar for another avatar", Random}})
  281. end
  282. if Player == Person then
  283. RemoveAvatar(Player, "You have just removed your avatar")
  284. end
  285. for _,AllAdmins in pairs(Admins) do
  286. if AllAdmins.Name == Player.Name then
  287. if AllAdmins.Name ~= Person.Name then
  288. if AllAdmins.Rank == 3 then
  289. RemoveAvatar(Person, AllAdmins.Name.." has just removed your avatar because he is a king")
  290. end
  291. end
  292. end
  293. end
  294. end)
  295. for _, AllAdmins in pairs(Admins) do
  296. if Person.Name == AllAdmins.Name then
  297. Phrase = AllAdmins.Phrase
  298. if Phrase == nil then Phrase = "[ No Phrase ]" end
  299. Avatar.BrickColor = BrickColor.new(RankInfo[AllAdmins.Rank][2])
  300. Fire.Color = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  301. Fire.SecondaryColor = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  302. Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  303. Text.Text = "Mayhem Admin V2 -- "..RankInfo[AllAdmins.Rank][1].."("..AllAdmins.Rank.."/4); "..Person.Name..": "..Phrase
  304. if AllAdmins.Rank == 4 then
  305. local Box = Instance.new("SelectionBox", Avatar)
  306. Box.Adornee = Avatar
  307. Box.Transparency = 0.4
  308. Box.Color = BrickColor.new(RankInfo[AllAdmins.Rank][3])
  309. end
  310. end
  311. end
  312. coroutine.resume(coroutine.create(function() while wait() do
  313. Avatar:BreakJoints()
  314. BP.position = Person.Character.Torso.CFrame:toWorldSpace(CFrame.new(7,0,-2)).p + Vector3.new(0,6,0)
  315. BG.cframe = Person.Character.Torso.CFrame
  316. if pcall(function() Decal.Texture = Person.Character.Head.face.Texture end) then else Decal.Texture = "rbxasset://textures/face.png" end
  317. end end))
  318. end
  319. end
  320.  
  321. function Note(Player, TheTable)
  322. wait()
  323. local Table = TheTable
  324. Table[#Table + 1] = {"Mayhem Admin V2", "Deep blue"}
  325. local Spheres = {}
  326. for Arguments, Objects in pairs(Table) do
  327. local TheColor = nil
  328. if Objects[2] == Random then
  329. TheColor = BrickColor.random()
  330. else
  331. TheColor = BrickColor.new(Objects[2])
  332. end
  333.  
  334. local Sphere = Instance.new("Part", Workspace)
  335. Sphere.Size = Vector3.new(2,2,2)
  336. Sphere.Transparency = 0.5
  337. Sphere.BrickColor = TheColor
  338. Sphere.Name = "Sphere"
  339. Sphere.CanCollide = false
  340. Sphere.Position = Player.Character.Torso.Position
  341. Sphere.TopSurface = "Smooth"
  342. Sphere.BottomSurface = "Smooth"
  343. Sphere.Shape = "Ball"
  344. table.insert(Spheres, Sphere)
  345.  
  346. local Billboard = Instance.new("BillboardGui", Sphere)
  347. Billboard.Adornee = Disk
  348. Billboard.Enabled = true
  349. Billboard.Active = true
  350. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  351. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  352.  
  353. local Text = Instance.new("TextLabel", Billboard)
  354. Text.Text = Objects[1]
  355. Text.TextColor3 = TheColor.Color
  356. Text.BackgroundTransparency = 1
  357. Text.Size = UDim2.new(1, 0, 1, 0)
  358. Text.FontSize = "Size12"
  359. Text.Font = "ArialBold"
  360.  
  361. local Box = Instance.new("SelectionBox", Sphere)
  362. Box.Transparency = 0.4
  363. Box.Adornee = Sphere
  364. Box.Color = TheColor
  365.  
  366. local Fire = Instance.new("Fire", Sphere)
  367. Fire.Size = 6
  368. Fire.Heat = 0
  369. Fire.Color = TheColor .Color
  370. Fire.SecondaryColor = TheColor.Color
  371.  
  372. local BP = Instance.new("BodyPosition", Sphere)
  373. BP.position = Player.Character.Torso.Position
  374. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  375.  
  376. local BG = Instance.new("BodyGyro", Sphere)
  377. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  378.  
  379. Sphere:BreakJoints()
  380.  
  381. function Sin(i)
  382. return math.sin(math.rad(i))
  383. end
  384. function Cos(i)
  385. return math.cos(math.rad(i))
  386. end
  387. for i = 0,380,2.5 do
  388. BP.position = Player.Character.Torso.CFrame:toWorldSpace(CFrame.new(Vector3.new(Sin(i)*4, 1.5, Cos(i)*4))).p
  389. BG.cframe = CFrame.Angles(0,math.rad(i),0)
  390. wait()
  391. end
  392. Sphere:remove()
  393. end
  394. end
  395.  
  396. function _G.Output(Player, TheTable)
  397. wait()
  398. local Table = TheTable
  399. local Disks = {}
  400. local ClickedObject = nil
  401. CountedDisks = 0
  402. Table[#Table + 1] = {"Mayhem Admin V2", "Deep blue"}
  403. for Arguments, Objects in pairs(Table) do
  404. local TheColor = nil
  405. if Objects[2] == Random then
  406. TheColor = BrickColor.random()
  407. else
  408. TheColor = BrickColor.new(Objects[2])
  409. end
  410.  
  411. CountedDisks = CountedDisks + 1
  412.  
  413. local Disk = Instance.new("Part", Workspace)
  414. Disk.Size = Vector3.new(3, 0.2, 3)
  415. Disk.Transparency = 0.5
  416. Disk.BrickColor = TheColor
  417. Disk.Name = "Disk"
  418. Disk.CanCollide = false
  419. Disk.Position = Player.Character.Torso.Position
  420. table.insert(Disks, Disk)
  421.  
  422. local Billboard = Instance.new("BillboardGui", Disk)
  423. Billboard.Adornee = Disk
  424. Billboard.Enabled = true
  425. Billboard.Active = true
  426. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  427. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  428.  
  429. local Text = Instance.new("TextLabel", Billboard)
  430. Text.Text = Objects[1]
  431. Text.TextColor3 = TheColor.Color
  432. Text.BackgroundTransparency = 1
  433. Text.Size = UDim2.new(1, 0, 1, 0)
  434. Text.FontSize = "Size12"
  435. Text.Font = "ArialBold"
  436.  
  437. local Mesh = Instance.new("CylinderMesh", Disk)
  438.  
  439. local Box = Instance.new("SelectionBox", Disk)
  440. Box.Transparency = 0.4
  441. Box.Adornee = Disk
  442. Box.Color = TheColor
  443.  
  444. local ClickDetector = Instance.new("ClickDetector", Disk)
  445. ClickDetector.MaxActivationDistance = math.huge
  446.  
  447. local function RemoveFunction(Disk)
  448. DismissTypeUsed = "Click"
  449. DiskSelected = Disk
  450. for i,v in pairs(Disks) do
  451. pcall(function() v:remove() end)
  452. pcall(function() table.remove(Disks, v) end)
  453. end
  454. Disks = {}
  455. for i,v in pairs(Table) do
  456. pcall(function() table.remove(Table, v) end)
  457. end
  458. Table = {}
  459. end
  460. ClickDetector.MouseClick:connect(function(Person)
  461. if Person == Player then
  462. DismissTypeUsed = "Click"
  463. RemoveFunction(Objects[1])
  464. end
  465. end)
  466. Player.Chatted:connect(function(Message)
  467. for _,Phrases in pairs(ReleasePhrases) do
  468. if string.lower(Message) == Phrases then RemoveFunction() end
  469. DismissTypeUsed = "Chat"
  470. end
  471. end)
  472.  
  473. local Fire = Instance.new("Fire", Disk)
  474. Fire.Size = 6
  475. Fire.Heat = 0
  476. Fire.Color = TheColor .Color
  477. Fire.SecondaryColor = TheColor.Color
  478.  
  479. local BP = Instance.new("BodyPosition", Disk)
  480. BP.position = Player.Character.Torso.Position
  481. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  482.  
  483. local BG = Instance.new("BodyGyro", Disk)
  484. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  485.  
  486. Disk:BreakJoints()
  487. end
  488. coroutine.resume(coroutine.create(function()
  489. while wait() do
  490. if #Disks == 0 then break end
  491. for NumDisks, Disk in pairs(Disks) do
  492. local BP = Disk:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Disk)
  493. local BG = Disk:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Disk)
  494. local Radius = 6 + (#Disks)
  495. local Pos = (Player.Character:FindFirstChild("Torso") or Player.Character:FindFirstChild("Torso")).CFrame
  496.  
  497. local X = math.cos((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi) * Radius
  498. local Y = 0
  499. local Z = math.sin((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi) * Radius
  500.  
  501. BP.position = Pos:toWorldSpace(CFrame.new(X,Y,Z):inverse()).p
  502. BG.cframe = CFrame.new(Disk.Position, Pos.p) * CFrame.Angles(math.rad(120), 0, 0)
  503. end
  504. end
  505. end))
  506. if DismissTypeUsed == "Click" then
  507. return DiskSelected
  508. end
  509. end
  510.  
  511. function FindThePlayer(WhatIsSaid, TheSpeaker)
  512. Players = game:GetService("Players"):GetPlayers()
  513. AllPlayerThatAreFound = {}
  514. if string.lower(WhatIsSaid) == "all" then
  515. return Players
  516. else
  517. for i,v in pairs(Players) do
  518. if string.lower(string.sub(v.Name,1,#WhatIsSaid)) == string.lower(WhatIsSaid) then
  519. table.insert(AllPlayerThatAreFound ,v)
  520. end
  521. end
  522. if #WhatIsSaid == 0 then
  523. _G.Output(TheSpeaker, {{WhatIsSaid.." was not found", Random}})
  524. end
  525. end
  526. return AllPlayerThatAreFound
  527. end
  528.  
  529. function Lag(Player)
  530. coroutine.wrap(function() while wait() do
  531. coroutine.wrap(function() for i = 1,10 do
  532. for i = 1,100 do
  533. local Message = Instance.new("Message", Player.PlayerGui)
  534. Message.Text = RandomLagMessages[math.random(1, #RandomLagMessages)]
  535. end
  536. end end)()
  537. end end)()
  538. end
  539.  
  540. function Crash(Player) --Testing
  541. local BP = Instance.new("BodyPosition", Player.Character.Torso)
  542. BP.Name = "Crash Position"
  543. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  544. for i = 1,200 do
  545. wait()
  546. BP.position = Vector3.new(math.huge, 0-i, math.huge)
  547. end
  548. end
  549.  
  550. function PressValue(Player)
  551. for _,AllAdmins in pairs(Admins) do
  552. if Player.Name == AllAdmins.Name then
  553. coroutine.wrap(function() while wait() do
  554. if Player.PressValueBool.Value == false and AllAdmins.PressValueInfo.PressValueOn == true then
  555. local BBGUI1 = Instance.new("BillboardGui", Player.Character.Head)
  556. BBGUI1.Name = "PressValue"
  557. BBGUI1.Adornee = Player.Character.Head
  558. BBGUI1.Enabled = true
  559. BBGUI1.Active = true
  560. BBGUI1.Size = UDim2.new(0.3, 0, 0.05, 0)
  561. BBGUI1.ExtentsOffset = Vector3.new(0, 2.5, 0)
  562. BBGUI1.SizeOffset = Vector2.new(-12.5, 0)
  563.  
  564. local Frame1 = Instance.new("Frame", BBGUI1)
  565. Frame1.BackgroundColor3 = Color3.new(1,0,0)
  566. Frame1.Size = UDim2.new(25,0,3)
  567.  
  568. local Frame2 = Instance.new("Frame", BBGUI1)
  569. Frame2.BackgroundColor3 = Color3.new(0,0.50196078431373,0)
  570.  
  571.  
  572. local BBGUI2 = Instance.new("BillboardGui", Player.Character.Head)
  573. BBGUI2.Name = "PressValueText"
  574. BBGUI2.Adornee = Player.Character.Head
  575. BBGUI2.Enabled = true
  576. BBGUI2.Active = true
  577. BBGUI2.Size = UDim2.new(0.3, 0, 0.05, 0)
  578. BBGUI2.ExtentsOffset = Vector3.new(0, 2.5, 0)
  579. BBGUI2.SizeOffset = Vector2.new(0,0)
  580. BBGUI2.StudsOffset = Vector3.new(0,1,0)
  581.  
  582. local Text = Instance.new("TextLabel", BBGUI2)
  583. Text.BackgroundTransparency = 1
  584. Text.Size = UDim2.new(1, 0, 1, 0)
  585. Text.FontSize = "Size12"
  586. Text.Font = "ArialBold"
  587.  
  588. Frame2.Size = UDim2.new(AllAdmins.PressValueInfo.PressValue/4, 0,3,0)
  589. Text.Text = "Mayhem Admin V2; "..Player.Name..": "..RankInfo[AllAdmins.Rank][1].."("..AllAdmins.PressValueInfo.PressValue.."%)"
  590. Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  591. Player.CharacterAdded:connect(function()
  592. Player.PressValueBool.Value = false
  593. end)
  594. Player.PressValueBool.Value = true
  595. end
  596. end end)()
  597. end
  598. end
  599. end
  600.  
  601. function Chat(Speaker, Message)
  602. for _,AllAdmins in pairs(Admins) do
  603. if Speaker.Name == AllAdmins.Name then
  604. local Rank = AllAdmins.Rank
  605. local AdminPressValue = AllAdmins.PressValueInfo.PressValue
  606. if string.sub(string.lower(Message),1,5) == "~test" then
  607. _G.Output(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}})
  608. Note(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}}) -- Tests Note
  609.  
  610. elseif string.sub(string.lower(Message),1,9) == "~commands" then
  611. for _,AllCommands in pairs(Commands) do
  612. table.insert(FormattedCommands, {AllCommands, Random})
  613. end
  614. _G.Output(Speaker, FormattedCommands)
  615. wait()
  616. FormattedCommands = {}
  617.  
  618. elseif string.sub(string.lower(Message),1,6) == "~say: " then
  619. _G.Output(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
  620. Note(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
  621. elseif string.sub(Message,1,6):lower() == "~kill@" then
  622. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  623. for i,v in pairs(Players) do
  624. if v ~= nil then
  625. v.Character:BreakJoints()
  626. Highlight(v, "Really black")
  627. end
  628. end
  629. elseif string.sub(Message,1,9):lower() == "~explode@" then
  630. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  631. for i,v in pairs(Players) do
  632. if v ~= nil then
  633. local Ex = Instance.new("Explosion", workspace)
  634. Ex.Position = v.Character.Torso.Position
  635. Highlight(v, "Really red")
  636. end
  637. end
  638.  
  639. elseif string.sub(Message,1,6):lower() == "~kick@" then
  640. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  641. for i,v in pairs(Players) do
  642. if v ~= nil then
  643. v:Destroy()
  644. end
  645. end
  646. elseif string.sub(Message,1,5):lower() == "~ban@" then
  647. local Players = FindThePlayer(string.sub(Message,6),Speaker)
  648. for i,v in pairs(Players) do
  649. if v ~= nil then
  650. v:Destroy()
  651. table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Ban"})
  652. _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Really red"}})
  653. end
  654. end
  655. elseif string.sub(Message,1,5):lower() == "~lag@" then
  656. Players = FindThePlayer(string.sub(Message,6),Speaker)
  657. for i,v in pairs(Players) do
  658. if v ~= nil then
  659. table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Lag"})
  660. Lag(v)
  661. _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Lime green"}})
  662. Highlight(v, "Olive")
  663. end
  664. end
  665. elseif string.sub(Message,1,8):lower() == "~punish@" then
  666. local Players = FindThePlayer(string.sub(Message,9),Speaker)
  667. for i,v in pairs(Players) do
  668. if v ~= nil then
  669. v.Character.Parent = game:GetService("Lighting")
  670. end
  671. end
  672. elseif string.sub(Message,1,10):lower() == "~unpunish@" then
  673. Players = FindThePlayer(string.sub(Message,11),Speaker)
  674. for i,v in pairs(Players) do
  675. if v ~= nil then
  676. v.Character.Parent = Workspace v:MakeJoints()
  677. end
  678. end
  679.  
  680. elseif string.sub(Message,1,9):lower() == "~respawn@" then
  681. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  682. for i,v in pairs(Players) do
  683. if v ~= nil then
  684. v.Character.Parent = nil
  685. v:LoadCharacter()
  686. end
  687. end
  688. elseif string.lower(Message) == "~shutdown" and Rank >= 3 then
  689. Instance.new("ManualGlue", Instance.new("ManualSurfaceJointInstance", Workspace))
  690. elseif string.lower(Message) == "~lagdown" == 4 then
  691. while wait() do
  692. for i = 1,1000 do
  693. for i = 1,100 do
  694. local Message = Instance.new("Message", Workspace)
  695. Message.Text = RandomLagMessages[math.random(1,#RandomLagMessages)]
  696. end
  697. for _,Players in pairs(game:GetService("Players"):GetChildren()) do
  698. local Fire = Instance.new("Fire", Players.Character.Torso)
  699. Fire.Size = 30
  700. Fire.Heat = 30
  701. local Sparkles = Instance.new("Sparkles", Players.Character.Torso)
  702. local Box = Instance.new("SelectionBox", Players.Character.Torso)
  703. end
  704. end
  705. end
  706. elseif string.lower(Message) == "~die" and Rank == 4 then
  707. _G.Output(Speaker,{{"Are you sure "..Speaker.Name.."?", "New Yeller"},{"Say ~Yes to continue", "Bright green"},{"Say ~No to cancel", "Really red"}})
  708. Note(Speaker, {{"I got to go? =(", Random}})
  709. Speaker.Chatted:connect(function(OtherMessage)
  710. if OtherMessage:lower() == "~yes" then
  711. for _,Things in pairs(Workspace:GetChildren()) do
  712. if Things.Name == "Disk" or Things.Name == "Avatar" or Things.Name == "Sphere" then Things:remove() end
  713. end
  714. while wait() do
  715. Admins = nil
  716. Exiles = nil
  717. OtherMessage = nil
  718. Message = nil
  719. _G.Output = nil
  720. Script.Parent = Workspace
  721. Script.Disabled = true
  722. Script:remove()
  723. end
  724. elseif OtherMessage:lower() == "~no" then
  725. return
  726. end
  727. end)
  728. elseif string.sub(Message,1,4):lower() == "~ff@" then
  729. local Players = FindThePlayer(string.sub(Message,5),Speaker)
  730. for i,v in pairs(Players) do
  731. if v ~= nil then
  732. Instance.new("ForceField", v.Character)
  733. end
  734. end
  735. elseif string.sub(Message,1,6):lower() == "~unff@" then
  736. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  737. for i,v in pairs(Players) do
  738. for _,Things in pairs(v:GetChildren()) do
  739. if v ~= nil then
  740. if Things.className == "ForceField" then Things:remove() end
  741. end
  742. end
  743. end
  744. elseif string.lower(Message) == "~clean" then
  745. for i,v in pairs(workspace:GetChildren()) do
  746. if game.Players:GetPlayerFromCharacter(v) == nil then
  747. if v.className ~= "Terrain" then
  748. if v.className ~= "Camera" then
  749. pcall(function() v:Destroy() end)
  750. end
  751. end
  752. end
  753. end
  754. local Base = Instance.new("Part", Game:GetService("Workspace"))
  755. Base.Size = Vector3.new(3000, 1, 3000)
  756. Base.CFrame = CFrame.new(0, 0, 0)
  757. Base.Name = "Base"
  758. Base.BrickColor = BrickColor.new("Dark green")
  759. Base.TopSurface = "Studs"
  760. Base.BottomSurface = "Smooth"
  761. Base.FrontSurface = "Smooth"
  762. Base.Anchored = true
  763. Base.Locked = true
  764.  
  765. elseif string.sub(Message,1,7):lower() == "~sound;" then
  766. if string.sub(string.lower(Message),8,14) == "play: " then
  767. if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
  768. for _,AllSounds in pairs(Sounds) do
  769. if string.sub(Message,15) == AllSounds.Name then
  770. local Sound = Instance.new("Sound", Workspace)
  771. Sound.Pitch = AllSounds.Pitch
  772. Sound.SoundId = "http://www.roblox.com/asset/?id="..AllSounds.ID
  773. SongPlaying = Sound
  774. wait()
  775. Sound:Play()
  776. end
  777. end
  778. elseif string.sub(string.lower(Message),8,12) == "stop" then
  779. if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
  780. elseif string.sub(string.lower(Message),8,21) == "current sound" then
  781. if SongPlaying ~= nil then _G.Output(Speaker, {{"Current sound; Name: "..CurrentSong.Name..", Sound ID: "..CurrentSong.SoundId, Random}}) end
  782. elseif string.sub(string.lower(Message),8,15) == "pitch: " then
  783. if SongPlaying ~= nil then SongPlaying.Pitch = string.sub(Message,16) end
  784.  
  785. elseif string.sub(string.lower(Message),8,12) == "help" then
  786. _G.Output(Speaker, {{"~Sound;Play: [Sound]", Random}, {"~Sound;Stop", Random}, {"~Sound;Pitch: [Int]", Random},{"~Sound;Help", Random}, {"~Sound;List", Random}})
  787.  
  788. elseif string.sub(string.lower(Message),8,12) == "list" then
  789. for _, AllSounds in pairs(Sounds) do
  790. table.insert(FormattedSounds, {AllSounds.Name.." (ID: "..AllSounds.ID..")", Random})
  791. end
  792. _G.Output(Speaker, FormattedSounds)
  793. wait()
  794. FormattedSounds = {}
  795. end
  796. elseif string.sub(Message,1,11):lower() == "~invisible@" then
  797. Players = FindThePlayer(string.sub(Message,12),Speaker)
  798. if v ~= nil then
  799. for __,GetThings in pairs(Players) do
  800. for _,Things in pairs(GetThings.Character) do
  801. if Things:isA("Hat") then
  802. Things.Handle.Transparency = 1
  803. elseif Things:isA("Part") then
  804. Things.Transparency = 1
  805. end
  806. end
  807. end
  808. end
  809. elseif string.sub(Message,1,9):lower() == "~visible@" then
  810. Players = FindThePlayer(string.sub(Message,10),Speaker)
  811. if v ~= nil then
  812. for __,GetThings in pairs(Players) do
  813. for _,Things in pairs(GetThings.Character) do
  814. if Things:isA("Hat") then
  815. Things.Handle.Transparency = 0
  816. elseif Things:isA("Part") then
  817. Things.Transparency = 0
  818. end
  819. end
  820. end
  821. end
  822. elseif string.sub(string.lower(Message),1,6) == "~data;" then
  823. if string.sub(string.lower(Message),7,10) == "get" then
  824. local NRN = #game:GetService("NetworkServer"):GetChildren()
  825. local PN = #game:GetService("Players"):GetChildren()
  826. _G.Output(Speaker, {{"Network recipents: "..NRN, Random}, {"Players: "..PN, Random}, {"Admins: "..#Admins, Random}, {"Exiles: "..#Exiles, Random}, {"Singular clients: "..NRN-PN, Random}, {"Commands: "..#Commands, Random}})
  827. elseif string.sub(string.lower(Message),7,11) == "edit" then
  828. _G.Output(Speaker, {{"This command hasn't came out yet", "Lime green"}})
  829. elseif string.sub(Message,7):lower() == "compare" then
  830. local PN = #game:GetService("Players"):GetChildren()
  831. local NRN = #game:GetService("NetworkServer"):GetChildren()
  832. if NRN > PN then
  833. _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}})
  834. else
  835. _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}})
  836. end
  837. elseif string.sub(Message,7):lower() == "listplayers" then
  838. Players = {{"There are "..tostring(#game:GetService("Players"):GetChildren()).." Players.", "Bright red"}}
  839. for _,Player in pairs(game.NetworkServer:children()) do
  840. table.insert(Players,{Player:GetPlayer().Name, Random})
  841. end
  842. _G.Output(Speaker, Players)
  843. Players = {}
  844. elseif string.sub(Message,7):lower() == "help" then
  845. _G.Output(Speaker,{{"~Data;ListPlayers", Random},{"~Data;Edit", Random}, {"~Data;Get", Random}, {"~Data;Compare", Random},{"~Data;Count", Random}})
  846. elseif string.sub(Message,7):lower() == "count" then
  847. SN = {}
  848. PN = {}
  849. ON = {}
  850. PLN = {}
  851. CN = {}
  852. for i,v in pairs(game.Workspace:GetChildren()) do
  853. if v:isA("Part") then
  854. table.insert(PN,v)
  855. elseif v:isA("Script") then
  856. table.insert(SN,v)
  857. else
  858. table.insert(ON,v)
  859. end
  860. end
  861. for _,v in pairs(game.Players:GetChildren()) do
  862. table.insert(PLN,v)
  863. end
  864. for i,v in pairs(game.NetworkServer:GetChildren()) do
  865. table.insert(CN,v)
  866. end
  867. _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}})
  868. SN = {}
  869. PN = {}
  870. CN = {}
  871. PLN = {}
  872. ON = {}
  873. else
  874. _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}})
  875. end
  876. elseif string.sub(Message,1,7):lower() == "~admin@" and Rank == 4 then
  877. Players = FindThePlayer(string.sub(Message,8),Speaker)
  878. for _,v in pairs(Players) do
  879. if v ~= nil then
  880. _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"}})
  881. Speaker.Chatted:connect(function()
  882. if string.sub(string.lower(Message),1,7) == "~cancel" then
  883. return
  884. 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
  885. table.insert(Admins, {Name = v.Name, Rank = string.sub(Message,2),PressValueInfo = {PressValue = 50 , PressValueOn = false}})
  886. Rechat(v)
  887. end
  888. end)
  889. end
  890. end
  891. elseif string.sub(Message,1,9):lower() == "~awesome@" then
  892. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  893. for i,v in pairs(Players) do
  894. if v ~= nil then
  895. v.Character.Humanoid.MaxHealth = math.huge
  896. Highlight(v, "Really blue")
  897. end
  898. end
  899. elseif string.sub(Message,1,5):lower() == "~pri;" and Rank >= 3 then
  900. if string.sub(Message,6):lower() == "on" then
  901. _G.Output(Speaker, {{"Turned the PRI on.", Random}})
  902. Settings.PrivateOn = true
  903. elseif string.sub(Message,6):lower() == "off" then
  904. Settings.PrivateOn = false
  905. _G.Output(Speaker, {{"Turned the PRI off.", Random}})
  906. elseif string.sub(Message,6,10):lower() == "add@" then
  907. Name = string.sub(Message,11)
  908. table.insert(PrivateList, Name)
  909. _G.Output(Speaker, {{"Added "..Name.." to Pri"}, Random})
  910. elseif string.sub(Message,6,9):lower() == "settype;" then
  911. if string.sub(Message,10):lower() == "lag" then
  912. Settings.PrivateBanType = "Lag"
  913. _G.Output(Speaker, {{"Pri type is now lag.", Random}})
  914. elseif string.sub(Message,10):lower() == "ban" then
  915. Settings.PrivateBanType = "Ban"
  916. _G.Output(Speaker, {{"Pri type is now ban.", Random}})
  917. end
  918. end
  919. elseif string.lower(Message) == "~pristatus" then
  920. if Settings.PrivateOn == true then
  921. _G.Output(Speaker, {{"PRI is currently on and the type is "..Settings.PrivateBanType, Random}})
  922. else
  923. _G.Output(Speaker, {{"PRI is currently off and the type is "..Settings.PrivateBanType, Random}})
  924. end
  925. elseif string.lower(Message) == "~avatar" then
  926. if Rank ~= 4 then
  927. CreateAvatar(Speaker, false)
  928. else
  929. CreateAvatar(Speaker, true)
  930. end
  931. elseif string.sub(Message,1,8):lower() == "~midget@" then
  932. Players = FindThePlayer(string.sub(Message,9),Speaker)
  933. for i,v in pairs(Players) do
  934. c = v.Character
  935. ll = c:FindFirstChild("Left Leg")
  936. la = c:FindFirstChild("Left Arm")
  937. rl = c:FindFirstChild("Right Leg")
  938. ra = c:FindFirstChild("Right Arm")
  939. if ll ~= nil then
  940. ll:Destroy()
  941. end
  942. if la ~= nil then
  943. la:Destroy()
  944. end
  945. if rl ~= nil then
  946. rl:Destroy()
  947. end
  948. if ra ~= nil then
  949. ra:Destroy()
  950. end
  951. end
  952. elseif string.sub(Message,1,5):lower() == "~time" then
  953. local TheTime = Initialize.GetTime.Regular()
  954. coroutine.wrap(function() while wait() do TheTime = Initialize.GetTime.Regular() end end)()
  955. Note(Speaker, {{"Time: "..TheTime, "Really blue"}})
  956. elseif string.sub(Message,1,7):lower() == "~note: " then
  957. Note(Speaker, {{ Speaker.Name.." : "..string.sub(Message,8), Random}})
  958. elseif string.sub(Message,1,7):lower() == "~ping: " then
  959. for i,v in pairs(game.Players:GetChildren()) do
  960. Note(v, {{Speaker.Name.." : "..string.sub(Message,8), Random}})
  961. end
  962. elseif string.sub(Message,1,7):lower() == "~ranks;" then
  963. if string.sub(Message,8,14):lower() == "exiles" then
  964. local FormattedExiles = {{"Here are the "..#Exiles.." Exiles", Random}}
  965. for _,AllExiles in pairs(Exiles) do
  966. table.insert(FormattedExiles, {AllExiles.Name.." got the "..AllExiles.Punishment.." treatment for "..AllExiles.Reason, RankInfo[AllExiles.Punishment][2]})
  967. end
  968. _G.Output(Speaker, FormattedExiles)
  969. FormattedExiles = {}
  970. elseif string.sub(Message,8,14):lower() == "admins" then
  971. local FormattedAdmins = {{"Here are the "..#Admins.." Admins", Random}}
  972. for _,AllAdmins in pairs(Admins) do
  973. table.insert(FormattedAdmins, {AllAdmins.Name.." is a "..RankInfo[AllAdmins.Rank][1]..", "..AllAdmins.Rank.."/4; "..AllAdmins.PressValueInfo.PressValue.."%", RankInfo[AllAdmins.Rank][2]})
  974. end
  975. _G.Output(Speaker, FormattedAdmins)
  976. FormattedAdmins = {}
  977. end
  978. elseif string.sub(Message,1,11) == "~HoverSeat@" then
  979. Players = FindThePlayer(string.sub(Message,12))
  980. for i,v in pairs(Players) do
  981. local ride = Instance.new("VehicleSeat", Workspace)
  982. ride.Position = v.Character.Torso.Position
  983. ride.HeadsUpDisplay = false
  984. local bg = Instance.new("BodyGyro", ride)
  985. bg.maxTorque = Vector3.new(1e10,1e10,1e10)
  986. local bp = Instance.new("BodyPosition", ride)
  987. bp.position = v.Character.Torso.Position
  988. bp.maxForce = Vector3.new(1e10,1e10,1e10)
  989. while wait() do
  990. bg.cframe = bg.cframe * CFrame.Angles(0,math.pi/60*(-ride.Steer),0)
  991. bp.position = bp.position + bg.cframe.lookVector*ride.Throttle
  992. end
  993. end
  994. elseif string.lower(Message) == "~antiguest" then
  995. if Settings.AntiGuest == false then
  996. Settings.AntiGuest = true
  997. Output(Speaker, {{"Anti-Guest is now on.", Random}})
  998. else
  999. Settings.AntiGuest = false
  1000. Output(Speaker, {{"Anti-Guest is now off.", Random}})
  1001. end
  1002. elseif string.sub(Message,1,6):lower() == "~warp@" then
  1003. SemiColon = FindSemiColon(string.sub(Message,7))
  1004. PlayerPart = SemiColon[1]
  1005. Position = SemiColon[2]
  1006. Position = tonumber(Position)
  1007. Players = FindThePlayer(PlayerPart)
  1008. for _, Player in pairs(players) do
  1009. Torso = Player.Character.Torso
  1010. pcall(function() Torso.CFrame = CFrame.new(CalculateLookVector(Torso, Position)) end)
  1011. end
  1012. end
  1013. end
  1014. end
  1015. end
  1016.  
  1017. function UniversalCommands(Speaker,Message)
  1018. if string.lower(Message) == "~universalcommands" then
  1019. for _,AllTheUniversalCommands in pairs(AllUniversalCommands) do
  1020. table.insert(AllFormattedUniversalCommands, {AllTheUniversalCommands, Random})
  1021. end
  1022. _G.Output(Speaker, AllFormattedUniversalCommands, "Credit")
  1023. wait()
  1024. AllFormattedUniversalCommands = {}
  1025. elseif string.lower(Message) == "~reset" then
  1026. Speaker.Character = Instance.new("Humanoid",Instance.new("Model",workspace)).Parent
  1027. elseif string.lower(Message) == "~credit" then
  1028. _G.Output(Speaker, {{"Thanks RATSwordsman for Disks, Notes, and Idea", Random}, {"Thanks RATSwordsman for commands, Some non-trigonometry part of the Disks and Ideas", Random},{"CR@CK3D&LE@K3D BY RATSWORDSMAN :: LICENSE: LIFETIME LOL",Random}}, "Credit")
  1029. end
  1030. end
  1031.  
  1032. function Rechat(ThePlayer)
  1033. ThePlayer.Chatted:connect(function(Text) Chat(Player, Text) end)
  1034. end
  1035.  
  1036. for _, AllTheUniversalCommands in pairs(AllUniversalCommands) do
  1037. table.insert(Commands, AllTheUniversalCommands)
  1038. end
  1039.  
  1040. for _,Peoplez in pairs(game.Players:GetChildren()) do
  1041. Peoplez.Chatted:connect(function(Text) Chat(Peoplez, Text) end)
  1042. Peoplez.Chatted:connect(function(Text) UniversalCommands(Peoplez, Text) end)
  1043. for i,AllAdmins in pairs(Admins) do
  1044. if Peoplez.Name == AllAdmins.Name then
  1045. if AllAdmins.Rank >= 3 then
  1046. _G.Output(Peoplez, {{"Hello "..Peoplez.Name..", you are an admin for Mayhem Admin V2, your rank is "..RankInfo[AllAdmins.Rank][1], RankInfo[AllAdmins.Rank][2]}, {"Say ~Commands for all commands", "Really red"}})
  1047. local PV = Instance.new("BoolValue", Peoplez)
  1048. PV.Value = false
  1049. PV.Name = "PressValueBool"
  1050. PressValue(Peoplez)
  1051. if AllAdmins.Avatar == true then wait() CreateAvatar(Peoplez) end
  1052. end
  1053. end
  1054. end
  1055. for i,Exiled in pairs(Exiles) do
  1056. if Peoplez.Name == Exiled.Name then
  1057. if Exiled.Punishment == "Lag" then
  1058. Lag(Peoplez)
  1059. for _,Player in pairs(game.Players:GetChildren()) do
  1060. if AreTheyAdmin(Player.Name) then --== true
  1061. if ThePlayer.Rank == 3 then
  1062. Note(Player , {{Peoplez.Name.." was "..Exiled.Punishment.."ged for being "..Exiled.Reason, "Really red"}})
  1063. end
  1064. end
  1065. end
  1066. elseif Exiled.Punishment == "Ban" then
  1067. Peoplez:Destroy()
  1068. for _,Player in pairs(game.Players:GetChildren()) do
  1069. if AreTheyAdmin(Player.Name) == true then
  1070. if ThePlayer.Rank == 3 then
  1071. Note(Player, {{Peoplez.Name.." was "..Exiled.Punishment.."ned for being "..Exiled.Reason, "Really red"}})
  1072. end
  1073. end
  1074. end
  1075. elseif Settings.AntiGuest == true then
  1076. if string.sub(Player.Name,1,6) == "Guest " then
  1077. Player:Destroy()
  1078. end
  1079. end
  1080. end
  1081. end
  1082. end
  1083.  
  1084. function OnEntered(Player)
  1085. Player.Chatted:connect(function(Text) Chat(Player, Text) end)
  1086. Player.Chatted:connect(function(Text)UniversalCommands(Player, Text) end)
  1087. for i,AllAdmins in pairs(Admins) do
  1088. if Player.Name == AllAdmins.Name then
  1089. _G.Output(Player, {{"Hello "..Player.Name..", you are an admin for Mayhem Admin V2, your rank is "..RankInfo[AllAdmins.Rank][1], RankInfo[AllAdmins.Rank][2]}, {"Say ~Commands for all commands", "Really red"}})
  1090. local PV = Instance.new("BoolValue", Player)
  1091. PV.Value = false
  1092. PV.Name = "PressValueBool"
  1093. PressValue(Player)
  1094. if AllAdmins.Avatar == true then wait() CreateAvatar(Player) end
  1095. else
  1096. if Settings.PrivateOn == true then
  1097. for _,PeopleInPri in pairs(PrivateList) do
  1098. if PeopleInPri ~= Player.Name then
  1099. if Settings.PrivateBanType == "Ban" then
  1100. Player:Destroy()
  1101. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1102. if AreTheyAdmin(ThePlayer.Name) == true then
  1103. wait(0.5)
  1104. _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
  1105. wait(0.5)
  1106. end
  1107. end
  1108. elseif Settings.PrivateBanType == "Lag" then
  1109. Lag(Player)
  1110. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1111. if AreTheyAdmin(ThePlayer.Name) == true then
  1112. wait(0.5)
  1113. _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
  1114. wait(0.5)
  1115. end -- ENDZ! XD
  1116. end
  1117. end
  1118. end
  1119. end
  1120. end
  1121. end
  1122. end
  1123. for i,Exiled in pairs(Exiles) do
  1124. if Player.Name == Exiled.Name then
  1125. if Exiled.Punishment == "Lag" then
  1126. Lag(Player)
  1127. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1128. for _,AllAdmins in pairs(Admins) do
  1129. if ThePlayer.Rank == AllAdmins.Name then
  1130. if AllAdmins.Rank == 3 then
  1131. Note(ThePlayer, {{Player.Name.." was "..Exiled.Punishment.."ged for being "..Exiled.Reason, "Really red"}})
  1132. end
  1133. end
  1134. end
  1135. end
  1136. elseif Exiled.Punishment == "Ban" then
  1137. Player:Destroy()
  1138. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1139. for _,AllAdmins in pairs(Admins) do
  1140. if ThePlayer.Rank == AllAdmins.Name then
  1141. if AllAdmins.Rank == 3 then
  1142. Note(ThePlayer , {{Player.Name.." was "..Exiled.Punishment.."ned for being "..Exiled.Reason, "Lime green"}})
  1143. end
  1144. end
  1145. end
  1146. end
  1147. elseif Settings.AntiGuest == true then
  1148. if string.sub(Player.Name,1,6) == "Guest " then
  1149. Player:Destroy()
  1150. end
  1151. end
  1152. end
  1153. end
  1154. end
  1155.  
  1156. game:GetService("Players").PlayerAdded:connect(function(Player) OnEntered(Player) end)
  1157.  
  1158. print("Loaded Mayhem Admin V2 by RATSwordsman")
  1159. print("CR@CK3D&L33K3D BY RATSWORDSMAN@r/avaricious!")
  1160. print("LICENSE: LIF3T1M3 LOL")
  1161. --[[
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170. FakeMessage = "Hia"
  1171. Started = false
  1172.  
  1173. function Start()
  1174. function Output(Message)
  1175. if pcall(function() game:GetService("Players"):Chat(Message) end) then else print(Message) end
  1176. end
  1177.  
  1178.  
  1179. function FindThePlayer(PlayerName)
  1180. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1181. if string.lower(string.sub(v.Name,1,#PlayerName)) == string.lower(PlayerName) then
  1182. return v
  1183. end
  1184. end
  1185. end
  1186.  
  1187. function ChatCommands(Message)
  1188. if string.lower(Message) == "test" then
  1189. Output("Yep. I work")
  1190.  
  1191. elseif string.sub(string.lower(Message),1,6) == "spam: " then
  1192. for i = 1,100 do
  1193. wait()
  1194. Output("SPAM CHAT #"..i..": "..string.sub(Message,7))
  1195. end
  1196.  
  1197. elseif string.sub(string.lower(Message),1,8) == "insert: " then
  1198. game:GetService("InsertService"):LoadAsset(string.sub(Message, 9))
  1199.  
  1200. elseif string.lower(Message) == "save" then
  1201. Output("Saving...")
  1202. game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
  1203. game:ServerSave()
  1204. Output("Game saved")
  1205.  
  1206. elseif string.lower(Message) == "destroy place" then
  1207. game:ClearContent(true)
  1208. game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
  1209. game:ServerSave()
  1210. game:Shutdown()
  1211.  
  1212. elseif string.sub(string.lower(Message),1,10) == "max kbps: " then
  1213. game:GetService("NetworkServer"):SetOutgoingKBPSLimit(string.sub(Message, 11))
  1214. Output("The server's KBPS is now "..string.sub(Message, 11))
  1215.  
  1216. elseif string.sub(string.lower(Message),1,5) == "chat@" then
  1217. local Player = FindThePlayer(string.sub(string.lower(Message), 7))
  1218. if Player ~= nil then
  1219. Player:SetSuperSafeChat(false)
  1220. Output(Player.Name.." can now talk")
  1221. end
  1222.  
  1223. elseif string.sub(string.lower(Message),1,7) == "dechat@" then
  1224. local Player = FindThePlayer(string.sub(string.lower(Message), 8))
  1225. if Player ~= nil then
  1226. Player:SetSuperSafeChat(true)
  1227. Output(Player.Name.." can not talk")
  1228. end
  1229. elseif Message == "I can only see menu chats." then
  1230. game:GetService("Players").LocalPlayer:SetSuperSafeChat(false)
  1231.  
  1232. elseif string.sub(string.lower(Message),1,10) == "shutdown; " then
  1233. if string.sub(string.lower(Message),11) == "regular" then
  1234. game:Shutdown()
  1235. elseif string.sub(string.lower(Message),11) == "disconnect" then
  1236. game:GetService("NetworkServer").RobloxLocked = false
  1237. game:GetService("NetworkServer"):remove()
  1238. elseif string.sub(string.lower(Message),11) == "crash" then
  1239. crash__()
  1240. end
  1241.  
  1242. elseif string.sub(string.lower(Message),1,7) == "friend@" then
  1243. local Player = FindThePlayer(string.sub(string.lower(Message), 8))
  1244. if Player ~= nil then
  1245. game:GetService("Players").LocalPlayer:RequestFriendship(Player)
  1246. Output("Hey "..Player.Name.." can you be my friend?")
  1247. end
  1248.  
  1249. elseif string.sub(string.lower(Message),1,2) == "c/" then
  1250. local Function, Error = loadstring(string.sub(Message, 3))
  1251. if Function then
  1252. local Succ, Fail = pcall(Function)
  1253. if not Succ and Fail then
  1254. Output("Script error: "..Fail)
  1255. end
  1256. else
  1257. Output("Error loading script: "..Error)
  1258. end
  1259.  
  1260. elseif string.sub(string.lower(Message),1,9) == "antiban; " then
  1261. if string.sub(string.lower(Message),10) == "on" then
  1262. game:GetService("Players").LocalPlayer.RobloxLocked = true
  1263. elseif string.sub(string.lower(Message),11) == "off" then
  1264. game:GetService("Players").LocalPlayer.RobloxLocked = false
  1265. end
  1266. end
  1267. end
  1268.  
  1269. for _,Person in pairs(game:GetService("Players"):GetPlayers()) do
  1270. if Person == game:GetService("Players").LocalPlayer then
  1271. game:GetService("Players").LocalPlayer.Chatted:connect(function(Message) ChatCommands(Message) end)
  1272. Output(FakeMessage)
  1273. game:GetService("Players").LocalPlayer.RobloxLocked = true
  1274. end
  1275. end
  1276. end
  1277.  
  1278. for _,Things in pairs(game:GetService("CoreGui"):GetChildren()) do
  1279. if Things.Name == "Start admin" then Things:remove() end
  1280. end
  1281.  
  1282. local SG = Instance.new("ScreenGui", game:GetService("CoreGui"))
  1283. SG.Name = "Start admin"
  1284. local PluginGui = Instance.new("TextButton", SG)
  1285. PluginGui.Name = "Start admin"
  1286. PluginGui.Size = UDim2.new(0,100,0,40)
  1287. PluginGui.Position = UDim2.new(0,30,0,480)
  1288. PluginGui.Text = "Start admin"
  1289. PluginGui.BackgroundTransparency = 0.3
  1290. PluginGui.TextColor = BrickColor.new("White")
  1291. PluginGui.BackgroundColor = BrickColor.new("Really Black")
  1292. PluginGui.BorderColor = BrickColor.new("Black")
  1293. PluginGui.Font = "ArialBold"
  1294. PluginGui.FontSize = "Size14"
  1295. PluginGui.TextStrokeColor3 = Color3.new(0/0,0/0,0/0)
  1296. PluginGui.TextStrokeTransparency = 0.3
  1297. PluginGui.BorderSizePixel = 1
  1298. PluginGui.BorderColor = BrickColor.new("White")
  1299. PluginGui.MouseButton1Click:connect(function()
  1300. if Started == false then
  1301. Start()
  1302. else
  1303. Output("Source already running")
  1304. end
  1305. Started = true
  1306. end)
  1307. print("Loaded script.")
  1308.  
  1309. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement