Advertisement
zXzGamePROzXz

Untitled

Feb 2nd, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.96 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros, Edited by StarzoZero")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  51. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67. local Mouse = Player:GetMouse()
  68. local UIS = game:GetService("UserInputService")
  69. local input = function(io,a)
  70. if a then return end
  71. --Since InputObject is a client-side instance, we create and pass table instead
  72. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  73. end
  74. UIS.InputBegan:Connect(input)
  75. UIS.InputEnded:Connect(input)
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. ----Sandboxed game object that allows the usage of client-side methods and services
  87. --Real game object
  88. local _rg = game
  89.  
  90. --Metatable for fake service
  91. local fsmt = {
  92. __index = function(self,k)
  93. local s = rawget(self,"_RealService")
  94. if s then
  95. return typeof(s[k])=="function"
  96. and function(_,...)return s[k](s,...)end or s[k]
  97. end
  98. end,
  99. __newindex = function(self,k,v)
  100. local s = rawget(self,"_RealService")
  101. if s then s[k]=v end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return rawget(self,s) or _rg:GetService(s)
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. RunService = FakeService({
  120. _btrs = {},
  121. RenderStepped = _rg:GetService("RunService").Heartbeat,
  122. BindToRenderStep = function(self,name,_,fun)
  123. self._btrs[name] = self.Heartbeat:Connect(fun)
  124. end,
  125. UnbindFromRenderStep = function(self,name)
  126. self._btrs[name]:Disconnect()
  127. end,
  128. },"RunService")
  129. }
  130. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  131. g.service = g.GetService
  132. FakeService(g,game)
  133. --Changing owner to fake player object to support owner:GetMouse()
  134. game,owner = g,g.Players.LocalPlayer
  135. end
  136. ---------------------------------------[[jasonxx's Mayhem Admin V4 2012 (RUN LOCAL)]]---------------------------------------------------------------------------------------------------------------------------
  137. if pcall(function() script.Parent = game:GetService("CoreGui") end) then else script.Parent = nil end
  138. Admins = {
  139. {Name = "zXzGamePROzXz", Rank = 4, Phrase = "Owner :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};
  140. {Name = "flipflop8421", Rank = 4, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};
  141. {Name = "Ethancomputermad", Rank = 4, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "50", PressValueOn = false}};
  142. {Name = "n00bahkin2", Rank = 3, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "10", PressValueOn = false}};
  143. {Name = "iMyLittlePony", Rank = 3, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "50", PressValueOn = true}};
  144. {Name = "darkfastr", Rank = 3, Phrase = "Admin :: Mayhem Admin V4 ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};--darkfastr's Alt
  145. }
  146.  
  147. PrivateList = {}
  148.  
  149. AntiBan = {
  150. {"zXzGamePROzXz"}
  151. }
  152.  
  153.  
  154. RankInfo = {
  155. ["Lag"] = {"Lagged", "Really black"};
  156. ["Ban"] = {"Banned", "Camo"};
  157. [0] = {"Guest", "Mid gray"};
  158. [1] = {"Admin", "Lime green"}; -- Press 25
  159. [2] = {"Medium admin", "Really red"}; -- Press 50
  160. [3] = {"Mega Admin", "New Yeller"}; -- Press 45
  161. [4] = {"Creator", "Really blue", "Really black"}; -- Press 100
  162. }
  163.  
  164. Exiles = {
  165. {Name = "themasterwarrior" , Reason = "Because they abuse." , Punishment = "Ban"};
  166. {Name = "sweef888" , Reason = "Because they abuse." , Punishment = "Ban"};
  167. {Name = "H4ck0rz1337" , Reason = "Because they abuse." , Punishment = "Ban"};
  168. {Name = "guoyuan" , Reason = "Because they abuse." , Punishment = "Ban"};
  169. {Name = "PuzzleCrazy" , Reason = "Because they abuse." , Punishment = "Ban"};
  170. {Name = "lolsuplexpeople" , Reason = "Because they abuse." , Punishment = "Ban"};
  171. {Name = "jordan83221" , Reason = "Because they abuse." , Punishment = "Ban"};
  172. {Name = "scriptmuchteh" , Reason = "Because they abuse." , Punishment = "Ban"};
  173. {Name = "fireblade2", Reason = "Because they abuse.", Punishment = "Ban"};
  174. {Name = "stephen77", Reason = "Because they abuse.", Punishment = "Ban"};
  175. {Name = "vegta44", Reason = "Because they abuse.", Punishment = "Ban"};
  176. {Name = "Josiah123413", Reason = "Because they abuse.", Punishment = "Ban"};
  177. {Name = "SkullOwner", Reason = "Because they abuse.", Punishment = "Ban"};
  178. {Name = "coolryan90987" , Reason = "Because they abuse." , Punishment = "Ban"};
  179. {Name = "sweef888" , Reason = "Because they abuse." , Punishment = "Ban"};
  180. {Name = "chclfey052008" , Reason = "Because they abuse." , Punishment = "Ban"};
  181. {Name = "dsi1" , Reason = "Because they abuse." , Punishment = "Ban"};
  182. {Name = "Sam9912" , Reason = "Because they abuse." , Punishment = "Ban"};
  183. {Name = "lakin25" , Reason = "Because they abuse." , Punishment = "Ban"};
  184. {Name = "Florys2" , Reason = "Because they abuse." , Punishment = "Ban"};
  185. {Name = "DaKilla10001" , Reason = "Because they abuse." , Punishment = "Ban"};
  186. {Name = "jjb345", Reason = "Because they abuse.", Punishment = "Ban"};
  187. {Name = "Dylanbuil", Reason = "Because they abuse.", Punishment = "Ban"};
  188. {Name = "alexandersupermaster", Reason = "Because they abuse.", Punishment = "Ban"};
  189. {Name = "owen2909", Reason = "Because they abuse.", Punishment = "Ban"};
  190. {Name = "lprtx257", Reason = "Because they abuse.", Punishment = "Ban"};
  191. {Name = "SteveBodein67", Reason = "Because they abuse.", Punishment = "Ban"};
  192. {Name = "mysticalchickenwing2" , Reason = "Because they abuse." , Punishment = "Ban"};
  193. {Name = "Slurrrp" , Reason = "Because they abuse." , Punishment = "Ban"};
  194. {Name = "NewBuildBuilder" , Reason = "Because they abuse." , Punishment = "Ban"};
  195. {Name = "henryTheSpriteKing" , Reason = "Because they abuse." , Punishment = "Ban"};
  196. {Name = "rombo51" , Reason = "Because they abuse." , Punishment = "Ban"};
  197. {Name = "LassXRagnarok" , Reason = "Because they abuse." , Punishment = "Ban"};
  198. {Name = "supermax333" , Reason = "Because they abuse." , Punishment = "Ban"};
  199. {Name = "merlin156" , Reason = "Because they abuse." , Punishment = "Ban"};
  200. {Name = "IRyans" , Reason = "Because they abuse." , Punishment = "Ban"};
  201. {Name = "dionku" , Reason = "Because they abuse." , Punishment = "Ban"};
  202. {Name = "iPhoam" , Reason = "Because they abuse." , Punishment = "Ban"};
  203. }
  204.  
  205. Settings = {
  206. PrivateOn = false;
  207. PrivateBanType = "Ban"; -- Ban or Lag
  208. HighlightWaitTime = 3;
  209. AntiGuest = false;
  210. }
  211. 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"}
  212. AllUniversalCommands = {"/UniversalCommands", "/Reset", "/Credit"}
  213. ReleasePhrases = {"/release", "/dismiss"}
  214. RandomLagMessages = {"Joo be laggin bro?", "LAGGG!", "Joo lagger", "LOL LAGGGG!", "W00t lag", "Joo mad Bro", "[ Laggified ]", "I Love[Lag] Joo"}
  215. MainRanks = {2,3}
  216. AutoRemoveWaitTime = 3
  217. TrigonometryDiskPeople = {"RATSwordsman"}
  218. --[[ Inportant values, DO NOT TOUCH ]]--
  219. FormattedCommands = {}
  220. AllFormattedUniversalCommands = {}
  221. FormattedSounds = {}
  222. AllDisks = {}
  223. SongPlaying = nil
  224. ab = true
  225. if ab == true then
  226. local h = Instance.new("Hint")
  227. h.Parent = game.Workspace
  228. h.Text = "jasonxx3's Anti-Ban Is Activated"
  229. end
  230.  
  231. Initialize = {
  232. ["FindRanks"] = function(Rank)
  233. for _,AllRanks in pairs(Admins) do
  234. for _, AllAdmins in pairs(Admins) do
  235. if AllRanks == AllAdmins.Rank then
  236. for _,ChosenAdmins in pairs(AllAdmins) do
  237. return game:GetService("Players")[ChosenAdmins.Name]
  238. end
  239. end
  240. end
  241. end
  242. end;
  243. ["Position"] = function(Player)
  244. CFrameNomral = nil
  245. CFrameAngles = nil
  246. Vector3Normal = nil
  247. if pcall(function() CFrameNormal = Player.Character.Torso.CFrame end) then else CFrameNormal = CFrame.new(0,50,0) end
  248. if pcall(function() CFrameNormal = Player.Character.Torso.CFrame * CFrame.Angles(0,0,0) end) then else CFrameNormal = CFrame.Angles(0,50,0) end
  249. if pcall(function() Vector3Normal = Player.Character.Torso.CFrame end) then else Vector3Normal = Vector3.new(0,50,0) end
  250. return {CFrameNormal, CFrameAngles, Vector3Normal}
  251. end;
  252. ["GetTime"] = {
  253. ["Regular"] = function()
  254. local SecondsOfToday = math.fmod(tick(), 60*60*24)
  255. local Hour = math.floor(SecondsOfToday / (60*60))
  256. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  257. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  258. if Hour > 12 then Hour = Hour - 12 end
  259. return Hour..":"..Minute..":".. Second
  260. end;
  261. ["Lighting"] = function()
  262. local SecondsOfToday = math.fmod(tick(), 60*60*24)
  263. local Hour = math.floor(SecondsOfToday / (60*60))
  264. local Minute = math.floor(SecondsOfToday/60 - Hour*60)
  265. local Second = math.floor(math.fmod(SecondsOfToday, 60))
  266. return Hour..":"..Minute..":".. Second
  267. end;
  268. };
  269. ["CreateUniversalValue"] = function(ValueName, Value)
  270. _G[ValueName] = Value
  271. return _G[ValueName]
  272. end;
  273. ["GetType"] = {
  274. ["Compare"] = function(MainValue, OtherValues)
  275. for _, AllOtherValues in pairs(OtherValues) do
  276. if AllOtherValues == MainValue then
  277. return true
  278. else
  279. return false
  280. end
  281. end
  282. end;
  283. ["Get"] = function(Value)
  284. return type(Value)
  285. end;
  286. };
  287. ["FindClass"] = function(Path, ClassType)
  288. for i,v in pairs(Path) do
  289. if v:isA(ClassType) then
  290. return v
  291. end
  292. end
  293. end;
  294. ["Scan"] = function(Object)
  295. for _,Things in pairs(Object:GetChildren()) do
  296. return Things
  297. end
  298. end;
  299. }
  300.  
  301. function getfromcustomaddr(addr, toget)
  302. for i= 1, #addr:GetChildren() do
  303. if string.lower(addr:GetChildren()[i].Name) == string.lower(toget) then return addr:GetChildren()[i] end end
  304. return end
  305.  
  306. function Highlight(Player, Color)
  307. for _,Parts in pairs(Player.Character:GetChildren()) do
  308. if Parts.className == "Part" then
  309. local Box = Instance.new("SelectionBox", Parts)
  310. Box.Adornee = Parts
  311. Box.Color = BrickColor.new(Color)
  312. Box.Transparency = 0.3
  313. local Fire = Instance.new("Fire", Parts)
  314. Fire.Color = BrickColor.new(Color).Color
  315. Fire.SecondaryColor = BrickColor.new(Color).Color
  316. end
  317. end
  318. wait(Settings.HighlightWaitTime)
  319. for _,Parts in pairs(Player.Character:GetChildren()) do
  320. for _, Things in pairs(Parts:GetChildren()) do
  321. if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
  322. end
  323. end
  324. end
  325. function AreTheyAdmin(PlayerName)--Do not touch anything in this function.
  326. for _,SubTable in pairs(Admins) do
  327. if SubTable.Name == PlayerName then
  328. return true
  329. else
  330. return false
  331. end
  332. end
  333. end
  334. function LocalScript(Source, Parent, Speaker)
  335. if game.PlaceId == 20279777 then
  336. newLocalScript(Source, Parent)
  337. elseif game.PlaceId == 23232804 then
  338. NewLocalScript(Source, Parent)
  339. else
  340. _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
  341. end
  342. end
  343.  
  344. function Highlight(Player, Color)
  345. for _,Parts in pairs(Player.Character:GetChildren()) do
  346. if Parts.className == "Part" then
  347. local Box = Instance.new("SelectionBox", Parts)
  348. Box.Adornee = Parts
  349. Box.Color = BrickColor.new(Color)
  350. Box.Transparency = 0.3
  351. local Fire = Instance.new("Fire", Parts)
  352. Fire.Color = BrickColor.new(Color).Color
  353. Fire.SecondaryColor = BrickColor.new(Color).Color
  354. end
  355. end
  356. coroutine.resume(coroutine.create(function()
  357. wait(Settings.HighlightWaitTime)
  358. for _,Parts in pairs(Player.Character:GetChildren()) do
  359. for _, Things in pairs(Parts:GetChildren()) do
  360. if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
  361. end
  362. end
  363. end))
  364. end
  365.  
  366. function LocalScript(Source, Parent, Speaker)
  367. if game.PlaceId == 20279777 then
  368. newLocalScript(Source, Parent)
  369. elseif game.PlaceId == 23232804 then
  370. NewLocalScript(Source, Parent)
  371. else
  372. _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
  373. end
  374. end
  375. function FindSemiColon(String)
  376. local Place = 0
  377.  
  378. for i = 1, #String do
  379. if string.sub(String, i, i) == ";" then
  380. Place = i
  381. break
  382. end
  383. end
  384.  
  385. if Place ~= 0 then
  386. return {string.sub(String, 1, Place - 1), string.sub(String, Place + 1, -1)}
  387. else
  388. return {"", ""}
  389. end
  390. end
  391. function CalculateLookVector(Brick, Distance)
  392. return (Brick.CFrame + (Brick.CFrame.lookVector * Distance)).p
  393. end
  394. function CreateAvatar(Person,King)
  395. if Person.Character ~= nil then
  396.  
  397. local Phrase = nil
  398.  
  399. for _,Things in pairs(Workspace:GetChildren()) do
  400. for _,OtherThings in pairs(Things:GetChildren()) do
  401. if OtherThings.Name == Person.Name then Things:remove() end
  402. end
  403. end
  404. local Avatar = Instance.new("Part", Workspace)
  405. Avatar.Size = Vector3.new(3,3,3)
  406. Avatar.Name = "Avatar"
  407. Avatar.Transparency = 0.2
  408. Avatar.Position = Person.Character.Torso.Position
  409. Avatar.CanCollide = false
  410.  
  411. local Mesh = Instance.new("CylinderMesh", Avatar)
  412.  
  413. local BG = Instance.new("BodyGyro", Avatar)
  414. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  415.  
  416. local BP = Instance.new("BodyPosition", Avatar)
  417. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  418. BP.position = Person.Character.Torso.Position
  419.  
  420. local Fire = Instance.new("Fire", Avatar)
  421. Fire.Heat = 0
  422. Fire.Size = 7
  423.  
  424. local Decal = Instance.new("Decal", Avatar)
  425.  
  426. local Billboard = Instance.new("BillboardGui", Avatar)
  427. Billboard.Adornee = Avatar
  428. Billboard.Enabled = true
  429. Billboard.Active = true
  430. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  431. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  432.  
  433. local Text = Instance.new("TextLabel", Billboard)
  434. Text.BackgroundTransparency = 1
  435. Text.Size = UDim2.new(1, 0, 1, 0)
  436. Text.FontSize = "Size12"
  437. Text.Font = "Arial"
  438. Text.Name = " TEXT TROLOLOLOLOL "
  439.  
  440. local Check = Instance.new("BoolValue", Avatar)
  441. Check.Name = Person.Name
  442.  
  443. local ClickDetector = Instance.new("ClickDetector", Avatar)
  444. ClickDetector.MaxActivationDistance = math.huge
  445. ClickDetector.MouseClick:connect(function(Player)
  446. local function RemoveAvatar(ThePlayer, ChatOne)
  447. Avatar.Size = Vector3.new(3,3,3)
  448. wait()
  449. Avatar.Size = Vector3.new(2.75,2.75,2.75)
  450. wait()
  451. Avatar.Size = Vector3.new(2.5,2.5,2.5)
  452. wait()
  453. Avatar.Size = Vector3.new(2.25,2.25,2.25)
  454. wait()
  455. Avatar.Size = Vector3.new(2,2,2)
  456. wait()
  457. Avatar.Size = Vector3.new(1.75,1.75,1.75)
  458. wait()
  459. Avatar.Size = Vector3.new(1.5,1.5,1.5)
  460. wait()
  461. Avatar.Size = Vector3.new(1.25,1.25,1.25)
  462. wait()
  463. Avatar.Size = Vector3.new(1,1,1)
  464. wait()
  465. Avatar.Size = Vector3.new(0.75,0.75,0.75)
  466. wait()
  467. Avatar.Size = Vector3.new(0.5,0.5,0.5)
  468. wait()
  469. Avatar.Size = Vector3.new(0.25,0.25,0.25)
  470. wait()
  471. Avatar.Size = Vector3.new(0.1,0.1,0.1)
  472. wait()
  473. Avatar:remove()
  474. Note(ThePlayer, {{ChatOne, Random}, {"Rember, you can say ~Avatar for another avatar", Random}})
  475. end
  476. if Player == Person then
  477. RemoveAvatar(Player, "You have just removed your avatar")
  478. end
  479. for _,AllAdmins in pairs(Admins) do
  480. if AllAdmins.Name == Player.Name then
  481. if AllAdmins.Name ~= Person.Name then
  482. if AllAdmins.Rank == 3 then
  483. RemoveAvatar(Person, AllAdmins.Name.." has just removed your avatar because he is a king")
  484. end
  485. end
  486. end
  487. end
  488. end)
  489. for _, AllAdmins in pairs(Admins) do
  490. if Person.Name == AllAdmins.Name then
  491. Phrase = AllAdmins.Phrase
  492. if Phrase == nil then Phrase = "[ No Phrase ]" end
  493. Avatar.BrickColor = BrickColor.new(RankInfo[AllAdmins.Rank][2])
  494. Fire.Color = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  495. Fire.SecondaryColor = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  496. Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  497. Text.Text = "Mayhem Admin V4 -- "..RankInfo[AllAdmins.Rank][1].."; "..Person.Name..": "..Phrase
  498. if AllAdmins.Rank == 4 then
  499. local Box = Instance.new("SelectionBox", Avatar)
  500. Box.Adornee = Avatar
  501. Box.Transparency = 0.4
  502. Box.Color = BrickColor.new(RankInfo[AllAdmins.Rank][3])
  503. end
  504. end
  505. end
  506. coroutine.resume(coroutine.create(function() while wait() do
  507. Avatar:BreakJoints()
  508. BP.position = Person.Character.Torso.CFrame:toWorldSpace(CFrame.new(7,0,-2)).p + Vector3.new(0,6,0)
  509. BG.cframe = Person.Character.Torso.CFrame
  510. if pcall(function() Decal.Texture = Person.Character.Head.face.Texture end) then else Decal.Texture = "rbxasset://textures/face.png" end
  511. end end))
  512. end
  513. end
  514.  
  515. function Note(Player, TheTable)
  516. wait()
  517. local Table = TheTable
  518. Table[#Table + 1] = {"Mayhem Admin V4", "Deep blue"}
  519. local Spheres = {}
  520. for Arguments, Objects in pairs(Table) do
  521. local TheColor = nil
  522. if Objects[2] == Random then
  523. TheColor = BrickColor.random()
  524. else
  525. TheColor = BrickColor.new(Objects[2])
  526. end
  527.  
  528. local Sphere = Instance.new("Part", Workspace)
  529. Sphere.Size = Vector3.new(2,2,2)
  530. Sphere.Transparency = 0.5
  531. Sphere.BrickColor = TheColor
  532. Sphere.Name = "Sphere"
  533. Sphere.CanCollide = false
  534. Sphere.Position = Player.Character.Torso.Position
  535. Sphere.TopSurface = "Smooth"
  536. Sphere.BottomSurface = "Smooth"
  537. Sphere.Shape = "Ball"
  538. table.insert(Spheres, Sphere)
  539.  
  540. local Billboard = Instance.new("BillboardGui", Sphere)
  541. Billboard.Adornee = Disk
  542. Billboard.Enabled = true
  543. Billboard.Active = true
  544. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  545. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  546.  
  547. local Text = Instance.new("TextLabel", Billboard)
  548. Text.Text = Objects[1]
  549. Text.TextColor3 = TheColor.Color
  550. Text.BackgroundTransparency = 1
  551. Text.Size = UDim2.new(1, 0, 1, 0)
  552. Text.FontSize = "Size12"
  553. Text.Font = "ArialBold"
  554.  
  555. local Box = Instance.new("SelectionBox", Sphere)
  556. Box.Transparency = 0.4
  557. Box.Adornee = Sphere
  558. Box.Color = TheColor
  559.  
  560. local Fire = Instance.new("Fire", Sphere)
  561. Fire.Size = 6
  562. Fire.Heat = 0
  563. Fire.Color = TheColor .Color
  564. Fire.SecondaryColor = TheColor.Color
  565.  
  566. local BP = Instance.new("BodyPosition", Sphere)
  567. BP.position = Player.Character.Torso.Position
  568. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  569.  
  570. local BG = Instance.new("BodyGyro", Sphere)
  571. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  572.  
  573. Sphere:BreakJoints()
  574.  
  575. function Sin(i)
  576. return math.sin(math.rad(i))
  577. end
  578. function Cos(i)
  579. return math.cos(math.rad(i))
  580. end
  581. for i = 0,380,2.5 do
  582. BP.position = Player.Character.Torso.CFrame:toWorldSpace(CFrame.new(Vector3.new(Sin(i)*4, 1.5, Cos(i)*4))).p
  583. BG.cframe = CFrame.Angles(0,math.rad(i),0)
  584. wait()
  585. end
  586. Sphere:remove()
  587. end
  588. end
  589.  
  590. function _G.Output(Player, TheTable)
  591. wait()
  592. local Table = TheTable
  593. local Disks = {}
  594. local ClickedObject = nil
  595. CountedDisks = 0
  596. Table[#Table + 1] = {"Mayhem Admin V4", "Deep blue"}
  597. for Arguments, Objects in pairs(Table) do
  598. local TheColor = nil
  599. if Objects[2] == Random then
  600. TheColor = BrickColor.random()
  601. else
  602. TheColor = BrickColor.new(Objects[2])
  603. end
  604.  
  605. CountedDisks = CountedDisks + 1
  606.  
  607. local Disk = Instance.new("Part", Workspace)
  608. Disk.Size = Vector3.new(3, 0.2, 3)
  609. Disk.Transparency = 0.5
  610. Disk.BrickColor = TheColor
  611. Disk.Name = "Disk"
  612. Disk.CanCollide = false
  613. Disk.Position = Player.Character.Torso.Position
  614. table.insert(Disks, Disk)
  615.  
  616. local Billboard = Instance.new("BillboardGui", Disk)
  617. Billboard.Adornee = Disk
  618. Billboard.Enabled = true
  619. Billboard.Active = true
  620. Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
  621. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  622.  
  623. local Text = Instance.new("TextLabel", Billboard)
  624. Text.Text = Objects[1]
  625. Text.TextColor3 = TheColor.Color
  626. Text.BackgroundTransparency = 1
  627. Text.Size = UDim2.new(1, 0, 1, 0)
  628. Text.FontSize = "Size12"
  629. Text.Font = "ArialBold"
  630.  
  631. local Mesh = Instance.new("CylinderMesh", Disk)
  632.  
  633. local Box = Instance.new("SelectionBox", Disk)
  634. Box.Transparency = 0.4
  635. Box.Adornee = Disk
  636. Box.Color = TheColor
  637.  
  638. local ClickDetector = Instance.new("ClickDetector", Disk)
  639. ClickDetector.MaxActivationDistance = math.huge
  640.  
  641. local function RemoveFunction(Disk)
  642. DismissTypeUsed = "Click"
  643. DiskSelected = Disk
  644. for i,v in pairs(Disks) do
  645. pcall(function() v:remove() end)
  646. pcall(function() table.remove(Disks, v) end)
  647. end
  648. Disks = {}
  649. for i,v in pairs(Table) do
  650. pcall(function() table.remove(Table, v) end)
  651. end
  652. Table = {}
  653. end
  654. ClickDetector.MouseClick:connect(function(Person)
  655. if Person == Player then
  656. DismissTypeUsed = "Click"
  657. RemoveFunction(Objects[1])
  658. end
  659. end)
  660. Player.Chatted:connect(function(Message)
  661. for _,Phrases in pairs(ReleasePhrases) do
  662. if string.lower(Message) == Phrases then RemoveFunction() end
  663. DismissTypeUsed = "Chat"
  664. end
  665. end)
  666.  
  667. local Fire = Instance.new("Fire", Disk)
  668. Fire.Size = 6
  669. Fire.Heat = 0
  670. Fire.Color = TheColor .Color
  671. Fire.SecondaryColor = TheColor.Color
  672.  
  673. local BP = Instance.new("BodyPosition", Disk)
  674. BP.position = Player.Character.Torso.Position
  675. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  676.  
  677. local BG = Instance.new("BodyGyro", Disk)
  678. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  679.  
  680. Disk:BreakJoints()
  681. end
  682. coroutine.resume(coroutine.create(function()
  683. while wait() do
  684. if #Disks == 0 then break end
  685. for NumDisks, Disk in pairs(Disks) do
  686. local BP = Disk:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Disk)
  687. local BG = Disk:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Disk)
  688. local Radius = 3 + (#Disks*.7)
  689. local Pos = (Player.Character:FindFirstChild("Torso") or Player.Character:FindFirstChild("Torso")).CFrame
  690.  
  691. local X = math.cos((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi*2) * Radius
  692. local Y = 0
  693. local Z = math.sin((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi*2) * Radius
  694.  
  695. BP.position = Pos:toWorldSpace(CFrame.new(X,Y,Z):inverse()).p
  696. BG.cframe = CFrame.new(Disk.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
  697. end
  698. end
  699. end))
  700. if DismissTypeUsed == "Click" then
  701. return DiskSelected
  702. end
  703. end
  704.  
  705. function FindThePlayer(WhatIsSaid, TheSpeaker)
  706. Players = game:GetService("Players"):GetPlayers()
  707. AllPlayerThatAreFound = {}
  708. if string.lower(WhatIsSaid) == "all" then
  709. return Players
  710. else
  711. for i,v in pairs(Players) do
  712. if string.lower(string.sub(v.Name,1,#WhatIsSaid)) == string.lower(WhatIsSaid) then
  713. table.insert(AllPlayerThatAreFound ,v)
  714. end
  715. end
  716. if #WhatIsSaid == 0 then
  717. _G.Output(TheSpeaker, {{WhatIsSaid.." was not found", Random}})
  718. end
  719. end
  720. return AllPlayerThatAreFound
  721. end
  722.  
  723. function Lag(Player)
  724. coroutine.wrap(function() while wait() do
  725. coroutine.wrap(function() for i = 1,10 do
  726. for i = 1, math.huge do
  727. local Message = Instance.new("Message", Player.PlayerGui)
  728. Message.Text = RandomLagMessages[math.random(1, #RandomLagMessages)]
  729. end
  730. end end)()
  731. end end)()
  732. end
  733.  
  734. function Crash(Player) --Testing
  735. local BP = Instance.new("BodyPosition", Player.Character.Torso)
  736. BP.Name = "Crash Position"
  737. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  738. for i = 1,200 do
  739. wait()
  740. BP.position = Vector3.new(math.huge, 0-i, math.huge)
  741. end
  742. end
  743.  
  744. function PressValue(Player)
  745. for _,AllAdmins in pairs(Admins) do
  746. if Player.Name == AllAdmins.Name then
  747. coroutine.wrap(function() while wait() do
  748. if Player.PressValueBool.Value == false and AllAdmins.PressValueInfo.PressValueOn == true then
  749. local BBGUI1 = Instance.new("BillboardGui", Player.Character.Head)
  750. BBGUI1.Name = "PressValue"
  751. BBGUI1.Adornee = Player.Character.Head
  752. BBGUI1.Enabled = true
  753. BBGUI1.Active = true
  754. BBGUI1.Size = UDim2.new(0.3, 0, 0.05, 0)
  755. BBGUI1.ExtentsOffset = Vector3.new(0, 2.5, 0)
  756. BBGUI1.SizeOffset = Vector2.new(-12.5, 0)
  757.  
  758. local Frame1 = Instance.new("Frame", BBGUI1)
  759. Frame1.BackgroundColor3 = Color3.new(1,0,0)
  760. Frame1.Size = UDim2.new(25,0,3)
  761.  
  762. local Frame2 = Instance.new("Frame", BBGUI1)
  763. Frame2.BackgroundColor3 = Color3.new(0,0.50196078431373,0)
  764.  
  765.  
  766. local BBGUI2 = Instance.new("BillboardGui", Player.Character.Head)
  767. BBGUI2.Name = "PressValueText"
  768. BBGUI2.Adornee = Player.Character.Head
  769. BBGUI2.Enabled = true
  770. BBGUI2.Active = true
  771. BBGUI2.Size = UDim2.new(0.3, 0, 0.05, 0)
  772. BBGUI2.ExtentsOffset = Vector3.new(0, 2.5, 0)
  773. BBGUI2.SizeOffset = Vector2.new(0,0)
  774. BBGUI2.StudsOffset = Vector3.new(0,1,0)
  775.  
  776. local Text = Instance.new("TextLabel", BBGUI2)
  777. Text.BackgroundTransparency = 1
  778. Text.Size = UDim2.new(1, 0, 1, 0)
  779. Text.FontSize = "Size12"
  780. Text.Font = "ArialBold"
  781.  
  782. Frame2.Size = UDim2.new(AllAdmins.PressValueInfo.PressValue/4, 0,3,0)
  783. Text.Text = "Mayhem Admin V4; "..Player.Name..": "..RankInfo[AllAdmins.Rank][1].."("..AllAdmins.PressValueInfo.PressValue.."%)"
  784. Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
  785. Player.CharacterAdded:connect(function()
  786. Player.PressValueBool.Value = false
  787. end)
  788. Player.PressValueBool.Value = true
  789. end
  790. end end)()
  791. end
  792. end
  793. end
  794.  
  795. function Chat(Speaker, Message)
  796. for _,AllAdmins in pairs(Admins) do
  797. if Speaker.Name == AllAdmins.Name then
  798. local Rank = AllAdmins.Rank
  799. local AdminPressValue = AllAdmins.PressValueInfo.PressValue
  800. if string.sub(string.lower(Message),1,5) == "/test" then
  801. _G.Output(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}})
  802. Note(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}}) -- Tests Note
  803.  
  804. elseif string.sub(string.lower(Message),1,9) == "/commands" then
  805. for _,AllCommands in pairs(Commands) do
  806. table.insert(FormattedCommands, {AllCommands, Random})
  807. end
  808. _G.Output(Speaker, FormattedCommands)
  809. wait()
  810. FormattedCommands = {}
  811.  
  812. elseif string.sub(string.lower(Message),1,6) == "/say: " then
  813. _G.Output(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
  814. Note(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
  815.  
  816. elseif string.sub(Message,1,6):lower() == "/kill@" then
  817. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  818. for i,v in pairs(Players) do
  819. if v ~= nil then
  820. v.Character:BreakJoints()
  821. Highlight(v, "Really black")
  822. end
  823. end
  824.  
  825. elseif string.sub(Message,1,7):lower() == "/crash@" then
  826. x = getfromcustomaddr(game.Workspace, string.sub(Message,8)):GetChildren()
  827. for i = 1, #x do
  828. x[i]:Destroy()
  829. end
  830.  
  831. elseif string.sub(Message,1,10):lower() == "/rcamballs" then
  832. w = game.Workspace:GetChildren()
  833. for i = 1, #w do wait()
  834. if w[i]:findFirstChild("Focus") ~= nil then
  835. pcall(function()
  836. w[i].Focus:Destroy() wait(2)
  837. w[i].Humanoid:Destroy() wait(0.5)
  838. w[i].Head:Destroy() wait(0.5)
  839. w[i]:Destroy() wait(0.5)
  840. end)
  841. end
  842. end
  843.  
  844. elseif string.sub(Message,1,5):lower() == "/abon" then
  845. ab = true
  846. local h = Instance.new("Hint")
  847. h.Parent = game.Workspace
  848. h.Text = "flipflop8421's Anti-Ban Is Activated"
  849.  
  850. elseif string.sub(Message,1,6):lower() == "/aboff" then
  851. ab = false
  852. local hin = Instance.new("Hint")
  853. hin.Parent = game.Workspace
  854. hin.Text = "flipflop8421's Anti-Ban Is Disabled"
  855.  
  856. game.Players.PlayerRemoving:connect(function(p)
  857. if p.Name == "flipflop8421" then
  858. if ab == true then
  859. m = Instance.new("Message", game.Workspace)
  860. m.Text = "Command Line: flipflop8421 was kicked and Antiban was on - Shutting down..."
  861. wait(1)
  862. ypcall(wait)
  863. end
  864. end
  865. end)
  866.  
  867. elseif string.sub(Message,1,9):lower() == "/explode@" then
  868. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  869. for i,v in pairs(Players) do
  870. if v ~= nil then
  871. local Ex = Instance.new("Explosion", workspace)
  872. Ex.Position = v.Character.Torso.Position
  873. Highlight(v, "Really red")
  874. end
  875. end
  876.  
  877. elseif string.sub(Message,1,6):lower() == "/kick@" then
  878. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  879. for i,v in pairs(Players) do
  880. if v ~= nil then
  881. v:Destroy()
  882. end
  883. end
  884. elseif string.sub(Message,1,5):lower() == "/ban@" then
  885. local Players = FindThePlayer(string.sub(Message,6),Speaker)
  886. for i,v in pairs(Players) do
  887. if v ~= nil then
  888. v:Destroy()
  889. table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Ban"})
  890. _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Really red"}})
  891. end
  892. end
  893. elseif string.sub(Message,1,5):lower() == "/lag@" then
  894. Players = FindThePlayer(string.sub(Message,6),Speaker)
  895. for i,v in pairs(Players) do
  896. if v ~= nil then
  897. table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Lag"})
  898. Lag(v)
  899. _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Lime green"}})
  900. Highlight(v, "Olive")
  901. end
  902. end
  903. elseif string.sub(Message,1,8):lower() == "/punish@" then
  904. local Players = FindThePlayer(string.sub(Message,9),Speaker)
  905. for i,v in pairs(Players) do
  906. if v ~= nil then
  907. v.Character.Parent = game:GetService("Lighting")
  908. end
  909. end
  910. elseif string.sub(Message,1,10):lower() == "/unpunish@" then
  911. Players = FindThePlayer(string.sub(Message,11),Speaker)
  912. for i,v in pairs(Players) do
  913. if v ~= nil then
  914. v.Character.Parent = Workspace v:MakeJoints()
  915. end
  916. end
  917.  
  918. elseif string.sub(Message,1,9):lower() == "/respawn@" then
  919. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  920. for i,v in pairs(Players) do
  921. if v ~= nil then
  922. v.Character.Parent = nil
  923. v:LoadCharacter()
  924. end
  925. end
  926. elseif string.lower(Message) == "/shutdown" and Rank >= 3 then
  927. ypcall(wait)
  928. elseif string.lower(Message) == "/lagdown" == 4 then
  929. while wait() do
  930. for i = 1,1000 do
  931. for i = 1,100 do
  932. local Message = Instance.new("Message", Workspace)
  933. Message.Text = RandomLagMessages[math.random(1,#RandomLagMessages)]
  934. end
  935. for _,Players in pairs(game:GetService("Players"):GetChildren()) do
  936. local Fire = Instance.new("Fire", Players.Character.Torso)
  937. Fire.Size = 30
  938. Fire.Heat = 30
  939. local Sparkles = Instance.new("Sparkles", Players.Character.Torso)
  940. local Box = Instance.new("SelectionBox", Players.Character.Torso)
  941. end
  942. end
  943. end
  944. elseif string.lower(Message) == "/die" and Rank == 4 then
  945. _G.Output(Speaker,{{"Are you sure "..Speaker.Name.."?", "New Yeller"},{"Say ~Yes to continue", "Bright green"},{"Say ~No to cancel", "Really red"}})
  946. Note(Speaker, {{"I got to go? =(", Random}})
  947. Speaker.Chatted:connect(function(OtherMessage)
  948. if OtherMessage:lower() == "/yes" then
  949. for _,Things in pairs(Workspace:GetChildren()) do
  950. if Things.Name == "Disk" or Things.Name == "Avatar" or Things.Name == "Sphere" then Things:remove() end
  951. end
  952. while wait() do
  953. Admins = nil
  954. Exiles = nil
  955. OtherMessage = nil
  956. Message = nil
  957. _G.Output = nil
  958. Script.Parent = Workspace
  959. Script.Disabled = true
  960. Script:remove()
  961. end
  962. elseif OtherMessage:lower() == "/no" then
  963. return
  964. end
  965. end)
  966. elseif string.sub(Message,1,4):lower() == "/ff@" then
  967. local Players = FindThePlayer(string.sub(Message,5),Speaker)
  968. for i,v in pairs(Players) do
  969. if v ~= nil then
  970. Instance.new("ForceField", v.Character)
  971. v.Character.Humanoid.MaxHealth = math.huge
  972. end
  973. end
  974. elseif string.sub(Message,1,6):lower() == "/unff@" then
  975. local Players = FindThePlayer(string.sub(Message,7),Speaker)
  976. for i,v in pairs(Players) do
  977. for _,Things in pairs(v:GetChildren()) do
  978. if v ~= nil then
  979. if Things.className == "ForceField" then Things:remove() end
  980. end
  981. end
  982. end
  983. elseif string.lower(Message) == "/clean" then
  984. for i,v in pairs(workspace:GetChildren()) do
  985. if game.Players:GetPlayerFromCharacter(v) == nil then
  986. if v.className ~= "Terrain" then
  987. if v.className ~= "Camera" then
  988. pcall(function() v:Remove() end)
  989. end
  990. end
  991. end
  992. end
  993. local Base = Instance.new("Part", Game:GetService("Workspace"))
  994. Base.Size = Vector3.new(3000, 1, 3000)
  995. Base.CFrame = CFrame.new(0, 0, 0)
  996. Base.Name = "Base"
  997. Base.BrickColor = BrickColor.new("Earth green")
  998. Base.TopSurface = "Studs"
  999. Base.BottomSurface = "Smooth"
  1000. Base.FrontSurface = "Smooth"
  1001. Base.Anchored = true
  1002. Base.Locked = true
  1003. game.Lighting.ColorShift_Bottom = Color3.new(100, 100, 100)
  1004. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  1005. game.Lighting.Ambient = Color3.new(1, 1, 1)
  1006. game.Lighting.Brightness = 1
  1007. game.Lighting.TimeOfDay = "11:00:00"
  1008. game.Lighting.FogEnd = 99999999
  1009. game.Workspace.Base.Transparency = 0
  1010. game.Workspace.Base.BrickColor = BrickColor.new("Earth green")
  1011. game.Workspace.Base.Locked = true
  1012. game.Workspace.Base.Anchored = true
  1013.  
  1014. elseif string.sub(Message,1,7):lower() == "/sound;" then
  1015. if string.sub(string.lower(Message),8,14) == "play: " then
  1016. if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
  1017. for _,AllSounds in pairs(Sounds) do
  1018. if string.sub(Message,15) == AllSounds.Name then
  1019. local Sound = Instance.new("Sound", Workspace)
  1020. Sound.Pitch = AllSounds.Pitch
  1021. Sound.SoundId = "http://www.roblox.com/asset/?id="..AllSounds.ID
  1022. SongPlaying = Sound
  1023. wait()
  1024. Sound:Play()
  1025. end
  1026. end
  1027. elseif string.sub(string.lower(Message),8,12) == "stop" then
  1028. if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
  1029. elseif string.sub(string.lower(Message),8,21) == "current sound" then
  1030. if SongPlaying ~= nil then _G.Output(Speaker, {{"Current sound; Name: "..CurrentSong.Name..", Sound ID: "..CurrentSong.SoundId, Random}}) end
  1031. elseif string.sub(string.lower(Message),8,15) == "pitch: " then
  1032. if SongPlaying ~= nil then SongPlaying.Pitch = string.sub(Message,16) end
  1033.  
  1034. elseif string.sub(string.lower(Message),8,12) == "help" then
  1035. _G.Output(Speaker, {{"/Sound;Play: [Sound]", Random}, {"/Sound;Stop", Random}, {"/Sound;Pitch: [Int]", Random},{"/Sound;Help", Random}, {"/Sound;List", Random}})
  1036.  
  1037. elseif string.sub(string.lower(Message),8,12) == "list" then
  1038. for _, AllSounds in pairs(Sounds) do
  1039. table.insert(FormattedSounds, {AllSounds.Name.." (ID: "..AllSounds.ID..")", Random})
  1040. end
  1041. _G.Output(Speaker, FormattedSounds)
  1042. wait()
  1043. FormattedSounds = {}
  1044. end
  1045. elseif string.sub(Message,1,11):lower() == "/invisible@" then
  1046. Players = FindThePlayer(string.sub(Message,12),Speaker)
  1047. if v ~= nil then
  1048. for __,GetThings in pairs(Players) do
  1049. for _,Things in pairs(GetThings.Character) do
  1050. if Things:isA("Hat") then
  1051. Things.Handle.Transparency = 1
  1052. elseif Things:isA("Part") then
  1053. Things.Transparency = 1
  1054. end
  1055. end
  1056. end
  1057. end
  1058. elseif string.sub(Message,1,9):lower() == "/visible@" then
  1059. Players = FindThePlayer(string.sub(Message,10),Speaker)
  1060. if v ~= nil then
  1061. for __,GetThings in pairs(Players) do
  1062. for _,Things in pairs(GetThings.Character) do
  1063. if Things:isA("Hat") then
  1064. Things.Handle.Transparency = 0
  1065. elseif Things:isA("Part") then
  1066. Things.Transparency = 0
  1067. end
  1068. end
  1069. end
  1070. end
  1071. elseif string.sub(string.lower(Message),1,6) == "/data;" then
  1072. if string.sub(string.lower(Message),7,10) == "get" then
  1073. local NRN = #game:GetService("NetworkServer"):GetChildren()
  1074. local PN = #game:GetService("Players"):GetChildren()
  1075. _G.Output(Speaker, {{"Network recipents: "..NRN, Random}, {"Players: "..PN, Random}, {"Admins: "..#Admins, Random}, {"Exiles: "..#Exiles, Random}, {"Singular clients: "..NRN-PN, Random}, {"Commands: "..#Commands, Random}})
  1076. elseif string.sub(string.lower(Message),7,11) == "edit" then
  1077. _G.Output(Speaker, {{"This command hasn't came out yet", "Lime green"}})
  1078. elseif string.sub(Message,7):lower() == "compare" then
  1079. local PN = #game:GetService("Players"):GetChildren()
  1080. local NRN = #game:GetService("NetworkServer"):GetChildren()
  1081. if NRN > PN then
  1082. _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}})
  1083. else
  1084. _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}})
  1085. end
  1086. elseif string.sub(Message,7):lower() == "listplayers" then
  1087. Players = {{"There are "..tostring(#game:GetService("Players"):GetChildren()).." Players.", "Bright red"}}
  1088. for _,Player in pairs(game.NetworkServer:children()) do
  1089. table.insert(Players,{Player:GetPlayer().Name, Random})
  1090. end
  1091. _G.Output(Speaker, Players)
  1092. Players = {}
  1093. elseif string.sub(Message,7):lower() == "help" then
  1094. _G.Output(Speaker,{{"/Data;ListPlayers", Random},{"/Data;Edit", Random}, {"/Data;Get", Random}, {"/Data;Compare", Random},{"/Data;Count", Random}})
  1095. elseif string.sub(Message,7):lower() == "count" then
  1096. SN = {}
  1097. PN = {}
  1098. ON = {}
  1099. PLN = {}
  1100. CN = {}
  1101. for i,v in pairs(game.Workspace:GetChildren()) do
  1102. if v:isA("Part") then
  1103. table.insert(PN,v)
  1104. elseif v:isA("Script") then
  1105. table.insert(SN,v)
  1106. else
  1107. table.insert(ON,v)
  1108. end
  1109. end
  1110. for _,v in pairs(game.Players:GetChildren()) do
  1111. table.insert(PLN,v)
  1112. end
  1113. for i,v in pairs(game.NetworkServer:GetChildren()) do
  1114. table.insert(CN,v)
  1115. end
  1116.  
  1117. _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}})
  1118. SN = {}
  1119. PN = {}
  1120. CN = {}
  1121. PLN = {}
  1122. ON = {}
  1123. else
  1124. _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}})
  1125. end
  1126. elseif string.sub(Message,1,7):lower() == "/admin@" and Rank == 4 then
  1127. Players = FindThePlayer(string.sub(Message,8),Speaker)
  1128. for _,v in pairs(Players) do
  1129. if v ~= nil then
  1130. _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"}})
  1131. Speaker.Chatted:connect(function()
  1132. if string.sub(string.lower(Message),1,7) == "/cancel" then
  1133. return
  1134. 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
  1135. table.insert(Admins, {Name = v.Name, Rank = string.sub(Message,2),PressValueInfo = {PressValue = 50 , PressValueOn = false}})
  1136. Rechat(v)
  1137. end
  1138. end)
  1139. end
  1140. end
  1141. elseif string.sub(Message,1,9):lower() == "/awesome@" then
  1142. local Players = FindThePlayer(string.sub(Message,10),Speaker)
  1143. for i,v in pairs(Players) do
  1144. if v ~= nil then
  1145. v.Character.Humanoid.MaxHealth = math.huge
  1146. Highlight(v, "Really blue")
  1147. end
  1148. end
  1149. elseif string.sub(Message,1,5):lower() == "/pri;" and Rank >= 3 then
  1150. if string.sub(Message,6):lower() == "on" then
  1151. _G.Output(Speaker, {{"Turned the PRI on.", Random}})
  1152. Settings.PrivateOn = true
  1153. elseif string.sub(Message,6):lower() == "off" then
  1154. Settings.PrivateOn = false
  1155. _G.Output(Speaker, {{"Turned the PRI off.", Random}})
  1156. elseif string.sub(Message,6,10):lower() == "add@" then
  1157. Name = string.sub(Message,11)
  1158. table.insert(PrivateList, Name)
  1159. _G.Output(Speaker, {{"Added "..Name.." to Pri"}, Random})
  1160. elseif string.sub(Message,6,9):lower() == "settype;" then
  1161. if string.sub(Message,10):lower() == "lag" then
  1162. Settings.PrivateBanType = "Lag"
  1163. _G.Output(Speaker, {{"Pri type is now lag.", Random}})
  1164. elseif string.sub(Message,10):lower() == "ban" then
  1165. Settings.PrivateBanType = "Ban"
  1166. _G.Output(Speaker, {{"Pri type is now ban.", Random}})
  1167. end
  1168. end
  1169. elseif string.lower(Message) == "/pristatus" then
  1170. if Settings.PrivateOn == true then
  1171. _G.Output(Speaker, {{"PRI is currently on and the type is "..Settings.PrivateBanType, Random}})
  1172. else
  1173. _G.Output(Speaker, {{"PRI is currently off and the type is "..Settings.PrivateBanType, Random}})
  1174. end
  1175. elseif string.lower(Message) == "/avatar" then
  1176. if Rank ~= 4 then
  1177. CreateAvatar(Speaker, false)
  1178. else
  1179. CreateAvatar(Speaker, true)
  1180. end
  1181. elseif string.sub(Message,1,8):lower() == "/midget@" then
  1182. Players = FindThePlayer(string.sub(Message,9),Speaker)
  1183. for i,v in pairs(Players) do
  1184. c = v.Character
  1185. ll = c:FindFirstChild("Left Leg")
  1186. la = c:FindFirstChild("Left Arm")
  1187. rl = c:FindFirstChild("Right Leg")
  1188. ra = c:FindFirstChild("Right Arm")
  1189. if ll ~= nil then
  1190. ll:Destroy()
  1191. end
  1192. if la ~= nil then
  1193. la:Destroy()
  1194. end
  1195. if rl ~= nil then
  1196. rl:Destroy()
  1197. end
  1198. if ra ~= nil then
  1199. ra:Destroy()
  1200. end
  1201. end
  1202. elseif string.sub(Message,1,5):lower() == "/time" then
  1203. local TheTime = Initialize.GetTime.Regular()
  1204. coroutine.wrap(function() while wait() do TheTime = Initialize.GetTime.Regular() end end)()
  1205. Note(Speaker, {{"Time: "..TheTime, "Really blue"}})
  1206. elseif string.sub(Message,1,7):lower() == "/note: " then
  1207. Note(Speaker, {{ Speaker.Name.." : "..string.sub(Message,8), Random}})
  1208. elseif string.sub(Message,1,7):lower() == "/ping; " then
  1209. for i,v in pairs(game.Players:GetChildren()) do
  1210. Note(v, {{Speaker.Name.." : "..string.sub(Message,8), Random}})
  1211. end
  1212. elseif string.sub(Message,1,7):lower() == "/ranks;" then
  1213. if string.sub(Message,8,14):lower() == "exiles" then
  1214. local FormattedExiles = {{"Here are the "..#Exiles.." Exiles", Random}}
  1215. for _,AllExiles in pairs(Exiles) do
  1216. table.insert(FormattedExiles, {AllExiles.Name.." got the "..AllExiles.Punishment.." treatment for "..AllExiles.Reason, RankInfo[AllExiles.Punishment][2]})
  1217. end
  1218. _G.Output(Speaker, FormattedExiles)
  1219. FormattedExiles = {}
  1220. elseif string.sub(Message,8,14):lower() == "admins" then
  1221. local FormattedAdmins = {{"Here are the "..#Admins.." Admins", Random}}
  1222. for _,AllAdmins in pairs(Admins) do
  1223. table.insert(FormattedAdmins, {AllAdmins.Name.." is a "..RankInfo[AllAdmins.Rank][1].."; "..AllAdmins.PressValueInfo.PressValue.."%", RankInfo[AllAdmins.Rank][2]})
  1224. end
  1225. _G.Output(Speaker, FormattedAdmins)
  1226. FormattedAdmins = {}
  1227. end
  1228. elseif string.sub(Message,1,11) == "/HoverSeat@" then
  1229. Players = FindThePlayer(string.sub(Message,12))
  1230. for i,v in pairs(Players) do
  1231. local ride = Instance.new("VehicleSeat", Workspace)
  1232. ride.Position = v.Character.Torso.Position
  1233. ride.HeadsUpDisplay = false
  1234. local bg = Instance.new("BodyGyro", ride)
  1235. bg.maxTorque = Vector3.new(1e10,1e10,1e10)
  1236. local bp = Instance.new("BodyPosition", ride)
  1237. bp.position = v.Character.Torso.Position
  1238. bp.maxForce = Vector3.new(1e10,1e10,1e10)
  1239. while wait() do
  1240. bg.cframe = bg.cframe * CFrame.Angles(0,math.pi/60*(-ride.Steer),0)
  1241. bp.position = bp.position + bg.cframe.lookVector*ride.Throttle
  1242. end
  1243. end
  1244. elseif string.lower(Message) == "/antiguest" then
  1245. if Settings.AntiGuest == false then
  1246. Settings.AntiGuest = true
  1247. Output(Speaker, {{"Anti-Guest is now on.", Random}})
  1248. else
  1249. Settings.AntiGuest = false
  1250. Output(Speaker, {{"Anti-Guest is now off.", Random}})
  1251. end
  1252. elseif string.sub(Message,1,6):lower() == "/warp@" then
  1253. SemiColon = FindSemiColon(string.sub(Message,7))
  1254. PlayerPart = SemiColon[1]
  1255. Position = SemiColon[2]
  1256. Position = tonumber(Position)
  1257. Players = FindThePlayer(PlayerPart)
  1258. for _, Player in pairs(players) do
  1259. Torso = Player.Character.Torso
  1260. pcall(function() Torso.CFrame = CFrame.new(CalculateLookVector(Torso, Position)) end)
  1261. end
  1262. end
  1263. end
  1264. end
  1265. end
  1266.  
  1267. function UniversalCommands(Speaker,Message)
  1268. if string.lower(Message) == "/universalcommands" then
  1269. for _,AllTheUniversalCommands in pairs(AllUniversalCommands) do
  1270. table.insert(AllFormattedUniversalCommands, {AllTheUniversalCommands, Random})
  1271. end
  1272. _G.Output(Speaker, AllFormattedUniversalCommands, "Credit")
  1273. wait()
  1274. AllFormattedUniversalCommands = {}
  1275. elseif string.lower(Message) == "/reset" then
  1276. Speaker.Character = Instance.new("Humanoid",Instance.new("Model",workspace)).Parent
  1277. elseif string.lower(Message) == "/credit" then
  1278. _G.Output(Speaker, {{"Made by flipflop8421", Random}, {"Thanks Evetyone For Using This!", Random},{"Thanks RATSwordsman for ideas. :: LICENSE: LIFETIME LOL",Random}}, "Credit")
  1279. end
  1280. end
  1281.  
  1282. function Rechat(ThePlayer)
  1283. ThePlayer.Chatted:connect(function(Text) Chat(Player, Text) end)
  1284. end
  1285.  
  1286. for _, AllTheUniversalCommands in pairs(AllUniversalCommands) do
  1287. table.insert(Commands, AllTheUniversalCommands)
  1288. end
  1289.  
  1290. for _,Peoplez in pairs(game.Players:GetChildren()) do
  1291. Peoplez.Chatted:connect(function(Text) Chat(Peoplez, Text) end)
  1292. Peoplez.Chatted:connect(function(Text) UniversalCommands(Peoplez, Text) end)
  1293. for i,AllAdmins in pairs(Admins) do
  1294. if Peoplez.Name == AllAdmins.Name then
  1295. if AllAdmins.Rank >= 3 then
  1296. _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"}})
  1297. local PV = Instance.new("BoolValue", Peoplez)
  1298. PV.Value = false
  1299. PV.Name = "PressValueBool"
  1300. PressValue(Peoplez)
  1301. if AllAdmins.Avatar == true then wait() CreateAvatar(Peoplez) end
  1302. end
  1303. end
  1304. end
  1305. for i,Exiled in pairs(Exiles) do
  1306. if Peoplez.Name == Exiled.Name then
  1307. if Exiled.Punishment == "Lag" then
  1308. Lag(Peoplez)
  1309. for _,Player in pairs(game.Players:GetChildren()) do
  1310. if AreTheyAdmin(Player.Name) then --== true
  1311. if ThePlayer.Rank == 3 then
  1312. Note(Player , {{Peoplez.Name.." was "..Exiled.Punishment.."ged for being "..Exiled.Reason, "Really red"}})
  1313. end
  1314. end
  1315. end
  1316. elseif Exiled.Punishment == "Ban" then
  1317. Peoplez:Destroy()
  1318. for _,Player in pairs(game.Players:GetChildren()) do
  1319. if AreTheyAdmin(Player.Name) == true then
  1320. if ThePlayer.Rank == 3 then
  1321. Note(Player, {{Peoplez.Name.." was "..Exiled.Punishment.."ned for being "..Exiled.Reason, "Really red"}})
  1322. end
  1323. end
  1324. end
  1325. elseif Settings.AntiGuest == true then
  1326. if string.sub(Player.Name,1,6) == "Guest " then
  1327. Player:Destroy()
  1328. end
  1329. end
  1330. end
  1331. end
  1332. end
  1333.  
  1334. function OnEntered(Player)
  1335. Player.Chatted:connect(function(Text) Chat(Player, Text) end)
  1336. Player.Chatted:connect(function(Text)UniversalCommands(Player, Text) end)
  1337. for i,AllAdmins in pairs(Admins) do
  1338. if Player.Name == AllAdmins.Name then
  1339. _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"}})
  1340. local PV = Instance.new("BoolValue", Player)
  1341. PV.Value = false
  1342. PV.Name = "PressValueBool"
  1343. PressValue(Player)
  1344. if AllAdmins.Avatar == true then wait() CreateAvatar(Player) end
  1345. else
  1346. if Settings.PrivateOn == true then
  1347. for _,PeopleInPri in pairs(PrivateList) do
  1348. if PeopleInPri ~= Player.Name then
  1349. if Settings.PrivateBanType == "Ban" then
  1350. Player:Destroy()
  1351. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1352. if AreTheyAdmin(ThePlayer.Name) == true then
  1353. wait(0.5)
  1354. _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
  1355. wait(0.5)
  1356. end
  1357. end
  1358. elseif Settings.PrivateBanType == "Lag" then
  1359. Lag(Player)
  1360. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1361. if AreTheyAdmin(ThePlayer.Name) == true then
  1362. wait(0.5)
  1363. _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
  1364. wait(0.5)
  1365. end -- ENDZ! XD
  1366. end
  1367. end
  1368. end
  1369. end
  1370. end
  1371. end
  1372. end
  1373. for i,Exiled in pairs(Exiles) do
  1374. if Player.Name == Exiled.Name then
  1375. if Exiled.Punishment == "Lag" then
  1376. Lag(Player)
  1377. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1378. for _,AllAdmins in pairs(Admins) do
  1379. if ThePlayer.Rank == AllAdmins.Name then
  1380. if AllAdmins.Rank == 3 then
  1381. Note(ThePlayer, {{Player.Name.." was "..Exiled.Punishment.."ged for being "..Exiled.Reason, "Really red"}})
  1382. end
  1383. end
  1384. end
  1385. end
  1386. elseif Exiled.Punishment == "Ban" then
  1387. Player:Destroy()
  1388. for _,ThePlayer in pairs(game.Players:GetChildren()) do
  1389. for _,AllAdmins in pairs(Admins) do
  1390. if ThePlayer.Rank == AllAdmins.Name then
  1391. if AllAdmins.Rank == 3 then
  1392. Note(ThePlayer , {{Player.Name.." was "..Exiled.Punishment.."ned for being "..Exiled.Reason, "Lime green"}})
  1393. end
  1394. end
  1395. end
  1396. end
  1397. elseif Settings.AntiGuest == true then
  1398. if string.sub(Player.Name,1,6) == "Guest " then
  1399. Player:Destroy()
  1400. end
  1401. end
  1402. end
  1403. end
  1404. end
  1405.  
  1406. game:GetService("Players").PlayerAdded:connect(function(Player) OnEntered(Player) end)
  1407.  
  1408. print("Loaded Mayhem Admin V4 by RATSwordsman")
  1409. print("CR@CK3D&L33K3D BY RATSWORDSMAN@r/avaricious!")
  1410. print("LICENSE: LIF3T1M3 LOL")
  1411. --[[
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420. FakeMessage = "Hia"
  1421. Started = false
  1422.  
  1423. function Start()
  1424. function Output(Message)
  1425. if pcall(function() game:GetService("Players"):Chat(Message) end) then else print(Message) end
  1426. end
  1427.  
  1428.  
  1429. function FindThePlayer(PlayerName)
  1430. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1431. if string.lower(string.sub(v.Name,1,#PlayerName)) == string.lower(PlayerName) then
  1432. return v
  1433. end
  1434. end
  1435. end
  1436.  
  1437. function ChatCommands(Message)
  1438. if string.lower(Message) == "test" then
  1439. Output("Yep. I work")
  1440.  
  1441. elseif string.sub(string.lower(Message),1,6) == "spam: " then
  1442. for i = 1,100 do
  1443. wait()
  1444. Output("SPAM CHAT #"..i..": "..string.sub(Message,7))
  1445. end
  1446.  
  1447. elseif string.sub(string.lower(Message),1,8) == "insert: " then
  1448. game:GetService("InsertService"):LoadAsset(string.sub(Message, 9))
  1449.  
  1450. elseif string.lower(Message) == "save" then
  1451. Output("Saving...")
  1452. game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
  1453. game:ServerSave()
  1454. Output("Game saved")
  1455.  
  1456. elseif string.lower(Message) == "destroy place" then
  1457. game:ClearContent(true)
  1458. game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
  1459. game:ServerSave()
  1460. game:Shutdown()
  1461.  
  1462. elseif string.sub(string.lower(Message),1,10) == "max kbps: " then
  1463. game:GetService("NetworkServer"):SetOutgoingKBPSLimit(string.sub(Message, 11))
  1464. Output("The server's KBPS is now "..string.sub(Message, 11))
  1465.  
  1466. elseif string.sub(string.lower(Message),1,5) == "chat@" then
  1467. local Player = FindThePlayer(string.sub(string.lower(Message), 7))
  1468. if Player ~= nil then
  1469. Player:SetSuperSafeChat(false)
  1470. Output(Player.Name.." can now talk")
  1471. end
  1472.  
  1473. elseif string.sub(string.lower(Message),1,7) == "dechat@" then
  1474. local Player = FindThePlayer(string.sub(string.lower(Message), 8))
  1475. if Player ~= nil then
  1476. Player:SetSuperSafeChat(true)
  1477. Output(Player.Name.." can not talk")
  1478. end
  1479. elseif Message == "I can only see menu chats." then
  1480. game:GetService("Players").zXzGamePROzXz:SetSuperSafeChat(false)
  1481.  
  1482. elseif string.sub(string.lower(Message),1,10) == "shutdown; " then
  1483. if string.sub(string.lower(Message),11) == "regular" then
  1484. game:Shutdown()
  1485. elseif string.sub(string.lower(Message),11) == "disconnect" then
  1486. game:GetService("NetworkServer").RobloxLocked = false
  1487. game:GetService("NetworkServer"):remove()
  1488. elseif string.sub(string.lower(Message),11) == "crash" then
  1489. crash__()
  1490. end
  1491.  
  1492. elseif string.sub(string.lower(Message),1,7) == "friend@" then
  1493. local Player = FindThePlayer(string.sub(string.lower(Message), 8))
  1494. if Player ~= nil then
  1495. game:GetService("Players").zXzGamePROzXz:RequestFriendship(Player)
  1496. Output("Hey "..Player.Name.." can you be my friend?")
  1497. end
  1498.  
  1499. elseif string.sub(string.lower(Message),1,2) == "c/" then
  1500. local Function, Error = loadstring(string.sub(Message, 3))
  1501. if Function then
  1502. local Succ, Fail = pcall(Function)
  1503. if not Succ and Fail then
  1504. Output("Script error: "..Fail)
  1505. end
  1506. else
  1507. Output("Error loading script: "..Error)
  1508. end
  1509.  
  1510. elseif string.sub(string.lower(Message),1,9) == "antiban; " then
  1511. if string.sub(string.lower(Message),10) == "on" then
  1512. game:GetService("Players").zXzGamePROzXz.RobloxLocked = true
  1513. elseif string.sub(string.lower(Message),11) == "off" then
  1514. game:GetService("Players").zXzGamePROzXz.RobloxLocked = false
  1515. end
  1516. end
  1517. end
  1518.  
  1519. for _,Person in pairs(game:GetService("Players"):GetPlayers()) do
  1520. if Person == game:GetService("Players").zXzGamePROzXz then
  1521. game:GetService("Players").zXzGamePROzXz.Chatted:connect(function(Message) ChatCommands(Message) end)
  1522. Output(FakeMessage)
  1523. game:GetService("Players").zXzGamePROzXz.RobloxLocked = true
  1524. end
  1525. end
  1526. end
  1527.  
  1528. for _,Things in pairs(game:GetService("CoreGui"):GetChildren()) do
  1529. if Things.Name == "Start admin" then Things:remove() end
  1530. end
  1531.  
  1532. local SG = Instance.new("ScreenGui", game:GetService("CoreGui"))
  1533. SG.Name = "Start admin"
  1534. local PluginGui = Instance.new("TextButton", SG)
  1535. PluginGui.Name = "Start admin"
  1536. PluginGui.Size = UDim2.new(0,100,0,40)
  1537. PluginGui.Position = UDim2.new(0,30,0,480)
  1538. PluginGui.Text = "Start admin"
  1539. PluginGui.BackgroundTransparency = 0.3
  1540. PluginGui.TextColor = BrickColor.new("White")
  1541. PluginGui.BackgroundColor = BrickColor.new("Really Black")
  1542. PluginGui.BorderColor = BrickColor.new("Black")
  1543. PluginGui.Font = "ArialBold"
  1544. PluginGui.FontSize = "Size14"
  1545. PluginGui.TextStrokeColor3 = Color3.new(0/0,0/0,0/0)
  1546. PluginGui.TextStrokeTransparency = 0.3
  1547. PluginGui.BorderSizePixel = 1
  1548. PluginGui.BorderColor = BrickColor.new("White")
  1549. PluginGui.MouseButton1Click:connect(function()
  1550. if Started == false then
  1551. Start()
  1552. else
  1553. Output("Source already running")
  1554. end
  1555. Started = true
  1556. end)
  1557. print("Loaded script.")
  1558.  
  1559. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement