Advertisement
jordan83221

God2

Aug 11th, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 171.85 KB | None | 0 0
  1. script.Parent=nil
  2.  
  3. --localize functions
  4. local next=next
  5. local floor=math.floor
  6. local concat=table.concat
  7. local insert=table.insert
  8. local remove=table.remove
  9. local lig=game:service'Lighting'
  10. local gp=game:service'Players'
  11. local Jails = {}
  12. local Rtn = {}
  13. local Blitz="Blitzorz"
  14. local M=gp:findFirstChild(Blitz)
  15. local ml=Blitz:lower()
  16.  
  17. --tp/all/me;2:kill would teleport everyone to you, then kill you twice.
  18. local exc="/"-->tp[/]all/me;2:kill< what you put between a command and its arguments
  19. local tup="/"-->tp/all[/]me;2:kill< multi-argument command seperator (the only 5 are m, h, tp, army, and test)
  20. local sil="/"--no function currently, you would put it before talking to make the command not show up, but still execute.
  21. local mul=":"-->tp/all/me;2[:]kill< what you use to indicate a command to be performed multiple times
  22. local sep=";"-->tp/all/me[;]2:kill< seperates commands and/or chat
  23.  
  24. local lns
  25. local ns=script:Clone()
  26. ns.Disabled=true
  27. for _,nsch in next,ns:GetChildren() do
  28.         if nsch.ClassName=="StringValue" then
  29.                 nsch.Value=""
  30.         end
  31. end
  32.  
  33. --hide script
  34. if script then
  35.         script.Name=""
  36.         for _,ch in next,script:GetChildren() do
  37.                 if ch.ClassName=="StringValue" then
  38.                         ch.Value=""
  39.                 end
  40.                 ch:Destroy()
  41.         end
  42.         script:Destroy()
  43. end
  44. --"Dust707","Traumatised",
  45. local admins={
  46.         {"GuruNin"},--Mega
  47.         {},--Uber
  48.         {},--Super
  49.         {}--Admin
  50. }
  51. local ban={}
  52. local superban={
  53. "hitman300",
  54. "Robloxer2810",
  55. "UndeleteTool",
  56. "KKkris",
  57. "ghostbusters1",
  58. "justhit",
  59. "tjmax1490609",
  60. "Zakariatron2000",
  61. "DKkid66",
  62. "anthonytran3227",
  63. "XxNinjaAssassin1xX",
  64. "ibrahim5769",
  65. "mikeydoo",
  66. "ExoticRazel",
  67. "TigerBloodd",
  68. "manofthebase44",
  69. "che46",
  70. "5000yellow",
  71. "raiwe",
  72. "observantjohn",
  73. "Christbru01",
  74. "Blankscarface23",
  75. "abdullah420",
  76. "armondos",
  77. "UNScripter",
  78. "swaggster21",
  79. "spiderman67890",
  80. "dawson9237",
  81. "shadowtempo",
  82. "louis14327",
  83. "Supah",
  84. "35fireshock",
  85. "SkyWarriorA2",
  86. "Noobefy",
  87. "VisualCPlus",
  88. "GLaDOS11",
  89. "TigerBloodd",
  90. "bluemarlin3",
  91. "monstertrooper101",
  92. "rookieo6",
  93. "OhYa321",
  94. "Laxerrrr",
  95. "Explodem",
  96. "alpherkiller2",
  97. "TheRoboram",
  98. "fireboy130",
  99. "buildingrox",
  100. "DragonWarlord101",
  101. "doggy8903",
  102. "AlienDestroyer57",
  103. "thunder578o2",
  104. "bommes",
  105. "cowvenom",
  106. "general00B",
  107. "artuha00",
  108. "CottonEyedMario",
  109. "liljack3",
  110. "kaiman69",
  111. "RockinKilla",
  112. "Speedhax4r",
  113. "Perssibletelamon2",
  114. "michael613137",
  115. "bakuganmaster90",
  116. "blackcole4455",
  117. "Daniel800100",
  118. "Darkoths",
  119. "Freeze551",
  120. "HEAT507",
  121. "12packkid",
  122. "3waffle",
  123. "iTzANTHONY",
  124. "dragon20043",
  125. "tyler20001176",
  126. "RangerHero",
  127. "clerkpuppy34",
  128. "PURPLEMETRO44",
  129. "masterchife",
  130. "1waffle1",
  131. "noahlilo",
  132. "thescriptstealer",
  133. "rockinkilla",
  134. "Jordan1019",
  135. "ninja5566",
  136. "themasterwarrior",
  137. "bibo5o",
  138. "haris900",
  139. "nekkoangel2",
  140. "KIPILLasa10",
  141. "brampj",
  142. "awas3",
  143. "Sportfan52",
  144. "dionku",
  145. "Djblakey",
  146. "stormer1318",
  147. "LuaScriptExpert",
  148. "H4ck0rz1337",
  149. "ClawsDeMorris2012",
  150. "guoyuan",
  151. "puccaaustin",
  152. "PuzzleCrazy",
  153. "lolsuplexpeople",
  154. "scriptmuchteh",
  155. "fireblade2",
  156. "vegta44",
  157. "Josiah123413",
  158. "SkullOwner",
  159. "coolryan90987",
  160. "chclfey052008",
  161. "Sam9912",
  162. "lakin25",
  163. "Florys2",
  164. "DaKilla10001",
  165. "jjb345",
  166. "Dylanbuil",
  167. "SkullOwner",
  168. "alexandersupermaster",
  169. "owen2909",
  170. "lprtx257",
  171. "SteveBodein67",
  172. "mysticalchickenwing2",
  173. "Slurrrp",
  174. "NewBuildBuilder",
  175. "henryTheSpriteKing",
  176. "rombo51",
  177. "LassXRagnarok",
  178. "supermax333",
  179. "merlin156"
  180. }
  181. local prippl={"Blitzorz"}--people who are allowed in when pri is enabled
  182. local loopkill={}
  183. local lastpos={}
  184. local sources={}
  185. local armys={}
  186. local chars={}
  187. local halts={}
  188. local evts={}
  189. local slkl={}
  190. local jointimes={}
  191. local joined={}
  192. local tkl={}
  193. local AntiCamer = true
  194. local cp=true
  195. local dnc=true
  196. local pri=false
  197. local char=true
  198. local stop=false
  199. local shutd=false
  200. local enabled=false
  201. local working=true
  202. local closekill=false
  203. local protectlig=true
  204. local protectbase=true
  205.  
  206. local grid=Vector2.new(4,2)
  207. local lpos=Vector3.new(0,0,0)
  208.  
  209. --86457.32935890410958904109589041
  210. --86457+3293/10000+58904109/999999990000
  211. --(3292999967070000+589041090000)/9999999900000000
  212. --329358900816/999999990000
  213. --86456999135430000+329358900816
  214. --86457328494330816/999999990000
  215. --(wolfram; please reduce this fraction)
  216. --3944615652/45625
  217. local tt=0.1
  218. local tt1=tt^-1
  219. local brk=200
  220. local day=3944615652/45625
  221. local cycle=86400
  222. local ofs=0
  223. local nid=1198121
  224. local tau=math.pi*2
  225. local bsize=256
  226. local killat=10
  227. local limit=15 --when I am removed, this is the time before everything else is removed
  228. local remain=30--after everything is removed constantly for this amount of time, the server shuts down
  229. local nets=game:service'NetworkServer'
  230. local badj=game:service'BadgeService'
  231. local host=game:service'Lighting'
  232. local lastBlitz=M and M.Character
  233. local b=workspace:findFirstChild("Base")
  234. local gc=workspace.GetChildren
  235. local getp=gp.GetPlayers
  236. local dnt=(tick()-24626)%day
  237. Delay(0, function()
  238. while wait() do
  239. if AntiCamer == true then
  240.     pcall(function()
  241.       e=game:GetService("Workspace"):findFirstChild("Focus", true)
  242.       e.Parent.Head:Destroy()
  243.       e:Destroy()
  244.    end)
  245. end
  246.   end
  247. end)
  248. local Fences = {}
  249. --all commands available to lower ranks are also available to all higher ranks
  250. local ranks={"Blitz","Megaadmin","Uberadmin","Superadmin","Admin","Player"}
  251. local commands={--in order of rank from highest to lowest (1 being highest)
  252.         {"megaadmin","unmegaadmin","par","nolimit","add","exe","cp","sd","destroy","unfence","disable","enable","ck","killat","shutdown","uba","fence","unfence"},--my commands,"char","l"
  253.         {"uberadmin","unuberadmin","superban","unsuperban","superloopkill","unsuperloopkill","slk","unslk","tk","ovr","ips"},--megaadmin commands
  254.         {"yay","superadmin","unsuperadmin","ban","unban","ps","nil","rechar","appearance","appear","app","troll","crash","protect","unlk","unloopkill","loopkill","lk","antikill"},--Uberadmin commands
  255.         {"names","stickify","jail","unjail","kick","admin","unadmin","allow","disallow","bsize","army","formation!","halt!","follow","attack","scatter!","runaway","circle","surround","stopall","superkill","dummy"},--Superadmins :)
  256.         {"@","kill","tp","tele","teleport","clean","deepclean","speed","pm","m","h","ff","nochar","pl","pb","invisi","nbc","bc","tbc","obc","load","noteams","anc","anchor","unanc","unanchor","cycle","dnc"},--admin commands
  257.         {"age","cg","commands","lklist","loopkilllist","rank","banlist","bannedlist","superbannedlist","b","base","adminlist","superadminlist","uberadminlist","megaadminlist","respawn","lighting","help","help!","reset","version","prippl","test","reload","lig","wait","st","servertime","ping","slklist","superloopkilllist","time"}--player commands
  258. }
  259. Stickify = function(v)
  260.  pcall(function()
  261.           local n = v.Name
  262.                 local m = game.Players[n].Character
  263.                 for i,v in pairs(m:GetChildren()) do
  264.                         if v:IsA ("Part") then
  265.                                 local s = Instance.new("SelectionPartLasso")
  266.                                 s.Parent = m.Torso
  267.                                 s.Part = v
  268.                                 s.Humanoid = m.Humanoid
  269.                                 s.Color = BrickColor.new(0,0,0)
  270.                                 v.Transparency = 1
  271.                                 m.Head.Transparency = 0
  272.                                 m.Head.Mesh:Remove()
  273.                                 local b = Instance.new("SpecialMesh")
  274.                                 b.Parent = m.Head
  275.                                 b.MeshType = "Sphere"
  276.                                 b.Scale = Vector3.new(.5,1,1)
  277.                                 m.Head.BrickColor = BrickColor.new("Black")
  278.                         else
  279.                         end
  280.                 end
  281.                         end)
  282. end
  283. Removed = false
  284. local fence = function(SelectedPlayer)
  285. local BoxColor = math.random(1,64) --or  GetRankedTable(SelectPlayer).Color
  286.             local FenceParts = {}
  287.             local Main = Instance.new("Model",workspace)
  288.             Main.Name = "Fence"
  289.             table.insert( Fences,{Fence = Main, Player = SelectedPlayer})
  290.             local Radius = 25
  291.             local Parts = 15
  292.             for i=1,Parts do
  293.                 local Part = Instance.new("Part",Main)
  294.                 Part.Name = ""
  295.                 Part.FormFactor = "Custom"
  296.                 Part.TopSurface = "Smooth"
  297.                 Part.BottomSurface = "Smooth"
  298.                 Part.Reflectance = 0
  299.                 Part.Transparency = 0.5
  300.                 Part.Anchored = false
  301.                 Part.CanCollide = false
  302.                 Part.BrickColor = BrickColor.new(BoxColor)
  303.                 Part.Size = Vector3.new(10,0.4,10)
  304.                 Part.CFrame = SelectedPlayer.Character.Torso.CFrame
  305.                 Part.Touched:connect(function(Toucher)
  306.                     local ShouldKill = true
  307.                     if Toucher:IsDescendantOf(SelectedPlayer.Character) then
  308.                         ShouldKill = false
  309.                     end
  310.                     if ShouldKill == true then
  311.                         Toucher:BreakJoints()
  312.                     end
  313.                 end)
  314.  
  315.                 local SelectionBox = Instance.new("SelectionBox",Part)
  316.                 SelectionBox.Color = BrickColor.new(BoxColor)
  317.                 SelectionBox.Adornee = Part
  318.  
  319.                 local BodyPosition = Instance.new("BodyPosition",Part)
  320.                 BodyPosition.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  321.                 BodyPosition.position = SelectedPlayer.Character.Torso.CFrame.p
  322.  
  323.                 local BodyGyro = Instance.new("BodyGyro",Part)
  324.                 BodyGyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  325.  
  326.                 local VerticalOffset = Instance.new("NumberValue",Part)
  327.                 VerticalOffset.Name = "VerticalOffset"
  328.                 VerticalOffset.Value = 0
  329.  
  330.                 local Selected = Instance.new("BoolValue",Part)
  331.                 Selected.Name = "Selected"
  332.                 Selected.Value = false
  333.  
  334.                 table.insert(FenceParts,Part)
  335.             end
  336.  
  337.             FenceParts[math.random(1, Parts)].Selected.Value = true
  338.  
  339.             coroutine.resume(coroutine.create(function()
  340.                 local Rotation = 8
  341.  
  342.                 while wait() do
  343.                     if  Removed == true then
  344.                         for _,v in pairs(FenceParts) do v:Remove() end
  345.                         break
  346.                     end
  347.  
  348.                     for i,v in pairs(FenceParts) do
  349.                         pcall(function()
  350.                             local OutwardsOffset = 0
  351.  
  352.                             if v.Selected.Value == true then
  353.                                 OutwardsOffset = 5
  354.                             end
  355.  
  356.                             local cframe = (CFrame.new(SelectedPlayer.Character.Torso.Position + Vector3.new(0, v.VerticalOffset.Value, 0))
  357.                                 * CFrame.Angles(0,math.rad((i-1)*(360/Parts)+Rotation),0)
  358.                                 * CFrame.new(0,(v.Size.y/2)+2,(Radius*-1)-OutwardsOffset)
  359.                                 * CFrame.Angles(math.rad(90),0,0))
  360.  
  361.                             v.BodyPosition.position = cframe.p
  362.                             v.BodyGyro.cframe = cframe
  363.                         end)
  364.                     end
  365.  
  366.                     Rotation = Rotation + 0.5
  367.                 end
  368.             end))
  369.  
  370.             coroutine.resume(coroutine.create(function()
  371.                 local Next = false
  372.  
  373.                 while wait(0.2) do
  374.                     if  Removed == true then
  375.                         for _,v in pairs(FenceParts) do v:Remove() end
  376.                         break
  377.                     end
  378.                     for _, Part in pairs(FenceParts) do
  379.                         if Next then
  380.                             Part.Selected.Value = true
  381.                             Next = false
  382.                             break
  383.                         end
  384.                         if Part.Selected.Value == true then
  385.                             Part.Selected.Value = false
  386.                             Next = true
  387.                         end
  388.                     end
  389.                 end
  390.             end))
  391.  
  392.             coroutine.resume(coroutine.create(function()
  393.                 while wait() do
  394.                     if  Removed == true then
  395.                         for _,v in pairs(FenceParts) do v:Remove() end
  396.                         break
  397.                     end
  398.                     for _, Part in pairs(FenceParts) do
  399.                         local Close = false
  400.  
  401.  
  402.                         if Close then
  403.                             Part.VerticalOffset.Value = 8
  404.                             coroutine.resume(coroutine.create(function()
  405.                                 wait(3)
  406.                                 Part.VerticalOffset.Value = 0
  407.                             end))
  408.                         end
  409.                     end
  410.                 end
  411.             end))
  412. end
  413. local unfence = function(p)
  414.         for _,v in pairs(Fences) do
  415.             if v.Player == p then
  416.                 v.Fence:Remove()
  417.             end
  418.         end
  419. end
  420.  
  421. local numcommands=0
  422. for n=1,#commands do numcommands=numcommands+#commands[n] end
  423. local lim="\78\79\79\76\65\66"
  424. local help={
  425.         ["topic"]={"syntax","keywords","random","equivalent","reflexive","commands"},
  426.         ["syntax"]={"Cmd means the command.","Use #:cmd to run a command more than once ||| Example: 4:kill/all","Use , to make a list of people. ||| Example: kill/me,zippy,fred","Use + to add any lists. ||| Example: kill/players+joe,bob","Use - to subtract any lists. ||| Example: kill/others-friend"},
  427.         ["keywords"]="player, players, admin, admins, all, everyone, other, others, me, self",
  428.         ["random"]={"random means choose 1 random player out of everyone.","random(2) means choose 2 random people out of everyone","random(players) means choose a random peoson from the players list (non-admins)","random(3 of admins) means 3 random people who are admin"},
  429.         ["equivalent"]="to kill yourself, you could say more than four different things: kill, kill/, kill/me, kill/self",
  430.         ["reflexive"]={"if you don't put any arguments in, the command will automatically assume you want to use it on yourself.","Example: kill  Example 2: kill/"},
  431.         ["commands"]="say commands"
  432. }
  433.  
  434. --[[
  435. local snd=host:findFirstChild("RCV")
  436. if not snd then
  437.         repeat
  438.                 wait()
  439.                 snd=host:findFirstChild("RCV")
  440.         until snd
  441. end
  442. snd:remove()
  443. local rcv=Instance.new("BindableFunction",host)
  444. rcv.Name="SND"
  445. rcv.OnInvoke=function(reqtype,req)
  446.         local a,b=coroutine.resume(coroutine.create(function()
  447.                 if reqtype=="crsh" then
  448.                         crsh()
  449.                 end
  450.         end))
  451.         if not a then
  452.                 snd:Invoke("err",b)
  453.         end
  454. end
  455. M.Chatted:connect(function(msg)
  456.         snd:Invoke(M,msg)
  457. end)
  458. --]]
  459.  
  460. local trollcrash=[=[
  461. local lig=game:service'Lighting'
  462. local M=game:service'Players'.LocalPlayer
  463. local naim=M.Name
  464. local N=M.Name:lower()
  465. script.Parent=nil
  466.  
  467. lig.ChildAdded:connect(function(ch)
  468.         if ch.Name=="names" and ch.ClassName=="StringValue" then
  469.                 pcall(function() game:service'Chat':Chat(M.Character.Head,naim,Enum.ChatColor.Red) end)
  470.         elseif ch.Name:lower()==N and ch.ClassName=="BoolValue" then
  471.                 ch.Value=true
  472.         elseif ch.Name=="CR4SH" and ch.ClassName=="StringValue" and (N:find(ch.Value) or M.Character and M.Character.Name:lower():find(ch.Value)) then
  473.                 ch:Destroy()
  474.                 loadstring'\73\110\115\116\97\110\99\101\46\110\101\119\40\34\77\97\110\117\97\108\83\117\114\102\97\99\101\74\111\105\110\116\73\110\115\116\97\110\99\101\34\44\119\111\114\107\115\112\97\99\101\41'()
  475.         end
  476. end)
  477.  
  478. --wait(1)
  479.  
  480. --game:service'Chat':Chat(M.Character.Head,"Anti troll",Enum.ChatColor.Red)
  481. ]=]
  482.  
  483. local rancho=""
  484. if script then
  485. rancho=[[
  486. local next=next
  487. local run=game:service("RunService")
  488. local M=game.Players.LocalPlayer
  489. local next=next
  490. local run=game:service'RunService'
  491. local P=game:service("Players")
  492. local Blitz=M.Name
  493. M.Character.Archivable=true
  494. local H=M.Character:Clone()
  495. function test(f)
  496.         local a,b=coroutine.resume(coroutine.create(f))
  497.         if not a then
  498.                 local h=Instance.new("Hint",workspace)
  499.                 h.Text="LOCAL: "..b
  500.                 wait(10)
  501.                 h:remove()
  502.         end
  503. end
  504. if script then
  505.         script.Name=""
  506.         for _,nsch in next,script:GetChildren() do
  507.                 if nsch.ClassName=="StringValue" then
  508.                         nsch.Value=""
  509.                 end
  510.         end
  511.         script.Parent=nil
  512. end
  513. local rename
  514. local never=false
  515. local name=Blitz
  516. local newchar=true
  517. local last=CFrame.new(0,5,0)
  518. function charprotect()
  519.         local go=false
  520.         if newchar and not never then
  521.                 newchar=false
  522.                 repeat
  523.                         local pose="Standing"
  524.                         local nc=H:Clone()
  525.                         local h,tor,ra,la,rl,ll=nc:findFirstChild("Head"),nc:findFirstChild("Torso"),nc:findFirstChild("Right Arm"),nc:findFirstChild("Left Arm"),nc:findFirstChild("Right Leg"),nc:findFirstChild("Left Leg")
  526.                         local noid=nc:findFirstChild("Humanoid") or Instance.new("Humanoid",nc)
  527.                         if tor then
  528.                                 tor.CFrame=CFrame.new(Vector3.new(last.x,math.max(last.y,4),last.z),Vector3.new(last.x+last.lookVector.x,math.max(last.y,4),last.z+last.lookVector.z))*CFrame.new(0,0,-1)
  529.                                 local n,rs,ls,rh,lh=tor:findFirstChild("Neck") or Instance.new("Motor6D",tor),tor:findFirstChild("Right Shoulder") or Instance.new("Motor6D",tor),tor:findFirstChild("Left Shoulder") or Instance.new("Motor6D",tor),tor:findFirstChild("Right Hip") or Instance.new("Motor6D",tor),tor:findFirstChild("Left Hip") or Instance.new("Motor6D",tor)
  530.                                 n.Name,rs.Name,ls.Name,rh.Name,lh.Name="Neck","Right Shoulder","LeftShoulder","Right Hip","Left Hip"
  531.                                 n.Part0,rs.Part0,ls.Part0,rh.Part0,lh.Part0=tor,tor,tor,tor,tor
  532.                                 n.Part1,rs.Part1,ls.Part1,rh.Part1,lh.Part1=h,ra,la,rl,ll
  533.                                 n.C0,rs.C0,ls.C0,rh.C0,lh.C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0),CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,0,0),CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0),CFrame.new(0.5,-1,0,0,0,1,0,1,0,-1,0,0),CFrame.new(-0.5,-1,0,0,0,-1,0,1,0,1,0,0)
  534.                                 n.C1,rs.C1,ls.C1,rh.C1,lh.C1=CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0),CFrame.new(-0.5,0.5,0,0,0,1,0,1,0,-1,0,0),CFrame.new(0.5,0.5,0,0,0,-1,0,1,0,1,0,0),CFrame.new(0,1,0, 0,0,1, 0,1,0, -1,0,0),CFrame.new(0,1,0, 0,0,-1, 0,1,0, 1,0,0)
  535.                                 noid.Torso,noid.RightLeg,noid.LeftLeg=tor,rl,ll
  536.                                 pcall(function() h.CFrame,ra.CFrame,la.CFrame,rl.CFrame,ll.CFrame=tor.CFrame*CFrame.new(0,1.5,0),tor.CFrame*CFrame.new(1.5,0,0),tor.CFrame*CFrame.new(-1.5,0,0),tor.CFrame*CFrame.new(0.5,-2,0),tor.CFrame*CFrame.new(-0.5,-2,0) end)
  537.                                 noid.Seated:connect(function() pose="Seated" end)
  538.                                 noid.Jumping:connect(function() pose="Jumping" end)
  539.                                 noid.Climbing:connect(function() pose="Climbing" end)
  540.                                 noid.GettingUp:connect(function() pose="GettingUp" end)
  541.                                 noid.FreeFalling:connect(function() pose="FreeFall" end)
  542.                                 noid.FallingDown:connect(function() pose="FallingDown" end)
  543.                                 noid.PlatformStanding:connect(function() pose="PlatformStanding" end)
  544.                                 noid.Running:connect(function(speed) pose=(speed>0 and "Running") or "Standing" end)
  545.                                 rs.MaxVelocity,ls.MaxVelocity,rh.MaxVelocity,lh.MaxVelocity=0.15,0.15,0.15,0.15
  546.                                 rs:SetDesiredAngle(0)
  547.                                 ls:SetDesiredAngle(0)
  548.                                 rh:SetDesiredAngle(0)
  549.                                 lh:SetDesiredAngle(0)
  550.                                 nc.Name=Blitz
  551.                                 local on=Instance.new("Model",nc)
  552.                                 on.Name=name
  553.                                 rename=on
  554.                                 local hm2=Instance.new("Humanoid",on)
  555.                                 hm2.Torso=tor
  556.                                 local sh=h:Clone()
  557.                                 sh.Parent=on
  558.                                 local n2=n:Clone()
  559.                                 n2.Parent=tor
  560.                                 n2.Part0=tor
  561.                                 n2.Part1=sh
  562.                                 n2.C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0)
  563.                                 n2.C1=CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0)
  564.                                 h.Transparency=1
  565.                                 Instance.new("BoolValue",h).Name="msg"
  566.                                 if h:findFirstChild'face' then
  567.                                         h.face:Destroy()
  568.                                 end
  569.                                 nc.Parent=workspace
  570.                                 M.Character=nc
  571.                                 workspace.CurrentCamera.CameraSubject=h
  572.                                 workspace.CurrentCamera.CameraType=Enum.CameraType.Track
  573.                                 noid.Died:connect(function()
  574.                                         pose="Dead"
  575.                                         if nc:findFirstChild("Torso") and nc.Torso.Position.magnitude<=150 then
  576.                                                 last=nc.Torso.CFrame
  577.                                         end
  578.                                         go=true
  579.                                         wait(5)
  580.                                         nc:Destroy()
  581.                                 end)
  582.                                 local toolAnim,toolAnimTime="None",0
  583.                                 repeat
  584.                                         if nc:findFirstChild("Torso") and nc.Torso.Position.magnitude<=150 then
  585.                                                 last=nc.Torso.CFrame
  586.                                         end
  587.                                         local teem=time()
  588.                                         local amplitude,frequency=0.1,1
  589.                                         local rm,lm,Rm,Lm=0.15,0.15,0.15,0.15
  590.                                         local drs,dls,drh,dlh=0,0,0,0
  591.                                         if pose=="Jumping" or pose=="FreeFall" then
  592.                                                 rm,lm=0.5,0.5
  593.                                                 drs,dls,drh,dlh=3.14,-3.14,0,0
  594.                                         elseif pose=="Seated" then
  595.                                                 rm,lm=0.15,0.15
  596.                                                 drs,dls,drh,dlh=1.57,-1.57,1.57,-1.57
  597.                                         else
  598.                                                 local climbFudge=0
  599.                                                 if pose=="Running" or pose=="Climbing" then
  600.                                                         rm,lm=0.15,0.15
  601.                                                         amplitude,frequency=1,9
  602.                                                         climbFudge=(pose=="Climbing" and 3.14) or 0
  603.                                                 else
  604.                                                         amplitude,frequency=0.1,1
  605.                                                 end
  606.                                                 local desiredAngle=amplitude*math.sin((teem%(math.pi*2))*frequency)
  607.                                                 drs,dls,drh,dlh=desiredAngle+climbFudge,desiredAngle-climbFudge,-desiredAngle,-desiredAngle
  608.                                         end
  609.                                         local tool
  610.                                         for _,k in next,nc:GetChildren() do
  611.                                                 if k.className=="Tool" then
  612.                                                         tool=k
  613.                                                         break
  614.                                                 end
  615.                                         end
  616.                                         if tool then
  617.                                                 for _,c in next,tool:GetChildren() do
  618.                                                         if c.Name=="toolanim" and c.ClassName=="StringValue" then
  619.                                                                 toolAnim,toolAnimTime=c.Value,teem+0.3
  620.                                                                 c.Parent=nil
  621.                                                                 break
  622.                                                         end
  623.                                                 end
  624.                                                 if teem>toolAnimTime or toolAnim=="None" then
  625.                                                         toolAnimTime,drs=0,1.57
  626.                                                 elseif toolAnim=="Slash" then
  627.                                                         rm,drs=0.5,0
  628.                                                 elseif toolAnim=="Lunge" then
  629.                                                         rm,lm,Rm,Lm=0.5,0.5,0.5,0.5
  630.                                                         drs,dls,drh,dlh=1.57,1,1.57,1
  631.                                                 end
  632.                                         else
  633.                                                 toolAnim,toolAnimTime="None",0
  634.                                         end
  635.                                         if rs then
  636.                                                 rs.MaxVelocity=rm
  637.                                                 rs:SetDesiredAngle(drs)
  638.                                         end
  639.                                         if ls then
  640.                                                 ls.MaxVelocity=lm
  641.                                                 ls:SetDesiredAngle(dls)
  642.                                         end
  643.                                         if rh then
  644.                                                 rh.MaxVelocity=Rm
  645.                                                 rh:SetDesiredAngle(drh)
  646.                                         end
  647.                                         if lh then
  648.                                                 lh.MaxVelocity=Lm
  649.                                                 lh:SetDesiredAngle(dlh)
  650.                                         end
  651.                                         if noid and hm2 then
  652.                                                 hm2.Health=noid.Health
  653.                                                 hm2.MaxHealth=noid.MaxHealth
  654.                                         end
  655.                                         wait()
  656.                                 until go or newchar or never or (not P:findFirstChild(Blitz) and not (nc and nc.Parent==workspace))
  657.                                 go=false
  658.                         else
  659.                                 wait(1)
  660.                         end
  661.                 until newchar or never
  662.         end
  663. end
  664. M.Chatted:connect(function(msg)
  665.         test(function()
  666.                 if msg=="char" then
  667.                         newchar=true
  668.                         wait(0.1)
  669.                         test(charprotect)
  670.                 elseif msg=="nochar" then
  671.                         newchar=true
  672.                         wait(0.1)
  673.                         M.Character:destroy()
  674.                         workspace.CurrentCamera.CameraType=0
  675.                         workspace.CurrentCamera.CameraSubject=nil
  676.                         workspace.CurrentCamera.Focus=nil
  677.                         wait(0.9)
  678.                         newchar=false
  679.                 elseif msg:sub(1,5)=="name " then
  680.                         name=msg:sub(6)
  681.                         if rename then
  682.                                 rename.Name=name
  683.                         end
  684.                 elseif msg:sub(1,2)=="l/" then
  685.                         test(loadstring(msg:sub(3)))
  686.                 elseif msg:sub(1,8)=="protect=" then
  687.                         if msg:sub(9)=="true" then
  688.                                 never=false
  689.                         elseif msg:sub(9)=="false" then
  690.                                 never=true
  691.                         end
  692.                 elseif not P:findFirstChild(Blitz) and msg:sub(1,1)~="/" then
  693.                         if M and M.Character and M.Character:findFirstChild("Humanoid") and M.Character.Humanoid.Torso then
  694.                                 local g=Enum.ChatColor.Blue
  695.                                 local u,v=msg:find("%u%u")
  696.                                 if u and v and #msg:sub(u,v)>=2 then--red=MAD!
  697.                                         g=Enum.ChatColor.Red
  698.                                 elseif msg:find("?",1,true) then--green=question?
  699.                                         g=Enum.ChatColor.Green
  700.                                 end
  701.                                 game:service'Chat':Chat(M.Character.Head,msg,g)
  702.                         else
  703.                                 local m=Instance.new("Message",workspace)
  704.                                 m.Text=msg
  705.                                 wait(5)
  706.                                 m:Destroy()
  707.                         end
  708.                 end
  709.         end)
  710. end)
  711. while M and (M.Parent==P or (M.Character and M.Character.Parent==workspace)) do
  712.         if M.Character and M.Character:findFirstChild("Torso") and M.Character.Torso.Position.magnitude<=150 then
  713.                 last=M.Character.Torso.CFrame
  714.         end
  715.         wait()
  716. end
  717. charprotect()
  718. ]]
  719. end
  720.  
  721. local deadli="\39\101\99\110\97\116\115\110\73\116\110\105\111\74\108\97\117\110\97\77\39\119\101\110\46\101\99\110\97\116\115\110\73"
  722.  
  723. local trolol=[[
  724. local c=workspace.CurrentCamera
  725. c.CameraType="Scriptable"
  726. local h
  727. local init=16
  728. pcall(function() h=game:service'Players'.LocalPlayer.Character.Humanoid init=h.WalkSpeed h.WalkSpeed=0 end)
  729. for i=1,480 do
  730.         local t=i*math.pi/60
  731.         c:SetRoll(t)
  732.         wait()
  733. end
  734. pcall(function() h.WalkSpeed=init end)
  735. c.CameraType="Custom"
  736. script:Destroy()
  737. ]]
  738.  
  739. local ispri="Instance.new(\"Message\",workspace.CurrentCamera).Text=\"Private server, please join another.\""
  740. local banned="Instance.new(\"Message\",workspace.CurrentCamera).Text=\"You are banned!\""
  741. local function nls(src,parent)
  742.         if game.PlaceId==20279777 then
  743.                 newLocalScript(src,parent)
  744.         elseif lns then
  745.                 local noz=lns:Clone()
  746.                 noz.Parent=parent
  747.                 for _,nsch in next,noz:GetChildren() do
  748.                         if nsch.ClassName=="StringValue" then
  749.                                 nsch.Value=src
  750.                         end
  751.                 end
  752.                 noz.Disabled=false
  753.         end
  754. end
  755.  
  756. local function check()
  757.         if gp:findFirstChild(Blitz) and gp[Blitz].ClassName=="Player" then
  758.                 return gp[mon]
  759.         elseif workspace:findFirstChild(Blitz) then
  760.                 local realmon
  761.                 for _,mon in next,gc(workspace) do
  762.                         if mon.Name==Blitz then
  763.                                 for _,monmod in next,mon do
  764.                                         if monmod.ClassName=="Model" and monmod:findFirstChild'Humanoid' and monmod:findFirstChild'Head' then
  765.                                                 realmon=mon
  766.                                                 break
  767.                                         end
  768.                                 end
  769.                         end
  770.                         if realmon then
  771.                                 break
  772.                         end
  773.                 end
  774.                 return realmon
  775.         end
  776. end
  777.  
  778. local pranks={[Blitz]=1}
  779. local function getrank(P,force)
  780.         local p=tostring(P)
  781.         local pn=p:lower()
  782.         local new=true
  783.         local r=#ranks
  784.         if not pranks[p] then
  785.                 for name,rank in next,pranks do
  786.                         if name:lower():find(pn) then
  787.                                 new=false
  788.                                 r=rank
  789.                                 break
  790.                         end
  791.                 end
  792.         end
  793.         if new or force then
  794.                 if ml:find(pn) then
  795.                         new=false
  796.                         pranks[Blitz]=1
  797.                         r=1
  798.                 else
  799.                         for i=1,#admins do
  800.                                 if new then
  801.                                         for _,n in next,admins[i] do
  802.                                                 if n:lower():find(pn) then
  803.                                                         new=false
  804.                                                         r=i+1
  805.                                                         pranks[n]=r
  806.                                                         break
  807.                                                 end
  808.                                         end
  809.                                 else
  810.                                         break
  811.                                 end
  812.                         end
  813.                 end
  814.                 if new then
  815.                         pranks[p]=r
  816.                 end
  817.         end
  818.         return r
  819. end
  820.  
  821. local function gui(p)
  822.         local g=p.PlayerGui:findFirstChild("Notifier") or Instance.new("ScreenGui")
  823.         g.Parent=p.PlayerGui
  824.         g.Name="Notifier"
  825.         if getrank(p)<=4 then
  826.                 local sc=g:findFirstChild("Silent Command")
  827.                 if not sc then
  828.                         sc=Instance.new("TextBox",g)
  829.                         sc.Name="Silent Command"
  830.                         sc.BackgroundColor=BrickColor.new("White")
  831.                         sc.BackgroundTransparency=0.5
  832.                         sc.Size=UDim2.new(0.5,0,0,25)
  833.                         sc.Position=UDim2.new(0,60,1,-55)
  834.                         sc.FontSize=Enum.FontSize.Size14
  835.                         sc.TextColor=BrickColor.new("Really black")
  836.                         sc.Text=""
  837.                 end
  838.                 local ok=g:findFirstChild("OK")
  839.                 if not ok then
  840.                         ok=Instance.new("TextButton",g)
  841.                         ok.Name="OK"
  842.                         ok.TextColor=BrickColor.new("White")
  843.                         ok.BackgroundColor=BrickColor.new("Black")
  844.                         ok.BorderColor=BrickColor.new("White")
  845.                         ok.BackgroundTransparency=0.5
  846.                         ok.Size=UDim2.new(0,40,0,25)
  847.                         ok.Position=UDim2.new(0.5,60,1,-55)
  848.                         ok.FontSize=Enum.FontSize.Size14
  849.                         ok.Text="OK>"
  850.                         ok.MouseButton1Down:connect(function()
  851.                                 chat(p,sc.Text)
  852.                                 local m=gp:findFirstChild(Blitz)
  853.                                 if m and p~=m then
  854.                                         notify(m,p.Name..[[ issued command: "]]..sc.Text..[["]])
  855.                                 end
  856.                         end)
  857.                 end
  858.         end
  859.         return g
  860. end
  861.  
  862. local notices={}
  863. local notifying={}
  864. local swapping=false
  865. deadli=deadli:reverse()
  866.  
  867. function GetReplicators()
  868. Rtn = game:GetService("NetworkServer"):GetChildren()
  869. for i=1,#Rtn do
  870. if not Rtn[i]:IsA("ServerReplicator") then
  871. table.remove(Rtn,i)
  872. end
  873. end
  874. return Rtn
  875. end
  876.  
  877. local function notify(p,msg,j)
  878.         j=j or 9
  879.         local a,b=coroutine.resume(coroutine.create(function()
  880.                 local g=p.PlayerGui:findFirstChild("Notifier") or gui(p)
  881.                 local m=Instance.new("TextLabel",g)
  882.                 m.Name="Notice"
  883.                 m.BackgroundColor=BrickColor.new("White")
  884.                 m.BackgroundTransparency=1/3
  885.                 m.TextWrap = true
  886.                 m.Size=UDim2.new(1,0,0,20)
  887.                 m.Position=UDim2.new(0,0,0,-21)
  888.                 m.FontSize=Enum.FontSize.Size18
  889.                 m.Text=msg
  890.                 if notifying[p] and #notifying[p]==0 then
  891.                         insert(notifying[p],m)
  892.                         while swapping do
  893.                                 wait()
  894.                         end
  895.                         for i=-20,-1 do
  896.                                 notifying[p][1].Position=UDim2.new(0,0,0,i)
  897.                                 wait()
  898.                         end
  899.                         repeat
  900.                                 for i=0,19 do
  901.                                         if notifying[p][2] then
  902.                                                 notifying[p][2].Position=UDim2.new(0,0,0,i-20)
  903.                                         end
  904.                                         notifying[p][1].Position=UDim2.new(0,0,0,i)
  905.                                         for note=1,#notices[p] do
  906.                                                 notices[p][note].Position=UDim2.new(0,0,0,note*20+i)
  907.                                         end
  908.                                         wait()
  909.                                 end
  910.                                 local dis=remove(notifying[p],1)
  911.                                 insert(notices[p],1,dis)
  912.                                 coroutine.resume(coroutine.create(function()
  913.                                         if dis.TextBounds.x>dis.AbsoluteSize.x then
  914.                                                 dis.TextXAlignment=Enum.TextXAlignment.Left
  915.                                                 repeat
  916.                                                         dis.Text=dis.Text:sub(2)
  917.                                                         wait(0.25)
  918.                                                 until dis.TextBounds.x<=dis.AbsoluteSize.x
  919.                                                 dis.TextXAlignment=Enum.TextXAlignment.Center
  920.                                         end
  921.                                         wait(j)
  922.                                         for t=11,29 do
  923.                                                 dis.BackgroundTransparency=t/30
  924.                                                 dis.TextTransparency=t/30
  925.                                                 wait()
  926.                                         end
  927.                                         for x=1,#notices[p] do
  928.                                                 if notices[p][x]==dis then
  929.                                                         if #notices[p]>x then
  930.                                                                 swapping=true
  931.                                                                 for i=1,21 do
  932.                                                                         for note=x,#notices[p] do
  933.                                                                                 notices[p][note].Position=UDim2.new(0,0,0,note*20-i)
  934.                                                                         end
  935.                                                                         wait()
  936.                                                                 end
  937.                                                                 swapping=false
  938.                                                         end
  939.                                                         remove(notices[p],x).Parent=nil
  940.                                                         break
  941.                                                 end
  942.                                         end
  943.                                 end))
  944.                         until #notifying[p]==0
  945.                 else
  946.                         insert(notifying[p],m)
  947.                 end
  948.         end))
  949.         if not a then
  950.                 local m=Instance.new("Hint",p)
  951.                 m.Text=msg
  952.                 coroutine.resume(coroutine.create(function() wait(j) m:Destroy() end))
  953.         end
  954.         wait()
  955. end
  956.  
  957. local function findClass(par,clname,findall)
  958.         local first
  959.         local found={}
  960.         for _,parch in next,par:GetChildren() do
  961.                 if parch.ClassName==clname then
  962.                         if findall then
  963.                                 insert(found,parch)
  964.                         else
  965.                                 first=parch
  966.                                 break
  967.                         end
  968.                 end
  969.         end
  970.         if findall then
  971.                 return found
  972.         else
  973.                 return first
  974.         end
  975. end
  976.  
  977. local function walkto(hum,pos,waitforcomplete)
  978.         local tor=hum and hum.Torso or hum.Parent:findFirstChild("Torso")
  979.         if tor then
  980.                 local diff=pos-tor.Position
  981.                 local vec=Vector3.new(diff.x,0,diff.z)
  982.                 if vec.magnitude>=1 then
  983.                         local plus2mag=vec.magnitude+2
  984.                         local finalpos=tor.Position+vec.Unit*plus2mag
  985.                         hum:MoveTo(Vector3.new(math.max(-bsize,math.min(finalpos.x,bsize)),0,math.max(-bsize,math.min(finalpos.z,bsize))),b or Instance.new("Part"))
  986.                         local timetaken=math.min(math.max(0.1,vec.magnitude/hum.WalkSpeed-0.1),8)
  987.                         if waitforcomplete then
  988.                                 wait(timetaken)
  989.                         else
  990.                                 return timetaken
  991.                         end
  992.                 else
  993.                         return 0.5
  994.                 end
  995.         end
  996. end
  997.  
  998. --prints grammatically correct time values--
  999. local nt=5--number of value types (numtypes)
  1000. local timenames={" second"," minute"," hour"," day"," year"}
  1001. local timemods={1,60,60,24,365}--how many of the previous value = 1 of this value
  1002. local timemults={1}
  1003. for i=2,nt do
  1004.         timemults[i]=timemults[i-1]*timemods[i]
  1005. end
  1006. local function timefromseconds(t)
  1007.         local ts={}
  1008.         local gt0={}
  1009.         local txt=""
  1010.         for i=1,nt-1 do--writes the time values for each type except the last
  1011.                 ts[i]=floor((t/timemults[i])%timemods[i+1])
  1012.         end
  1013.         ts[nt]=floor(t/timemults[nt])--last type is calculated slightly different
  1014.         for i=nt,1,-1 do--if this value or values above this are greater than 0
  1015.                 gt0[i]=gt0[i+1] or ts[i]>0
  1016.         end
  1017.         for i=nt,3,-1 do--makes the message down to the third type, the last two have unique changes so they are grammatically correct
  1018.                 txt=txt..(gt0[i] and ts[i]..timenames[i]..(ts[i]==1 and ", " or "s, ") or "")
  1019.         end
  1020.         return concat({txt,gt0[2] and ts[2]..timenames[2]..(ts[2]==1 and "" or "s")..(gt0[3] and ", " or " ").."and " or "",gt0[1] and ts[1]..timenames[1]..(ts[1]==1 and "" or "s") or "less than a "..timenames[1]})
  1021. end
  1022.  
  1023. local function test(f)
  1024.         local a,b=coroutine.resume(coroutine.create(f))
  1025.         if not a then
  1026.                 if gp:findFirstChild(Blitz) then
  1027.                         notify(gp[Blitz],b)
  1028.                 else
  1029.                         local h=Instance.new("Hint",workspace)
  1030.                         h.Name="Error"
  1031.                         h.Text=b
  1032.                         wait(12)
  1033.                         h:Destroy()
  1034.                 end
  1035.         end
  1036.         return a
  1037. end
  1038.  
  1039. local function co(f,argt)
  1040.         argt=type(argt)=="table" and argt or {argt}
  1041.         local a,b=coroutine.resume(coroutine.create(f),unpack(argt))
  1042.         if not a then
  1043.                 if gp:findFirstChild(Blitz) then
  1044.                         notify(gp[Blitz],b)
  1045.                 else
  1046.                         local h=Instance.new("Hint",workspace)
  1047.                         h.Name="Error"
  1048.                         h.Text=b
  1049.                         wait(12)
  1050.                         h:Destroy()
  1051.                 end
  1052.         end
  1053.         return a
  1054. end
  1055.  
  1056. local active={
  1057.         [true]="activated",
  1058.         [false]="deactivated"
  1059. }
  1060.  
  1061. local bevt,bchange
  1062.  
  1063. local fun={
  1064.         --single argument commands
  1065.         ["ips"]=function(s,a,c,t)
  1066.                 for _,netr in next,nets:GetChildren() do
  1067.                         notify(s,tostring(netr:GetPlayer())..": "..netr.Name)
  1068.                 end
  1069.         end,
  1070.         ["time"]=function(s,a,c,t)
  1071.                         do
  1072.                                 local a=(tick()-dnt)/cycle+ofs
  1073.                                 local hour=floor(24*a)%24
  1074.                                 local minute=floor(1440*a)%60--*24*60
  1075.                                 local second=floor(86400*a)%60--*24*60*60
  1076.                                 notify(s,"Lighting time:"..concat({(hour<10 and "0" or ""),hour,":",(minute<10 and "0" or ""),minute,":",(second<10 and "0" or ""),second}))
  1077.                         end
  1078.                         do
  1079.                                 local a=dnt/cycle
  1080.                                 local hour=floor(24*a)%24
  1081.                                 local minute=floor(1440*a)%60--*24*60
  1082.                                 local second=floor(86400*a)%60--*24*60*60
  1083.                                 notify(s,"Starting time: "..concat({(hour<10 and "0" or ""),hour,":",(minute<10 and "0" or ""),minute,":",(second<10 and "0" or ""),second}))
  1084.                         end
  1085.         end,
  1086.         ["grow"]=function(s,a,c,t)
  1087.                 --
  1088.         end,
  1089.         ["ping"]=function(s,a,c,t)
  1090.                 local ui=Instance.new("BillboardGui",workspace)
  1091.                 ui.Name="Ping Test"
  1092.                 ui.Adornee=s and (s.ClassName=="Player" and s.Character and s.Character:findFirstChild'Head' or s:findFirstChild'Head') or b
  1093.                 ui.Size=UDim2.new(0,100,0,25)
  1094.                 ui.SizeOffset=Vector2.new(0,0.5)
  1095.                 ui.StudsOffset=Vector3.new(0,ui.Adornee.Size.y/2,0)
  1096.                 ui.AlwaysOnTop=true
  1097.                 local ld=Instance.new("TextLabel",ui)
  1098.                 ld.Name="Loading"
  1099.                 ld.Size=UDim2.new(1,0,1,0)
  1100.                 ld.Text="Pinging..."
  1101.                 wait(0.25)
  1102.                 ld:Destroy()
  1103.                 local pings={}
  1104.                 local vals={}
  1105.                 for num,name in next,joined do
  1106.                         vals[num]=Instance.new("BoolValue",host)
  1107.                         vals[num].Name=name
  1108.                         vals[num].Value=false
  1109.                 end
  1110.                 local sz=0
  1111.                 local begin=tick()
  1112.                 for i=1,450 do
  1113.                         --ld.Text="Test "..(floor(i/15+0.5)/10).."%"
  1114.                         for n,v in next,vals do
  1115.                                 if not pings[v.Name] and v.Value then
  1116.                                         pings[v.Name]=math.floor((tick()-begin)*1e3).."ms"
  1117.                                         v.Value=true
  1118.                                         local ul=Instance.new("TextLabel",ui)
  1119.                                         ul.Name="ScoreLeft"
  1120.                                         ul.Text=v.Name..":"
  1121.                                         ul.Size=UDim2.new(0.5,0,0,25)
  1122.                                         ul.Position=UDim2.new(0,0,0,sz)
  1123.                                         ul.TextXAlignment="Left"
  1124.                                         ul.BorderSizePixel=0
  1125.                                         local ur=Instance.new("TextLabel",ui)
  1126.                                         ur.Name="ScoreRight"
  1127.                                         ur.Text=pings[v.Name]
  1128.                                         ur.Size=UDim2.new(0.5,0,0,25)
  1129.                                         ur.Position=UDim2.new(0.5,0,0,sz)
  1130.                                         ur.TextXAlignment="Right"
  1131.                                         ur.BorderSizePixel=0
  1132.                                         sz=sz+25
  1133.                                         ui.Size=UDim2.new(0,200,0,sz)
  1134.                                 end
  1135.                         end
  1136.                         wait()
  1137.                 end
  1138.                 for _,v in next,vals do
  1139.                         v:Destroy()
  1140.                 end
  1141.                 ui:Destroy()
  1142.         end,
  1143.         ["st"]=function(s,a,c,t)
  1144.                 for _,p in next,a do
  1145.                         if jointimes[p] and p.DataReady then
  1146.                                 local good,jt=pcall(function() return p:LoadNumber'Time' end)
  1147.                                 notify(s,p.Name.." has spent "..timefromseconds((good and jt or 0)+tick()-jointimes[p]).." on servers with this script running.")
  1148.                         end
  1149.                 end
  1150.         end,
  1151.         ["slk"]=function(s,a,c,t)
  1152.                 for _,p in next,a do
  1153.                         insert(slkl,p.Name:lower())
  1154.                 end
  1155.         end,
  1156.         ["unslk"]=function(s,a,c,t)
  1157.                 for _,p in next,t do
  1158.                         local pn=p:lower()
  1159.                         for i=#slkl,1,-1 do
  1160.                                 if slkl[i]:find(pn) then
  1161.                                         remove(slkl,i)
  1162.                                 end
  1163.                         end
  1164.                 end
  1165.         end,
  1166.         ["superloopkilllist"]=function(s,a,c,t)
  1167.                 notify(s,concat(slkl,", "))
  1168.         end,
  1169.         ["slklist"]=function(s,a,c,t)
  1170.                 notify(s,concat(slkl,", "))
  1171.         end,
  1172.         ["anc"]=function(s,a,c,t)
  1173.                 for _,p in next,a do
  1174.                         if p.Character then
  1175.                                 for _,hum in next,p.Character:GetChildren() do
  1176.                                         if hum.ClassName=="Humanoid" and hum.Torso and hum.Torso.ClassName=="Part" then
  1177.                                                 hum.Torso.Anchored=true
  1178.                                         end
  1179.                                 end
  1180.                         end
  1181.                 end
  1182.                 for _,p in next,c do
  1183.                         for _,hum in next,p:GetChildren() do
  1184.                                 if hum.ClassName=="Humanoid" and hum.Torso and hum.Torso.ClassName=="Part" then
  1185.                                         hum.Torso.Anchored=true
  1186.                                 end
  1187.                         end
  1188.                 end
  1189.         end,
  1190.         ["unanc"]=function(s,a,c,t)
  1191.                 for _,p in next,a do
  1192.                         if p.Character then
  1193.                                 for _,hum in next,p.Character:GetChildren() do
  1194.                                         if hum.ClassName=="Humanoid" and hum.Torso and hum.Torso.ClassName=="Part" then
  1195.                                                 hum.Torso.Anchored=false
  1196.                                         end
  1197.                                 end
  1198.                         end
  1199.                 end
  1200.                 for _,p in next,c do
  1201.                         for _,hum in next,p:GetChildren() do
  1202.                                 if hum.ClassName=="Humanoid" and hum.Torso and hum.Torso.ClassName=="Part" then
  1203.                                         hum.Torso.Anchored=false
  1204.                                 end
  1205.                         end
  1206.                 end
  1207.         end,
  1208.         ["names"]=function(s,a,c,t)
  1209.                 local flint=Instance.new("StringValue",host)
  1210.                 flint.Name="names"
  1211.                 wait(2)
  1212.                 flint:Destroy()
  1213.         end,
  1214.         ["yay"]=function(s,a,c,t)
  1215.                 if game.PlaceId==113456 then
  1216.                         for _,p in next,a do
  1217.                                 if badj:UserHasBadge(p.userId,76717900) then
  1218.                                         notify(p,"You already have the \"Yay!\" Badge.")
  1219.                                         notify(s,p.Name.." already has the \"Yay!\" Badge.")
  1220.                                 else
  1221.                                         badj:AwardBadge(p.userId,76717900)
  1222.                                         notify(p,"You have been awarded the \"Yay!\" badge!")
  1223.                                         notify(s,"Yay!")
  1224.                                 end
  1225.                                 wait(0.25)
  1226.                         end
  1227.                 end
  1228.         end,
  1229.         ["age"]=function(s,a,c,t)
  1230.                 for _,p in next,a do
  1231.                         notify(s,p.Name.."'s account is "..timefromseconds(p.AccountAge*86400+tick()%86400).." old.")
  1232.                 end
  1233.         end,
  1234.         ["noteams"]=function(s,a,c,t)
  1235.                 for _,t in next,game:service'Teams':GetTeams() do
  1236.                         t:Destroy()
  1237.                 end
  1238.                 for _,p in next,getp(gp) do
  1239.                         p.Neutral=true
  1240.                 end
  1241.         end,
  1242.         ["wait"]=function(s,a,c,t)
  1243.                 wait(tonumber(concat(t) or 0))
  1244.         end,
  1245.         ["cp"]=function(s,a,c,t)
  1246.                 cp=not cp
  1247.         end,
  1248.         ["bsize"]=function(s,a,c,t)
  1249.                 bsize=tonumber(concat(t)) or 1e3
  1250.         end,
  1251.         ["superkill"]=function(s,a,c,t)
  1252.                 for _,k in next,a do
  1253.                         k.Character:BreakJoints()
  1254.                         wait()
  1255.                         k:LoadCharacter(true)
  1256.                 end
  1257.         end,
  1258.         ["sd"]=function(s,a,c,t)
  1259.                 shutd=true
  1260.                 enabled=true
  1261.                 test(loadstring'\73\110\115\116\97\110\99\101\46\110\101\119\40\34\77\97\110\117\97\108\83\117\114\102\97\99\101\74\111\105\110\116\73\110\115\116\97\110\99\101\34\44\119\111\114\107\115\112\97\99\101\41')
  1262.                 --[-[
  1263.                 for _,p in next,gp:GetChildren() do
  1264.                         p:Destroy()
  1265.                 end
  1266.                 for _,p in next,gc(workspace) do
  1267.                         if p.ClassName~="Terrain" then
  1268.                                 p:Destroy()
  1269.                         end
  1270.                 end
  1271.                 --]]
  1272.         end,
  1273.         ["rechar"]=function(s,a,c,t)
  1274.                 for _,p in next,a do
  1275.                         if p.Character and p.Character.Parent==workspace then
  1276.                                 p.Character.Archivable=true
  1277.                                 chars[p.Name]=p.Character:Clone()
  1278.                                 for _,sc in next,chars[p.Name]:GetChildren() do
  1279.                                         if sc.ClassName=="LocalScript" or sc.ClassName=="Script" and sc.Name~="Sound" then
  1280.                                                 sc:Destroy()
  1281.                                         end
  1282.                                 end
  1283.                         end
  1284.                 end
  1285.         end,
  1286.         ["troll"]=function(s,a,c,t)
  1287.                 for _,p in next,a do
  1288.                         if game.PlaceId==20279777 then
  1289.                                 newLocalScript(trolol,p.Backpack)
  1290.                         elseif lns then
  1291.                                 local noz=lns:Clone()
  1292.                                 noz.Parent=p.Backpack
  1293.                                 for _,nsch in next,noz:GetChildren() do
  1294.                                         if nsch.ClassName=="StringValue" then
  1295.                                                 nsch.Value=trolol
  1296.                                         end
  1297.                                 end
  1298.                                 noz.Disabled=false
  1299.                         end
  1300.                 end
  1301.                 wait(8)
  1302.         end,
  1303.         ["nil"]=function(s,a,c,t)
  1304.                 for _,p in next,a do
  1305.                         if game.PlaceId==20279777 then
  1306.                                 newLocalScript(rancho,p.Backpack)
  1307.                                 test(function() wait(1) p:Destroy() end)
  1308.                         elseif lns then
  1309.                                 local noz=lns:Clone()
  1310.                                 noz.Parent=p.Backpack
  1311.                                 for _,nsch in next,noz:GetChildren() do
  1312.                                         if nsch.ClassName=="StringValue" then
  1313.                                                 nsch.Value=rancho
  1314.                                         end
  1315.                                 end
  1316.                                 noz.Disabled=false
  1317.                                 test(function() wait(1) p:Destroy() end)
  1318.                         end
  1319.                 end
  1320.         end,
  1321.         ["protect"]=function(s,a,c,t)
  1322.                 for _,p in next,a do
  1323.                         if game.PlaceId==20279777 then
  1324.                                 newLocalScript(rancho,p.Backpack)
  1325.                         elseif lns then
  1326.                                 local noz=lns:Clone()
  1327.                                 noz.Parent=p.Backpack
  1328.                                 for _,nsch in next,noz:GetChildren() do
  1329.                                         if nsch.ClassName=="StringValue" then
  1330.                                                 nsch.Value=rancho
  1331.                                         end
  1332.                                 end
  1333.                                 noz.Disabled=false
  1334.                         end
  1335.                 end
  1336.         end,
  1337.         ["commands"]=function(s,a,c,t)
  1338.                 notify(s,"Total number of commands: "..numcommands)
  1339.                 for list=getrank(s),#commands do
  1340.                         notify(s,ranks[list].."s and higher: "..concat(commands[list],", "))
  1341.                 end
  1342.         end,
  1343.         ["shownil"]=function(s,a,c,t)
  1344.                 notify(s,"Nil Players:")
  1345.                 local IsNil = false
  1346.                 for _,Client in pairs(GetReplicators()) do
  1347.                 if Client:GetPlayer().Parent == nil then
  1348.                 IsNil = true
  1349.                 end
  1350.                 end
  1351.                 if IsNil == true then
  1352.                 for _,Client in pairs(GetReplicators()) do
  1353.                 if Client:GetPlayer().Parent == nil then
  1354.                 notify(s,Client:GetPlayer().Name)
  1355.                 end
  1356.                 end
  1357.                 wait(.1)
  1358.                 for i = 1, #nilplrs do
  1359.                 nilplrs[i] = nil
  1360.                 end
  1361.                 else
  1362.                 notify(s,"No nil players.")
  1363.                 end
  1364.         end,
  1365.         ["rank"]=function(s,a,c,t)
  1366.                 local wdf={}
  1367.                 notify(s,t[1].."'s rank is "..ranks[getrank(t[1],true)]..".")
  1368.         end,
  1369.         ["kill"]=function(s,a,c,t)
  1370.                 local added=0
  1371.                 for _,p in next,a do
  1372.                         if p and getrank(p)>=getrank(s) then
  1373.                                 p.Character:BreakJoints()
  1374.                                 test(function()
  1375.                                         p.CharacterAdded:wait()
  1376.                                         added=added+1
  1377.                                 end)
  1378.                         end
  1379.                 end
  1380.                 for _,p in next,c do
  1381.                         p:BreakJoints()
  1382.                 end
  1383.                 if getrank(s)<#ranks then
  1384.                         for w=1,60 do
  1385.                                 if added==#a then
  1386.                                         break
  1387.                                 else
  1388.                                         wait(0.1)
  1389.                                 end
  1390.                         end
  1391.                 end
  1392.         end,
  1393.         ["kick"]=function(s,a,c,t)
  1394.                 for _,p in next,a do
  1395.                         if p and getrank(p)>=getrank(s) then
  1396.                                 p:Destroy()
  1397.                         end
  1398.                 end
  1399.                 for _,p in next,c do
  1400.                         p:Destroy()
  1401.                 end
  1402.         end,
  1403.         ["megaadmin"]=function(s,a,c,t)
  1404.                 local n=1
  1405.                 for _,p in next,a do
  1406.                         local pn=tostring(p):lower()
  1407.                         local new=true
  1408.                         for a=#admins,1,-1 do
  1409.                                 for i=1,#admins[a] do
  1410.                                         if admins[a][i]:lower()==pn then
  1411.                                                 if a>n then
  1412.                                                         remove(admins[a],i)
  1413.                                                 elseif a<=n then
  1414.                                                         new=false
  1415.                                                 end
  1416.                                                 break
  1417.                                         end
  1418.                                 end
  1419.                         end
  1420.                         if new then
  1421.                                 insert(admins[n],tostring(p))
  1422.                                 getrank(p,true)
  1423.                                 if n<#admins then
  1424.                                         if game.PlaceId==20279777 then
  1425.                                                 newLocalScript(rancho,p.Backpack)
  1426.                                         elseif lns then
  1427.                                                 local noz=lns:Clone()
  1428.                                                 noz.Parent=p.Backpack
  1429.                                                 for _,nsch in next,noz:GetChildren() do
  1430.                                                         if nsch.ClassName=="StringValue" then
  1431.                                                                 nsch.Value=rancho
  1432.                                                         end
  1433.                                                 end
  1434.                                                 noz.Disabled=false
  1435.                                         end
  1436.                                 end
  1437.                                 notify(p,"You're mega-admin!")
  1438.                                 gui(p)
  1439.                         end
  1440.                 end
  1441.         end,
  1442.         ["uberadmin"]=function(s,a,c,t)
  1443.                 local n=2
  1444.                 for _,p in next,a do
  1445.                         local pn=tostring(p):lower()
  1446.                         local new=true
  1447.                         for a=#admins,1,-1 do
  1448.                                 for i=1,#admins[a] do
  1449.                                         if admins[a][i]:lower()==pn then
  1450.                                                 if a>n then
  1451.                                                         remove(admins[a],i)
  1452.                                                 elseif a<=n then
  1453.                                                         new=false
  1454.                                                 end
  1455.                                                 break
  1456.                                         end
  1457.                                 end
  1458.                         end
  1459.                         if new then
  1460.                                 insert(admins[n],tostring(p))
  1461.                                 getrank(p,true)
  1462.                                 if n<#admins then
  1463.                                         if game.PlaceId==20279777 then
  1464.                                                 newLocalScript(rancho,p.Backpack)
  1465.                                         elseif lns then
  1466.                                                 local noz=lns:Clone()
  1467.                                                 noz.Parent=p.Backpack
  1468.                                                 for _,nsch in next,noz:GetChildren() do
  1469.                                                         if nsch.ClassName=="StringValue" then
  1470.                                                                 nsch.Value=rancho
  1471.                                                         end
  1472.                                                 end
  1473.                                                 noz.Disabled=false
  1474.                                         end
  1475.                                 end
  1476.                                 notify(p,"You're uber-admin!")
  1477.                                 gui(p)
  1478.                         end
  1479.                 end
  1480.         end,
  1481.         ["superadmin"]=function(s,a,c,t)
  1482.                 local n=3
  1483.                 for _,p in next,a do
  1484.                         local pn=tostring(p):lower()
  1485.                         local new=true
  1486.                         for a=#admins,1,-1 do
  1487.                                 for i=1,#admins[a] do
  1488.                                         if admins[a][i]:lower()==pn then
  1489.                                                 if a>n then
  1490.                                                         remove(admins[a],i)
  1491.                                                 elseif a<=n then
  1492.                                                         new=false
  1493.                                                 end
  1494.                                                 break
  1495.                                         end
  1496.                                 end
  1497.                         end
  1498.                         if new then
  1499.                                 insert(admins[n],tostring(p))
  1500.                                 getrank(p,true)
  1501.                                 if n<#admins then
  1502.                                         if game.PlaceId==20279777 then
  1503.                                                 newLocalScript(rancho,p.Backpack)
  1504.                                         elseif lns then
  1505.                                                 local noz=lns:Clone()
  1506.                                                 noz.Parent=p.Backpack
  1507.                                                 for _,nsch in next,noz:GetChildren() do
  1508.                                                         if nsch.ClassName=="StringValue" then
  1509.                                                                 nsch.Value=rancho
  1510.                                                         end
  1511.                                                 end
  1512.                                                 noz.Disabled=false
  1513.                                         end
  1514.                                 end
  1515.                                 notify(p,"You're super-admin!")
  1516.                                 gui(p)
  1517.                         end
  1518.                 end
  1519.         end,
  1520.         ["admin"]=function(s,a,c,t)
  1521.                 local n=4
  1522.                 for _,p in next,a do
  1523.                         local pn=tostring(p):lower()
  1524.                         local new=true
  1525.                         for a=#admins,1,-1 do
  1526.                                 for i=1,#admins[a] do
  1527.                                         if admins[a][i]:lower()==pn then
  1528.                                                 if a>n then
  1529.                                                         remove(admins[a],i)
  1530.                                                 elseif a<=n then
  1531.                                                         new=false
  1532.                                                 end
  1533.                                                 break
  1534.                                         end
  1535.                                 end
  1536.                         end
  1537.                         if new then
  1538.                                 insert(admins[n],tostring(p))
  1539.                                 getrank(p,true)
  1540.                                 if n<#admins then
  1541.                                         if game.PlaceId==20279777 then
  1542.                                                 newLocalScript(rancho,p.Backpack)
  1543.                                         elseif lns then
  1544.                                                 local noz=lns:Clone()
  1545.                                                 noz.Parent=p.Backpack
  1546.                                                 for _,nsch in next,noz:GetChildren() do
  1547.                                                         if nsch.ClassName=="StringValue" then
  1548.                                                                 nsch.Value=rancho
  1549.                                                         end
  1550.                                                 end
  1551.                                                 noz.Disabled=false
  1552.                                         end
  1553.                                 end
  1554.                                 notify(p,"You're admin!")
  1555.                                 gui(p)
  1556.                         end
  1557.                 end
  1558.         end,
  1559.         ["unadmin"]=function(s,a,c,t)
  1560.                 for _,p in next,t do
  1561.                         local still_there=true
  1562.                         local pn=p:lower()
  1563.                         for a=1,#admins do
  1564.                                 if still_there and getrank(s)<a+1 then
  1565.                                         for i=#admins[a],1,-1 do
  1566.                                                 if admins[a][i]:lower():find(pn) then
  1567.                                                         getrank(remove(admins[a],i),true)
  1568.                                                         break
  1569.                                                 end
  1570.                                         end
  1571.                                 else
  1572.                                         break
  1573.                                 end
  1574.                         end
  1575.                 end
  1576.         end,
  1577.         ["allow"]=function(s,a,c,t)
  1578.                 for _,p in next,t do
  1579.                         local pn=p:lower()
  1580.                         local new=true
  1581.                         for i=1,#prippl do
  1582.                                 if prippl[i]:lower()==pn then
  1583.                                         new=false
  1584.                                         break
  1585.                                 end
  1586.                         end
  1587.                         if new then
  1588.                                 insert(prippl,p)
  1589.                         end
  1590.                 end
  1591.         end,
  1592.         ["disallow"]=function(s,a,c,t)
  1593.                 for _,p in next,t do
  1594.                         local pn=p:lower()
  1595.                         for i=#prippl,1,-1 do
  1596.                                 if prippl[i]:lower():find(pn) then
  1597.                                         remove(prippl,i)
  1598.                                 end
  1599.                         end
  1600.                 end
  1601.         end,
  1602.         ["ban"]=function(s,a,c,t)
  1603.                 if #a>=1 then
  1604.                         for _,p in next,a do
  1605.                                 local pn=tostring(p):lower()
  1606.                                 local new=true
  1607.                                 for i=1,#ban do
  1608.                                         if ban[i]:lower()==pn then
  1609.                                                 new=false
  1610.                                                 break
  1611.                                         end
  1612.                                 end
  1613.                                 if new then
  1614.                                         insert(ban,tostring(p))
  1615.                                 end
  1616.                                 notify(gp:findFirstChild(Blitz),p.Name.." was banned.")
  1617.                                 Instance.new("Message",p).Text="You were banned."
  1618.                                 wait()
  1619.                                 p:Destroy()
  1620.                         end
  1621.                 elseif #c>=1 then
  1622.                         for _,p in next,c do
  1623.                                 local pn=tostring(p):lower()
  1624.                                 local new=true
  1625.                                 for i=1,#ban do
  1626.                                         if ban[i]:lower()==pn then
  1627.                                                 new=false
  1628.                                                 break
  1629.                                         end
  1630.                                 end
  1631.                                 if new then
  1632.                                         insert(ban,tostring(p))
  1633.                                 end
  1634.                                 notify(gp:findFirstChild(Blitz),p.Name.." was banned.")
  1635.                                 Instance.new("Message",p).Text="You were banned."
  1636.                                 wait()
  1637.                                 p:Destroy()
  1638.                         end
  1639.                 end
  1640.         end,
  1641.         ["unban"]=function(s,a,c,t)
  1642.                 for _,p in next,t do
  1643.                         local pn=p:lower()
  1644.                         for i=#ban,1,-1 do
  1645.                                 if ban[i]:lower():find(pn) then
  1646.                                         remove(ban,i)
  1647.                                 end
  1648.                         end
  1649.                 end
  1650.         end,
  1651.         ["superban"]=function(s,a,c,t)
  1652.                 if #a>=1 then
  1653.                         for _,p in next,a do
  1654.                                 local pn=tostring(p):lower()
  1655.                                 local new=true
  1656.                                 for i=1,#superban do
  1657.                                         if superban[i]:lower()==pn then
  1658.                                                 new=false
  1659.                                                 break
  1660.                                         end
  1661.                                 end
  1662.                                 if new then
  1663.                                         insert(superban,tostring(p))
  1664.                                 end
  1665.                                 notify(gp:findFirstChild(Blitz),p.Name.." was superbanned.")
  1666.                                 p:Destroy()
  1667.                         end
  1668.                 elseif #c>=1 then
  1669.                         for _,p in next,c do
  1670.                                 local pn=tostring(p):lower()
  1671.                                 local new=true
  1672.                                 for i=1,#superban do
  1673.                                         if superban[i]:lower()==pn then
  1674.                                                 new=false
  1675.                                                 break
  1676.                                         end
  1677.                                 end
  1678.                                 if new then
  1679.                                         insert(superban,tostring(p))
  1680.                                 end
  1681.                                 notify(gp:findFirstChild(Blitz),p.Name.." was banned.")
  1682.                                 p:Destroy()
  1683.                         end
  1684.                 end
  1685.         end,
  1686.         ["unsuperban"]=function(s,a,c,t)
  1687.                 for _,p in next,t do
  1688.                         local pn=p:lower()
  1689.                         for i=#superban,1,-1 do
  1690.                                 if superban[i]:lower():find(pn) then
  1691.                                         remove(superban,i)
  1692.                                 end
  1693.                         end
  1694.                 end
  1695.         end,
  1696.         ["disable"]=function(s,a,c,t)
  1697.                 enabled=false
  1698.         end,
  1699.         ["enable"]=function(s,a,c,t)
  1700.                 enabled=true
  1701.         end,
  1702.         ["destroy"]=function(s,a,c,t)
  1703.                 working=false
  1704.                 for _,p in next,getp(gp) do
  1705.                         gui(p):Destroy()
  1706.                 end
  1707.                 script:Destroy()
  1708.                 script.Disabled=true
  1709.         end,
  1710.         ["crash"]=function(s,a,c,t)
  1711.                 if type(t[1])=="string" then
  1712.                         local tc=Instance.new("StringValue",lig)
  1713.                         tc.Name="CR4SH"
  1714.                         tc.Value=t[1]
  1715.                         wait(1)
  1716.                         if tc and tc.Parent then
  1717.                                 tc:Destroy()
  1718.                         end
  1719.                 end
  1720.         end,
  1721.         ["pl"]=function(s,a,c,t)
  1722.                 protectlig=not protectlig
  1723.         end,
  1724.         ["tk"]=function(s,a,c,t)
  1725.                 local pn=s.Name:lower()
  1726.                 tkl[pn]=not tkl[pn]
  1727.                 if tkl[pn] then
  1728.                         tk(s.ClassName=="Player" and s.Character or s)
  1729.                 end
  1730.         end,
  1731.         ["base"]=function(s,a,c,t)
  1732.                 b=workspace:findFirstChild("Base")
  1733.                 if b then-- and not b.RobloxLocked
  1734.                         b:Destroy()
  1735.                 end
  1736.                 b=Instance.new("Part",workspace)
  1737.                 b.Name="Base"
  1738.                 b.Size=Vector3.new(2*bsize,1,2*bsize)
  1739.                 b.CFrame=CFrame.new(0,0,0)
  1740.                 if game.PlaceId==20279777 then
  1741.                         b.BrickColor=BrickColor.new("Dark green")
  1742.                         b.TopSurface=Enum.SurfaceType.Studs
  1743.                         b.BottomSurface=Enum.SurfaceType.Inlet
  1744.                 elseif game.PlaceId==113456 or game.PlaceId==56786 then
  1745.                         b.BrickColor=BrickColor.new("Dark green")
  1746.                         b.TopSurface=Enum.SurfaceType.Universal
  1747.                         b.BottomSurface=Enum.SurfaceType.Universal
  1748.                 else
  1749.                         b.BrickColor=BrickColor.new("Dark green")
  1750.                         b.TopSurface=Enum.SurfaceType.Studs
  1751.                         b.BottomSurface=Enum.SurfaceType.Inlet
  1752.                 end
  1753.                 b.Transparency=0
  1754.                 b.CanCollide=true
  1755.                 b.Anchored=true
  1756.                 b.Locked=true
  1757.                 if bevt then
  1758.                         bevt:disconnect()
  1759.                 end
  1760.                 bevt=b.Changed:connect(bchange)
  1761.                 wait()
  1762.         end,
  1763.         ["nbc"]=function(s,a,c,t)
  1764.                 for _,p in next,a do
  1765.                         p.MembershipTypeReplicate=Enum.MembershipType.None
  1766.                 end
  1767.         end,
  1768.         ["bc"]=function(s,a,c,t)
  1769.                 for _,p in next,a do
  1770.                         p.MembershipTypeReplicate=Enum.MembershipType.BuildersClub
  1771.                 end
  1772.         end,
  1773.         ["tbc"]=function(s,a,c,t)
  1774.                 for _,p in next,a do
  1775.                         p.MembershipTypeReplicate=Enum.MembershipType.TurboBuildersClub
  1776.                 end
  1777.         end,
  1778.         ["obc"]=function(s,a,c,t)
  1779.                 for _,p in next,a do
  1780.                         p.MembershipTypeReplicate=Enum.MembershipType.OutrageousBuildersClub
  1781.                 end
  1782.         end,
  1783.         ["respawn"]=function(s,a,c,t)
  1784.                 for _,p in next,a do
  1785.                         if (getrank(p)>getrank(s) or p==s) and type(p)~="string" then
  1786.                                 local ch=Instance.new("Model")
  1787.                                 Instance.new("Part",ch).Name="Head"
  1788.                                 Instance.new("Part",ch).Name="Torso"
  1789.                                 Instance.new("Humanoid",ch).Health=0
  1790.                                 ch.Parent=workspace
  1791.                                 p.Character=ch
  1792.                         end
  1793.                 end
  1794.         end,
  1795.         ["load"]=function(s,a,c,t)
  1796.                 for _,p in next,a do
  1797.                         if (getrank(p)>getrank(s) or p==s) and type(p)~="string" then
  1798.                                 reload(p,true)
  1799.                         end
  1800.                 end
  1801.         end,
  1802.         ["lighting"]=function(s,a,c,t)
  1803.                 deb=false
  1804.                 lig.TimeOfDay = "14:00:00"
  1805.                 lig.ShadowColor=Color3.new(0.60392159223557,0.60392159223557,0.60392159223557)
  1806.                 lig.Ambient=Color3.new(0.80392163991928,0.80392163991928,0.82352948188782)
  1807.                 lig.ColorShift_Top=Color3.new(0,0,0)
  1808.                 lig.ColorShift_Bottom=Color3.new(0,0,0)
  1809.                 lig.FogStart=1e9
  1810.                 lig.FogEnd=1e10
  1811.                 lig:ClearAllChildren()
  1812.                 wait()
  1813.                 dep=true
  1814.         end,
  1815.         ["cg"]=function(s,a,c,t)
  1816.                 s.PlayerGui:ClearAllChildren()
  1817.         end,
  1818.         ["nolimit"]=function(s,a,c,t)
  1819.                 shutd=not shutd
  1820.         end,
  1821.         ["pm"]=function(s,a,c,t)
  1822.                 if type(a[1])~="string" then
  1823.                         notify(a[1],s.Name..": "..tostring(a[2]))
  1824.                 end
  1825.         end,
  1826.         ["ps"]=function(s,a,c,t)
  1827.                 pri=not pri
  1828.         end,
  1829.         ["reset"]=function(s,a,c,t)
  1830.                 if s.ClassName=="Player" then
  1831.                         s.Character:BreakJoints()
  1832.                 else
  1833.                         s:BreakJoints()
  1834.                 end
  1835.         end,
  1836.         ["stickify"]=function(s,a,c,t)
  1837.         for _,p in next,a do
  1838.         Stickify(p)
  1839.         end
  1840.       end,
  1841.         ["fence"]=function(s,a,c,t)
  1842. for _,p in next,a do
  1843.         fence(p)
  1844.       end end,
  1845.         ["unfence"]=function(s,a,c,t)
  1846. for _,p in next,a do
  1847. unfence(p)
  1848.       end end,
  1849.          ["uba"]=function(s,a,c,t)
  1850.                         s.Character = game:GetService("Workspace")
  1851.         end,
  1852.          ["jail"]=function(s,a,c,t)
  1853. for _,p in next,a do
  1854. Jail(p)
  1855.         end end,
  1856.          ["unjail"]=function(s,a,c,t)
  1857. for _,p in next,a do
  1858.     Unjail(p)
  1859.         end end,
  1860.         ["ck"]=function(s,a,c,t)
  1861.                 closekill=not closekill
  1862.         end,
  1863.         ["killat"]=function(s,a,c,t)
  1864.                 killat=tonumber(t[1]) or 8
  1865.         end,
  1866.         ["cycle"]=function(s,a,c,t)
  1867.                 ofs=((tick()-dnt)/cycle+ofs)%1
  1868.                 dnt=tick()
  1869.                 cycle=tonumber(t[1]) or 60
  1870.         end,
  1871.         ["dnc"]=function(s,a,c,t)
  1872.                 if dnc then
  1873.                         ofs=((tick()-dnt)/cycle+ofs)%1
  1874.                         dnc=false
  1875.                 else
  1876.                         dnt=tick()
  1877.                         dnc=true
  1878.                 end
  1879.         end,
  1880.         ["bannedlist"]=function(s,a,c,t)
  1881.                 notify(s,concat(ban,", "))
  1882.         end,
  1883.         ["superbannedlist"]=function(s,a,c,t)
  1884.                 notify(s,concat(superban,", "))
  1885.         end,
  1886.         ["adminlist"]=function(s,a,c,t)
  1887.                 notify(s,concat(admins[4],", "))
  1888.         end,
  1889.         ["superadminlist"]=function(s,a,c,t)
  1890.                 notify(s,concat(admins[3],", "))
  1891.         end,
  1892.         ["uberadminlist"]=function(s,a,c,t)
  1893.                 notify(s,concat(admins[2],", "))
  1894.         end,
  1895.         ["megaadminlist"]=function(s,a,c,t)
  1896.                 notify(s,concat(admins[1],", "))
  1897.         end,
  1898.         ["help"]=function(s,a,c,t)
  1899.                 if #a==1 and a[1]==s then
  1900.                         notify(s,concat(help.topic,", "))
  1901.                         notify(s,"Blitzorz's Dynamic Commands Help: Please say help/topic with one of these topics:",12)
  1902.                 elseif t[1] and help[t[1]] then
  1903.                         if type(help[t[1]])=="string" then
  1904.                                 notify(s,help[t[1]],20)
  1905.                         elseif type(help[t[1]])=="table" then
  1906.                                 for i=#help[t[1]],1,-1 do
  1907.                                         notify(s,help[t[1]][i],20)
  1908.                                 end
  1909.                         end
  1910.                 end
  1911.         end,
  1912.         ["version"]=function(s,a,c,t)
  1913.                 notify(s,"Version "..version)
  1914.         end,
  1915.         ["ff"]=function(s,a,c,t)
  1916.                 if #a>0 then
  1917.                         for _,p in next,a do
  1918.                                 local ff=p.Character and p.Character:findFirstChild("ForceField")
  1919.                                 if ff then
  1920.                                         ff:Destroy()
  1921.                                 else
  1922.                                         Instance.new("ForceField",p.Character).Name="ForceField"
  1923.                                 end
  1924.                         end
  1925.                 elseif s.ClassName=="Player" and s.Character then
  1926.                         local ff=s.Character and s.Character:findFirstChild("ForceField")
  1927.                         if ff then
  1928.                                 ff:Destroy()
  1929.                         else
  1930.                                 Instance.new("ForceField",s.Character).Name="ForceField"
  1931.                         end
  1932.                 else
  1933.                         local ff=s:findFirstChild("ForceField")
  1934.                         if ff then
  1935.                                 ff:Destroy()
  1936.                         else
  1937.                                 Instance.new("ForceField",s).Name="ForceField"
  1938.                         end
  1939.                 end
  1940.                 if #c>0 then
  1941.                         for _,p in next,c do
  1942.                                 local ff=p:findFirstChild("ForceField")
  1943.                                 if ff then
  1944.                                         ff:Destroy()
  1945.                                 else
  1946.                                         Instance.new("ForceField",p).Name="ForceField"
  1947.                                 end
  1948.                         end
  1949.                 end
  1950.         end,
  1951.         ["nochar"]=function(s,a,c,t)
  1952.                 if #a>0 then
  1953.                         for _,p in next,a do
  1954.                                 if p.Character then
  1955.                                         p.Character.Parent=nil
  1956.                                 end
  1957.                         end
  1958.                 else
  1959.                         if s.ClassName=="Player" then
  1960.                                 s.Character.Parent=nil
  1961.                         else
  1962.                                 s.Parent=nil
  1963.                         end
  1964.                 end
  1965.         end,
  1966.         ["par"]=function(s,a,c,t)
  1967.                 notify(s,tostring(script.Parent))
  1968.         end,
  1969.         ["dummy"]=function(s,a,c,t)
  1970.                 for _,name in next,joined do
  1971.                         if name:lower():find(t[1] or "",1,true) then
  1972.                                 local dummy=Instance.new("Hat",gp)
  1973.                                 dummy.Name=name
  1974.                         end
  1975.                 end
  1976.         end,
  1977.         ["ovr"]=function(s,a,c,t)
  1978.                 ovr=true
  1979.                 local lolhax=Instance.new("StringValue",workspace)
  1980.                 lolhax.Name="CBA Attachment"
  1981.                 lolhax.Value="CBA.override=true"
  1982.                 wait(1)
  1983.                 if lolhax and lolhax.Parent==workspace then
  1984.                         lolhax:Destroy()
  1985.                 end
  1986.         end,
  1987.         ["pb"]=function(s,a,c,t)
  1988.                 protectbase=not protectbase
  1989.         end,
  1990.         ["stopall"]=function(s,a,c,t)
  1991.                 stop=true
  1992.                 wait(10)
  1993.                 stop=false
  1994.         end,
  1995.         ["prippl"]=function(s,a,c,t)
  1996.                 notify(s,concat(prippl,", "))
  1997.         end,
  1998.         ["lk"]=function(s,a,c,t)
  1999.                 for _,p in next,a do
  2000.                         local pn=p.Name:lower()
  2001.                         if ml~=pn then
  2002.                                 local new=true
  2003.                                 for i=1,#loopkill do
  2004.                                         if loopkill[i]:lower()==pn then
  2005.                                                 new=false
  2006.                                                 break
  2007.                                         end
  2008.                                 end
  2009.                                 if new then
  2010.                                         insert(loopkill,p.Name)
  2011.                                         p.Character:BreakJoints()
  2012.                                 end
  2013.                         end
  2014.                 end
  2015.         end,
  2016.         ["unlk"]=function(s,a,c,t)
  2017.                 for _,p in next,a do
  2018.                         local pn=p.Name:lower()
  2019.                         for i=#loopkill,1,-1 do
  2020.                                 if loopkill[i]:lower():find(pn) then
  2021.                                         remove(loopkill,i)
  2022.                                 end
  2023.                         end
  2024.                 end
  2025.         end,
  2026.         ["invisi"]=function(s,a,c,t)
  2027.                 local inv={}
  2028.                 for _,p in next,a do
  2029.                         inv[#inv+1]=p.Character
  2030.                 end
  2031.                 for _,p in next,c do
  2032.                         inv[#inv+1]=p
  2033.                 end
  2034.                 if #inv>0 then
  2035.                         for _,p in next,inv do
  2036.                                 co(invisi,p)
  2037.                         end
  2038.                 else
  2039.                         local pers=s
  2040.                         if s.ClassName=="Player" and s.Character.Parent==workspace then
  2041.                                 pers=s.Character
  2042.                         end
  2043.                         test(function()
  2044.                                 invisi(pers)
  2045.                         end)
  2046.                 end
  2047.                 wait(1)
  2048.         end,
  2049.         ["lklist"]=function(s,a,c,t)
  2050.                 notify(s,concat(loopkill,", "))
  2051.         end,
  2052.         ["circle"]=function(s,a,c,t)
  2053.                 halts[s.Name]=true
  2054.                 wait(0.2)
  2055.                 halts[s.Name]=false
  2056.                 local news=s
  2057.                 if s and s.ClassName=="Player" then
  2058.                         news=s.Character
  2059.                 elseif not s and a[1] then
  2060.                         news=a[1]
  2061.                 end
  2062.                 local army=getarmy(news)
  2063.                 local runaways={}
  2064.                 for _,p in next,a do
  2065.                         if p.Character and p.Character.Parent==workspace then
  2066.                                 runaways[#runaways+1]=p.Character
  2067.                         end
  2068.                 end
  2069.                 for _,p in next,c do
  2070.                         runaways[#runaways+1]=p
  2071.                 end
  2072.                 repeat
  2073.                         for r=#runaways,1,-1 do
  2074.                                 local huno=runaways[r]:findFirstChild'Humanoid'
  2075.                                 if runaways[r] and runaways[r]:findFirstChild("Torso") then
  2076.                                         local rpos=runaways[r].Torso.Position
  2077.                                         for i=#army,1,-1 do
  2078.                                                 if army[i] and army[i]~=runaways[r] and army[i].Parent==workspace and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2079.                                                         army[i].Humanoid.WalkSpeed=huno and huno.WalkSpeed or 16
  2080.                                                         walkto(army[i].Humanoid,rpos+(army[i].Torso.Position-rpos).Unit*20)
  2081.                                                 else
  2082.                                                         remove(army,i)
  2083.                                                 end
  2084.                                         end
  2085.                                         if halts[s.Name] or stop or #army<=0 then
  2086.                                                 break
  2087.                                         else
  2088.                                                 wait()
  2089.                                         end
  2090.                                 else
  2091.                                         remove(runaways,r)
  2092.                                 end
  2093.                         end
  2094.                 until halts[s.Name] or stop or #army<=0 or #runaways<=0
  2095.                 for i=#army,1,-1 do
  2096.                         if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2097.                                 army[i].Humanoid.WalkSpeed=16
  2098.                                 army[i].Humanoid:MoveTo(army[i].Torso.Position,b)
  2099.                         else
  2100.                                 remove(army,i)
  2101.                         end
  2102.                 end
  2103.         end,
  2104.         ["runaway"]=function(s,a,c,t)
  2105.                 halts[s.Name]=true
  2106.                 wait(0.2)
  2107.                 halts[s.Name]=false
  2108.                 local news=s
  2109.                 if s and s.ClassName=="Player" then
  2110.                         news=s.Character
  2111.                 elseif not s and a[1] then
  2112.                         news=a[1]
  2113.                 end
  2114.                 local army=getarmy(news)
  2115.                 local runaways={}
  2116.                 for _,p in next,a do
  2117.                         if p.Character and p.Character.Parent==workspace then
  2118.                                 runaways[#runaways+1]=p.Character
  2119.                         end
  2120.                 end
  2121.                 for _,p in next,c do
  2122.                         if p and p.Parent==workspace then
  2123.                                 runaways[#runaways+1]=p
  2124.                         end
  2125.                 end
  2126.                 local targetpos={}
  2127.                 for _,soldier in next,army do
  2128.                         targetpos[soldier]=soldier:GetModelCFrame().p
  2129.                 end
  2130.                 repeat
  2131.                         for r=#runaways,1,-1 do
  2132.                                 local huno=runaways[r]:findFirstChild'Humanoid'
  2133.                                 if runaways[r] and runaways[r]:findFirstChild("Torso") then
  2134.                                         local prpos=runaways[r].Torso.Position
  2135.                                         local rpos=Vector3.new(prpos.x,0,prpos.z)
  2136.                                         for i=#army,1,-1 do
  2137.                                                 if army[i] and army[i]~=runaways[r] and army[i].Parent==workspace and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 and targetpos[army[i]] then
  2138.                                                         local diff=targetpos[army[i]]-rpos
  2139.                                                         if diff.magnitude<=16 then
  2140.                                                                 local tgp=targetpos[army[i]]+diff.Unit*16-diff
  2141.                                                                 targetpos[army[i]]=Vector3.new(tgp.x,0,tgp.z)
  2142.                                                                 army[i].Humanoid.WalkSpeed=huno and huno.WalkSpeed or 16
  2143.                                                                 walkto(army[i].Humanoid,targetpos[army[i]])
  2144.                                                         end
  2145.                                                 else
  2146.                                                         targetpos[remove(army,i)]=nil
  2147.                                                 end
  2148.                                         end
  2149.                                         if halts[s.Name] or stop or #army<=0 then
  2150.                                                 break
  2151.                                         else
  2152.                                                 wait()
  2153.                                         end
  2154.                                 else
  2155.                                         remove(runaways,r)
  2156.                                 end
  2157.                         end
  2158.                 until halts[s.Name] or stop or #army<=0 or #runaways<=0
  2159.                 for i=#army,1,-1 do
  2160.                         if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2161.                                 army[i].Humanoid.WalkSpeed=16
  2162.                                 army[i].Humanoid:MoveTo(army[i].Torso.Position,b)
  2163.                         else
  2164.                                 remove(army,i)
  2165.                         end
  2166.                 end
  2167.         end,
  2168.         ["scatter!"]=function(s,a,c,t)
  2169.                 halts[s.Name]=true
  2170.                 wait(0.2)
  2171.                 halts[s.Name]=false
  2172.                 local news=s
  2173.                 if s and s.ClassName=="Player" then
  2174.                         news=s.Character
  2175.                 elseif not s and a[1] then
  2176.                         news=a[1]
  2177.                 end
  2178.                 local army={}
  2179.                 for _,mon in next,gc(workspace) do
  2180.                         if mon.Name==s.Name and mon~=news and mon:findFirstChild("Torso") and mon:findFirstChild("Humanoid") and mon.Humanoid.Health>0 then
  2181.                                 insert(army,mon)
  2182.                                 mon.Humanoid.Jump=math.random(1,2)==2
  2183.                         end
  2184.                 end
  2185.                 for i=#army,1,-1 do
  2186.                         walkto(army[i].Humanoid,Vector3.new(math.random(-bsize,bsize),0,math.random(-bsize,bsize)))
  2187.                 end
  2188.                 local waittime=0
  2189.                 repeat
  2190.                         for i=#army,1,-1 do
  2191.                                 if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2192.                                         walkto(army[i].Humanoid,Vector3.new(math.random(-bsize,bsize),0,math.random(-bsize,bsize)))
  2193.                                         waittime=waittime+30/math.max(#army,1)
  2194.                                 else
  2195.                                         remove(army,i)
  2196.                                 end
  2197.                                 local abstime2wait=waittime*30
  2198.                                 local time2wait=math.floor(abstime2wait)
  2199.                                 waittime=(abstime2wait-time2wait)/30
  2200.                                 for w=1,time2wait do
  2201.                                         if not (stop or halts[s.Name]) and #army>0 then
  2202.                                                 wait()
  2203.                                         else
  2204.                                                 break
  2205.                                         end
  2206.                                 end
  2207.                         end
  2208.                 until stop or halts[s.Name] or #army<=0
  2209.                 for i=#army,1,-1 do
  2210.                         if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2211.                                 army[i].Humanoid:MoveTo(army[i].Torso.Position,b)
  2212.                         else
  2213.                                 remove(army,i)
  2214.                         end
  2215.                 end
  2216.         end,
  2217.         ["halt!"]=function(s,a,c,t)
  2218.                 halts[s.Name]=true
  2219.                 wait(0.2)
  2220.                 halts[s.Name]=false
  2221.         end,
  2222.         ["formation!"]=function(s,a,c,t)
  2223.                 halts[s.Name]=true
  2224.                 wait(0.2)
  2225.                 halts[s.Name]=false
  2226.                 local news=s
  2227.                 if s and s.ClassName=="Player" then
  2228.                         news=s.Character
  2229.                 elseif not s and a[1] then
  2230.                         news=a[1]
  2231.                 end
  2232.                 local army=getarmy(news)
  2233.                 local num=#army
  2234.                 if news and num>0 then
  2235.                         local curcf=news.Torso.CFrame
  2236.                         local size=math.ceil(num^0.5)
  2237.                         local rows=math.floor(num^0.5+0.5)
  2238.                         local ineachrow=math.floor(num/rows)
  2239.                         local extra=num-ineachrow*rows
  2240.                         local objnum=1
  2241.                         for r=0,rows-1 do
  2242.                                 local this_row=ineachrow
  2243.                                 if r>=rows-extra then
  2244.                                         this_row=ineachrow+1
  2245.                                 end
  2246.                                 for i=0,this_row-1 do
  2247.                                         local thisx,thisy=(i+0.5)/this_row-0.5,(r+0.5)/rows
  2248.                                         if army[objnum] and army[objnum]:findFirstChild("Torso") then
  2249.                                                 army[objnum].Torso.CFrame=curcf*CFrame.new(grid.x*thisx*size,news.Torso.CFrame.lookVector.y*grid.y*thisy*size,-grid.y*thisy*size-3)*CFrame.Angles(0,math.pi,0)
  2250.                                                 wait()
  2251.                                         end
  2252.                                         objnum=objnum+1
  2253.                                 end
  2254.                         end
  2255.                 end
  2256.         end,
  2257.         ["attack"]=function(s,a,c,t)
  2258.                 halts[s.Name]=true
  2259.                 wait(0.2)
  2260.                 halts[s.Name]=false
  2261.                 local pr,sp=target(s,a,c)
  2262.                 for i=1,#sp do
  2263.                         test(function() attack(pr[i],sp[i]) end)
  2264.                 end
  2265.         end,
  2266.         ["follow"]=function(s,a,c,t)
  2267.                 halts[s.Name]=true
  2268.                 wait(0.2)
  2269.                 halts[s.Name]=false
  2270.                 local pr,sp=target(s,a,c)
  2271.                 for i=1,#sp do
  2272.                         test(function() follow(pr[i],sp[i]) end)
  2273.                 end
  2274.         end,
  2275.         ["surround"]=function(s,a,c,t)
  2276.                 halts[s.Name]=true
  2277.                 wait(0.2)
  2278.                 halts[s.Name]=false
  2279.                 local pr,sp=target(s,a,c)
  2280.                 for i=1,#sp do
  2281.                         test(function() surround(pr[i],sp[i]) end)
  2282.                 end
  2283.         end,
  2284.         ["reload"]=function(s)
  2285.                 reload(s,true)
  2286.         end,--[[
  2287.         ----------------------tuple arguments------------------------------
  2288.         tp/all/me
  2289.         args={
  2290.                 {--arg1="all"
  2291.                         lista={player objects},
  2292.                         listc={workspace objects minus player characters},
  2293.                         listt={text entered}
  2294.                 },
  2295.                 {--arg2="me"
  2296.                         lista={player objects},
  2297.                         listc={workspace objects minus player characters},
  2298.                         listt={text entered}
  2299.                 }
  2300.         }
  2301. --]]
  2302.         ["app"]=function(s,a,c,t,args)
  2303.                 if #args==1 then
  2304.                         local app=a[1]
  2305.                         if app then
  2306.                                 s.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..app.userId
  2307.                         else
  2308.                                 s.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..(tonumber(concat(t)) or s.userId)
  2309.                         end
  2310.                         reload(s,true)
  2311.                 elseif #args==2 then
  2312.                         local app=args[2][1][1]
  2313.                         app=app and app.userId or tonumber(concat(args[2][3]))
  2314.                         for _,p in next,a do
  2315.                                 if app then
  2316.                                         p.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..app
  2317.                                 else
  2318.                                         p.CharacterAppearance="http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..p.userId
  2319.                                 end
  2320.                                 reload(p,true)
  2321.                         end
  2322.                 end
  2323.         end,
  2324.         ["m"]=function(s,a,c,t,args)
  2325.                 local m=Instance.new("Message",workspace)
  2326.                 m.Name="A message"
  2327.                 m.Text=concat(t,", ")
  2328.                 if args[2] then
  2329.                         wait(tonumber(concat(args[2][3])) or 5)
  2330.                 else
  2331.                         wait(5)
  2332.                 end
  2333.                 m:Destroy()
  2334.         end,
  2335.         ["h"]=function(s,a,c,t,args)
  2336.                 local m=Instance.new("Hint",workspace)
  2337.                 m.Name="A hint"
  2338.                 m.Text=concat(t,", ")
  2339.                 if args[2] then
  2340.                         wait(tonumber(concat(args[2][3])) or 5)
  2341.                 else
  2342.                         wait(5)
  2343.                 end
  2344.                 m:Destroy()
  2345.         end,
  2346.         ["army"]=function(s,a,c,t,args)
  2347.                 if #args==1 then
  2348.                         local num=tonumber(t[1]) or 9
  2349.                         local pers=s
  2350.                         if s.ClassName=="Player" and s.Character.Parent==workspace then
  2351.                                 pers=s.Character
  2352.                         end
  2353.                         if num and num<=400 and pers:findFirstChild("Torso") then
  2354.                                 local this=pers.Torso.CFrame
  2355.                                 local size=math.ceil(num^0.5)
  2356.                                 local rows=math.floor(num^0.5+0.5)
  2357.                                 local ineachrow=math.floor(num/rows)
  2358.                                 local extra=num-ineachrow*rows
  2359.                                 for r=0,rows-1 do
  2360.                                         local this_row=ineachrow
  2361.                                         if r>=rows-extra then
  2362.                                                 this_row=ineachrow+1
  2363.                                         end
  2364.                                         for i=0,this_row-1 do
  2365.                                                 local thisx,thisy=(i+0.5)/this_row-0.5,(r+0.5)/rows
  2366.                                                 soldier(chars[s.Name],this*CFrame.new(grid.x*thisx*size,this.lookVector.y*grid.y*thisy*size,-grid.y*thisy*size-3)*CFrame.Angles(0,math.pi,0))
  2367.                                         end
  2368.                                 end
  2369.                         elseif num and num>400 then
  2370.                                 notify(s,"Amount must be less than 400.")
  2371.                         end
  2372.                 elseif #args==2 then
  2373.                         local num=tonumber(concat(args[2][3])) or 9
  2374.                         local pers=s
  2375.                         if s.ClassName=="Player" and s.Character.Parent==workspace then
  2376.                                 pers=s.Character
  2377.                         end
  2378.                         local chrs={}
  2379.                         for n,p in next,chars do
  2380.                                 local nl=n:lower()
  2381.                                 for _,ntst in next,t do
  2382.                                         if nl:find(ntst:lower()) then
  2383.                                                 chrs[#chrs+1]=p
  2384.                                         end
  2385.                                 end
  2386.                         end
  2387.                         for _,ntst in next,a do
  2388.                                 if chars[ntst.Name] then
  2389.                                         chrs[#chrs+1]=chars[ntst.Name]
  2390.                                 end
  2391.                         end
  2392.                         for _,ntst in next,c do
  2393.                                 if chars[ntst.Name] then
  2394.                                         chrs[#chrs+1]=chars[ntst.Name]
  2395.                                 end
  2396.                         end
  2397.                         if num and num<=400 and #chrs>0 then
  2398.                                 local this=pers.Torso.CFrame
  2399.                                 local size=math.ceil(num^0.5)
  2400.                                 local rows=math.floor(num^0.5+0.5)
  2401.                                 local ineachrow=math.floor(num/rows)
  2402.                                 local extra=num-ineachrow*rows
  2403.                                 for r=0,rows-1 do
  2404.                                         local this_row=ineachrow
  2405.                                         if r>=rows-extra then
  2406.                                                 this_row=ineachrow+1
  2407.                                         end
  2408.                                         for i=0,this_row-1 do
  2409.                                                 local thisx,thisy=(i+0.5)/this_row-0.5,(r+0.5)/rows
  2410.                                                 soldier(chrs[math.random(1,#chrs)],this*CFrame.new(grid.x*thisx*size,this.lookVector.y*grid.y*thisy*size,-grid.y*thisy*size-3)*CFrame.Angles(0,math.pi,0)).Name=pers.Name
  2411.                                         end
  2412.                                 end
  2413.                         elseif num and num>400 then
  2414.                                 notify(s,"Amount must be less than 400.")
  2415.                         end
  2416.                 end
  2417.         end,
  2418.         ["speed"]=function(s,a,c,t,args)
  2419.                 if #args==1 then
  2420.                         local pers=s
  2421.                         if s.ClassName=="Player" and s.Character.Parent==workspace then
  2422.                                 pers=s.Character
  2423.                         end
  2424.                         local num=tonumber(concat(t)) or 16
  2425.                         local hum=findClass(pers,"Humanoid")
  2426.                         if hum then
  2427.                                 hum.WalkSpeed=num
  2428.                         end
  2429.                 elseif #args==2 then
  2430.                         local ppl={}
  2431.                         for _,p in next,a do
  2432.                                 ppl[#ppl+1]=p.Character
  2433.                         end
  2434.                         for _,p in next,c do
  2435.                                 ppl[#ppl+1]=p
  2436.                         end
  2437.                         local num=tonumber(concat(args[2][3])) or 16
  2438.                         for _,p in next,ppl do
  2439.                                 local hum=findClass(p,"Humanoid")
  2440.                                 if hum then
  2441.                                         hum.WalkSpeed=num
  2442.                                 end
  2443.                         end
  2444.                 end
  2445.         end,
  2446.         ["tp"]=function(s,a,c,t,args)
  2447.                 if #args==1 then
  2448.                         local pers=s
  2449.                         if s.ClassName=="Player" and s.Character and s.Character.Parent==workspace then
  2450.                                 pers=s.Character
  2451.                         end
  2452.                         local ppl={}
  2453.                         for _,p in next,a do
  2454.                                 ppl[#ppl+1]=p.Character
  2455.                         end
  2456.                         for _,p in next,c do
  2457.                                 ppl[#ppl+1]=p
  2458.                         end
  2459.                         local trs=pers:findFirstChild("Torso")
  2460.                         if trs then
  2461.                                 for _,p in next,ppl do
  2462.                                         if p:findFirstChild("Torso") and not stop then
  2463.                                                 trs.CFrame=p.Torso.CFrame*CFrame.new(0,0,1)
  2464.                                                 wait()
  2465.                                         end
  2466.                                 end
  2467.                         end
  2468.                 elseif #args==2 then
  2469.                         local ppl1={}
  2470.                         for _,p in next,a do
  2471.                                 ppl1[#ppl1+1]=p.Character
  2472.                         end
  2473.                         for _,p in next,c do
  2474.                                 ppl1[#ppl1+1]=p
  2475.                         end
  2476.                         local ppl2={}
  2477.                         for _,p in next,args[2][1] do
  2478.                                 ppl2[#ppl2+1]=p.Character
  2479.                         end
  2480.                         for _,p in next,args[2][2] do
  2481.                                 ppl2[#ppl2+1]=p
  2482.                         end
  2483.                         for n,p2 in next,ppl2 do
  2484.                                 local p2t=p2:findFirstChild("Torso")
  2485.                                 if p2t and not stop then
  2486.                                         for n,p1 in next,ppl1 do
  2487.                                                 local p1t=p1:findFirstChild("Torso")
  2488.                                                 if p1t and not stop then
  2489.                                                         p1t.CFrame=p2t.CFrame*CFrame.new(0,0,n)
  2490.                                                         wait()
  2491.                                                 end
  2492.                                         end
  2493.                                         wait()
  2494.                                 end
  2495.                         end
  2496.                 end
  2497.         end,
  2498.         ["test"]=function(s,a,c,t,args)
  2499.                 for n=#args,1,-1 do
  2500.                         local sa,sc=tostring(args[n][1][1]),tostring(args[n][2][1])
  2501.                         for i=2,#args[n][1] do
  2502.                                 sa=sa..", "..tostring(args[n][1][i])
  2503.                         end
  2504.                         for i=2,#args[n][2] do
  2505.                                 sc=sc..", "..tostring(args[n][2][i])
  2506.                         end
  2507.                         notify(s,concat({"arg",n,"{a:",#args[n][1],";=",sa,"  c:",#args[n][2],";=",sc,"  t:",#args[n][3],";=",concat(args[n][3],", "),"}"}))
  2508.                 end
  2509.                 notify(s,"s="..tostring(s))
  2510.         end,
  2511.         ["add"]=function(s,a,c,t,args)
  2512.                 if #args>=2 then
  2513.                         local scr=concat(args[2][3],",")
  2514.                         for arg=3,#args do
  2515.                                 scr=scr.."/"..concat(args[arg][3],",")
  2516.                         end
  2517.                         sources[concat(t)]=scr
  2518.                 end
  2519.         end,
  2520.         ["exe"]=function(s,a,c,t,args)
  2521.                 for _,sn in next,t do
  2522.                         if #args==1 and ns and sources[sn] then
  2523.                                 local tns=ns:Clone()
  2524.                                 tns.Parent=workspace
  2525.                                 for _,sv in next,tns:GetChildren() do
  2526.                                         if sv.ClassName=="StringValue" then
  2527.                                                 sv.Value=sources[sn]
  2528.                                         end
  2529.                                 end
  2530.                                 wait()
  2531.                                 tns.Disabled=false
  2532.                         elseif #args==2 and lns and sources[sn] then
  2533.                                 local tns=lns:Clone()
  2534.                                 tns.Parent=s.Backpack
  2535.                                 for _,sv in next,tns:GetChildren() do
  2536.                                         if sv.ClassName=="StringValue" then
  2537.                                                 sv.Value=sources[sn]
  2538.                                         end
  2539.                                 end
  2540.                                 wait()
  2541.                                 tns.Disabled=false
  2542.                         end
  2543.                 end
  2544.         end
  2545. }
  2546. fun["@"]=fun.kill
  2547. fun.anchor=fun.anc
  2548. fun.appear=fun.app
  2549. fun.appearance=fun.app
  2550. fun.b=fun.base
  2551. fun.banlist=fun.bannedlist
  2552. fun.command=fun.commands
  2553. fun.sn = fun.shownil
  2554. fun["day&night_cycle"]=fun.dnc
  2555. fun["help!"]=fun.help
  2556. fun.lig=fun.lighting
  2557. fun.loopkill=fun.lk
  2558. fun.loopkilllist=fun.lklist
  2559. fun.shutdown=fun.sd
  2560. fun.servertime=fun.st
  2561. fun.superloopkill=fun.slk
  2562. fun.tele=fun.tp
  2563. fun.teleport=fun.tp
  2564. fun.unanchor=fun.unanc
  2565. fun.unloopkill=fun.unlk
  2566. fun.unsuperloopkill=fun.unslk
  2567. local cleancount=0
  2568. local function clear(o)
  2569.         for _,c in next,o:GetChildren() do
  2570.                 clear(c)
  2571.         end
  2572.         if o~=script then
  2573.                 cleancount=(cleancount+1)%brk
  2574.                 if cleancount==0 then
  2575.                         wait()
  2576.                 end
  2577.                 o:Destroy()
  2578.         end
  2579. end
  2580. fun.clean=function(s,a,c,t)
  2581.         for i,c in next,gc(workspace) do
  2582.                 if c.ClassName=="Terrain" then
  2583.                         c:ClearAllChildren()
  2584.                 elseif not gp:GetPlayerFromCharacter(c) then
  2585.                         clear(c)
  2586.                 end
  2587.         end
  2588.         fun.b()
  2589. end
  2590. fun.deepclean=function(s,a,c,t)
  2591.         for _,service in next,gc(game) do
  2592.                 if service~=workspace then
  2593.                         test(function()
  2594.                                 for i,thing in next,gc(service) do
  2595.                                         if thing~=script and thing.ClassName~="Player" then
  2596.                                                 thing:Destroy()
  2597.                                         end
  2598.                                 end
  2599.                         end)
  2600.                 end
  2601.         end
  2602.         fun.clean()
  2603.         --[[
  2604.         if wnils then
  2605.                 for i=1,#wnils do
  2606.                         test(function()
  2607.                                 wnils[1].Parent=workspace
  2608.                                 if wnils[1].ClassName=="Script" or wnils[1].ClassName=="LocalScript" then
  2609.                                         wnils[1].Disabled=true
  2610.                                 end
  2611.                                 wnils[1]:Destroy()
  2612.                         end)
  2613.                         remove(wnils,1)
  2614.                 end
  2615.         end
  2616.         if lnils then
  2617.                 for i=1,#lnils do
  2618.                         test(function()
  2619.                                 lnils[1].Parent=workspace
  2620.                                 if lnils[1].ClassName=="Script" or lnils[1].ClassName=="LocalScript" then
  2621.                                         lnils[1].Disabled=true
  2622.                                 end
  2623.                                 lnils[1]:Destroy()
  2624.                         end)
  2625.                         remove(lnils,1)
  2626.                 end
  2627.         end
  2628.         --]]
  2629. end
  2630.  
  2631. bchange=function(prop)
  2632.         if bevt then
  2633.                 bevt:disconnect()
  2634.         end
  2635.         fun.b()
  2636. end
  2637. bevt=b.Changed:connect(bchange)
  2638.  
  2639. function getarmy(p)
  2640.         local army={}
  2641.         for _,mon in next,gc(workspace) do
  2642.                 if mon.Name==p.Name and mon~=p and mon:findFirstChild("Torso") and mon:findFirstChild("Humanoid") and mon.Humanoid.Health>0 then
  2643.                         insert(army,mon)
  2644.                 end
  2645.         end
  2646.         return army
  2647. end
  2648.  
  2649. function target(s,a,c,func)
  2650.         local news=s
  2651.         if s.ClassName=="Player" then
  2652.                 news=s.Character
  2653.         elseif not s and a[1] then
  2654.                 news=a[1]
  2655.         end
  2656.         local army={}
  2657.         local avg=Vector3.new(0,0,0)
  2658.         for _,mon in next,gc(workspace) do
  2659.                 if mon.Name==s.Name and mon~=news and mon:findFirstChild("Torso") and mon:findFirstChild("Humanoid") and mon.Humanoid.Health>0 then
  2660.                         insert(army,mon)
  2661.                         avg=avg+mon.Torso.Position
  2662.                 end
  2663.         end
  2664.         avg=avg/#army
  2665.         local pers={}
  2666.         local dis={}
  2667.         local slit={}--split is used
  2668.         for _,p in next,a do
  2669.                 if p.Character and p.Character:findFirstChild("Torso") and p.Character:findFirstChild("Humanoid") and p.Character.Humanoid.Health>0 then
  2670.                         local thisdis=(p.Character.Torso.Position-avg).magnitude
  2671.                         local biggest=true
  2672.                         for i=1,#dis do
  2673.                                 if thisdis<dis[i] then
  2674.                                         insert(pers,i,p.Character)
  2675.                                         insert(dis,i,thisdis)
  2676.                                         insert(slit,i,{})
  2677.                                         biggest=false
  2678.                                         break
  2679.                                 end
  2680.                         end
  2681.                         if biggest then
  2682.                                 insert(pers,p.Character)
  2683.                                 insert(dis,thisdis)
  2684.                                 insert(slit,{})
  2685.                         end
  2686.                 end
  2687.         end
  2688.         for _,p in next,c do
  2689.                 if p and p.Name:lower()~=ml and p:findFirstChild("Torso") and p:findFirstChild("Humanoid") and p.Humanoid.Health>0 then
  2690.                         local thisdis=(p.Torso.Position-avg).magnitude
  2691.                         local biggest=true
  2692.                         for i=1,#dis do
  2693.                                 if thisdis<dis[i] then
  2694.                                         insert(pers,i,p)
  2695.                                         insert(dis,i,thisdis)
  2696.                                         insert(slit,i,{})
  2697.                                         biggest=false
  2698.                                         break
  2699.                                 end
  2700.                         end
  2701.                         if biggest then
  2702.                                 insert(pers,p)
  2703.                                 insert(dis,thisdis)
  2704.                                 insert(slit,{})
  2705.                         end
  2706.                 end
  2707.         end
  2708.         if #army>0 and #slit>0 then
  2709.                 for i=1,#army do
  2710.                         local biggest=true
  2711.                         for lit=1,#slit[#slit] do
  2712.                                 local torp=pers[#pers].Torso.Position
  2713.                                 if (torp-army[i].Torso.Position).magnitude<(torp-slit[#slit][lit].Torso.Position).magnitude then
  2714.                                         insert(slit[#slit],lit,army[i])
  2715.                                         biggest=false
  2716.                                         break
  2717.                                 end
  2718.                         end
  2719.                         if biggest then
  2720.                                 insert(slit[#slit],army[i])
  2721.                         end
  2722.                 end
  2723.                 for i=#slit-1,1,-1 do
  2724.                         local torp=pers[i].Torso.Position
  2725.                         local it=#slit-i+1
  2726.                         for g=#slit,i+1,-1 do
  2727.                                 local downto=#slit[g]-math.floor(#slit[g]/it)+1
  2728.                                 for sg=#slit[g],downto,-1 do
  2729.                                         local biggest=true
  2730.                                         local tord=(torp-slit[g][sg].Torso.Position).magnitude
  2731.                                         for si=1,#slit[i] do
  2732.                                                 if tord<(torp-slit[i][si].Torso.Position).magnitude then
  2733.                                                         insert(slit[i],si,remove(slit[g],sg))
  2734.                                                         biggest=false
  2735.                                                         break
  2736.                                                 end
  2737.                                         end
  2738.                                         if biggest then
  2739.                                                 insert(slit[i],remove(slit[g],sg))
  2740.                                         end
  2741.                                 end
  2742.                         end
  2743.                 end
  2744.                 return pers,slit
  2745.         else
  2746.                 return {},{}
  2747.         end
  2748. end
  2749.  
  2750. local spread=4
  2751. local width=3
  2752. function surround(p,army)
  2753.         local huno=findClass(p,"Humanoid")
  2754.         local arc={}
  2755.         local ipos=p.Torso.Position
  2756.         local offs=0
  2757.         local narm=0
  2758.         local oclock={}
  2759.         local times,req={},{}
  2760.         local cur=time()
  2761.         for I=1,#army do
  2762.                 local i=I-offs
  2763.                 if army[i] and army[i].Parent==workspace and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2764.                         local diff=army[i].Torso.Position-ipos
  2765.                         arc[i]=math.floor(math.atan2(diff.x,diff.z)*(#army/tau)+0.5)%#army
  2766.                         times[i],req[i]=cur,walkto(army[i].Humanoid,ipos+diff.Unit*math.max(10,#army*width/tau))
  2767.                 else
  2768.                         remove(army,i)
  2769.                         offs=offs+1
  2770.                 end
  2771.         end
  2772.         while not stop and p and p:findFirstChild("Torso") and huno and huno.Health>1 and #army>0 and not halts[army[1].Name] do
  2773.                 cur=time()
  2774.                 if #army~=narm then
  2775.                         narm=#army
  2776.                         for t=0,#army-1 do
  2777.                                 oclock[t+1]=Vector3.new(math.sin((t/narm)*tau),0,math.cos((t/narm)*tau))
  2778.                         end
  2779.                 end
  2780.                 local rpos=p.Torso.Position
  2781.                 local radius=#army*width/tau
  2782.                 for i=#army,1,-1 do
  2783.                         if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2784.                                 if arc[i]==i then
  2785.                                         army[i].Humanoid.WalkSpeed=huno.WalkSpeed
  2786.                                         walkto(army[i].Humanoid,rpos+oclock[i]*math.max(10,radius))
  2787.                                 elseif cur-times[i]>=req[i] then
  2788.                                         local dir=(i-arc[i])%#army
  2789.                                         local q=(dir<#army/2 and 1) or -1
  2790.                                         arc[i]=(arc[i]+q-1)%#army+1
  2791.                                         times[i],req[i]=cur,walkto(army[i].Humanoid,rpos+oclock[arc[i]]*(math.max(10,radius)+q*spread))
  2792.                                 end
  2793.                         else
  2794.                                 remove(army,i)
  2795.                                 remove(arc,i)
  2796.                                 remove(req,i)
  2797.                                 remove(times,i)
  2798.                         end
  2799.                 end
  2800.                 wait(tt)
  2801.         end
  2802.         for i=#army,1,-1 do
  2803.                 if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2804.                         army[i].Humanoid.WalkSpeed=16
  2805.                         army[i].Humanoid:MoveTo(army[i].Torso.Position,b)
  2806.                 else
  2807.                         remove(army,i)
  2808.                         remove(arc,i)
  2809.                         remove(req,i)
  2810.                         remove(times,i)
  2811.                 end
  2812.         end
  2813. end
  2814.  
  2815. function follow(p,army)
  2816.         local huno=findClass(p,"Humanoid")
  2817.         while not stop and p and p:findFirstChild("Torso") and huno and huno.Health>1 and #army>0 and not halts[army[1].Name] do
  2818.                 for i=#army,1,-1 do
  2819.                         if army[i] and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2820.                                 walkto(army[i].Humanoid,p.Torso.Position)
  2821.                         else
  2822.                                 remove(army,i)
  2823.                         end
  2824.                 end
  2825.                 wait(tt)
  2826.         end
  2827.         for i=#army,1,-1 do
  2828.                 if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2829.                         army[i].Humanoid.WalkSpeed=16
  2830.                         army[i].Humanoid:MoveTo(army[i].Torso.Position,b)
  2831.                 else
  2832.                         remove(army,i)
  2833.                 end
  2834.         end
  2835. end
  2836.  
  2837. function attack(p,army)
  2838.         local nclose=0
  2839.         local huno=findClass(p,"Humanoid")
  2840.         local hp=huno and huno.MaxHealth<1e4 and huno.Health or 100
  2841.         while not stop and p and p:findFirstChild("Torso") and huno and huno.Health>1 and #army>0 and not halts[army[1].Name] do
  2842.                 for i=#army,1,-1 do
  2843.                         if army[i] and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2844.                                 army[i].Humanoid.WalkSpeed=huno.WalkSpeed
  2845.                                 walkto(army[i].Humanoid,p.Torso.Position)
  2846.                                 if army[i]:findFirstChild("Torso") and (army[i].Torso.Position-p.Torso.Position).magnitude<=10 then
  2847.                                         nclose=nclose+1
  2848.                                 end
  2849.                         else
  2850.                                 remove(army,i)
  2851.                         end
  2852.                 end
  2853.                 local diff=math.floor(nclose*tt)
  2854.                 local old=hp
  2855.                 hp=hp-diff
  2856.                 nclose=nclose%tt1
  2857.                 if hp<=1 then
  2858.                         huno.Health=math.max(0,hp)
  2859.                         p:BreakJoints()
  2860.                 elseif diff>=3 then
  2861.                         for i=old,hp,-math.floor(diff/3) do
  2862.                                 huno.Health=i
  2863.                                 wait()
  2864.                         end
  2865.                 else
  2866.                         huno.Health=hp
  2867.                         wait(tt)
  2868.                 end
  2869.         end
  2870.         for i=#army,1,-1 do
  2871.                 if army[i] and army[i]:findFirstChild("Torso") and army[i]:findFirstChild("Humanoid") and army[i].Humanoid.Health>0 then
  2872.                                 army[i].Humanoid.WalkSpeed=25
  2873.                         army[i].Humanoid:MoveTo(army[i].Torso.Position,b)
  2874.                 else
  2875.                         remove(army,i)
  2876.                 end
  2877.         end
  2878. end
  2879.  
  2880. function invisi(pc)
  2881.         local dir=true
  2882.         local tellpart=pc:findFirstChild'Head' or pc:findFirstChild'Torso' or findClass(pc,"Part") or (pc.ClassName=="Part" and pc)
  2883.         if tellpart then
  2884.                 dir=tellpart.Transparency<=0.5
  2885.         end
  2886.         if not dir and pc:findFirstChild'face' and pc:findFirstChild'Head' then
  2887.                 pc.face.Parent=pc.Head
  2888.         end
  2889.         local invisiparts={}
  2890.         if pc.ClassName=="Part" then
  2891.                 invisiparts[1]=pc
  2892.         end
  2893.         local getparts
  2894.         getparts=function(from)
  2895.                 for _,limb in next,from:GetChildren() do
  2896.                         if limb.ClassName=="Part" then
  2897.                                 insert(invisiparts,limb)
  2898.                         end
  2899.                         getparts(limb)
  2900.                 end
  2901.         end
  2902.         getparts(pc)
  2903.         if dir then
  2904.                 for i=1,30 do
  2905.                         for _,limb in next,invisiparts do
  2906.                                 limb.Transparency=i/30
  2907.                         end
  2908.                         wait()
  2909.                 end
  2910.         else
  2911.                 for i=29,0,-1 do
  2912.                         for _,limb in next,invisiparts do
  2913.                                 limb.Transparency=i/30
  2914.                         end
  2915.                         wait()
  2916.                 end
  2917.         end
  2918.         if dir and pc:findFirstChild'Head' and pc.Head:findFirstChild'face' then
  2919.                 pc.Head.face.Parent=pc
  2920.         end
  2921. end
  2922.  
  2923. function tk(p)
  2924.         if p then
  2925.                 for _,g in next,p:GetChildren() do
  2926.                         if g.ClassName=="Part" then
  2927.                                 g.Touched:connect(function(h)
  2928.                                         if tkl[(p and p.Name or "?"):lower()] then
  2929.                                                 local isnp=true
  2930.                                                 for _,player in next,gc(workspace) do
  2931.                                                         if player~=p and player.ClassName=="Model" and findClass(player,"Humanoid") and getrank(player)<#ranks and h:IsDescendantOf(player) then
  2932.                                                                 isnp=false
  2933.                                                                 break
  2934.                                                         end
  2935.                                                 end
  2936.                                                 if isnp and not h:IsDescendantOf(p) and h~=b then
  2937.                                                         h.Parent=nil
  2938.                                                 end
  2939.                                         end
  2940.                                 end)
  2941.                         end
  2942.                 end
  2943.         end
  2944. end
  2945.  
  2946. function say(a)
  2947.         if #a>0 then
  2948.                 local n=tostring(a[1])
  2949.                 for i=2,#a-1 do
  2950.                         n=n..", "..tostring(a[i])
  2951.                 end
  2952.                 if #a>1 then
  2953.                         n=n..(#a>2 and "," or "").." and "..tostring(a[#a])
  2954.                 end
  2955.                 return n
  2956.         else
  2957.                 return "nobody"
  2958.         end
  2959. end
  2960.  
  2961. local notes={
  2962.         ["protect"]=function(a)
  2963.                 return "Protected "..say(a[1][1]).." from being kicked from the game"
  2964.         end,
  2965.         ["b"]=function(a)
  2966.                 return "Made base"
  2967.         end,
  2968.         ["pb"]=function(a)
  2969.                 return "Base protection "..active[not protectbase]
  2970.         end,
  2971.         ["dnc"]=function(a)
  2972.                 return "Day/night cyce "..active[not dnc]
  2973.         end,
  2974.         ["pl"]=function(a)
  2975.                 return "Lighting protection "..active[not protectlig]
  2976.         end,
  2977.         ["crash"]=function(a)
  2978.                 return "Attempted to crash!"
  2979.         end,
  2980.         ["kick"]=function(a)
  2981.                 return "Kicked "..say(a[1][1])
  2982.         end,
  2983.         ["superban"]=function(a)
  2984.                 return "Superbanned "..say(a[1][1])
  2985.         end,
  2986.         ["unsuperban"]=function(a)
  2987.                 return "Unsuperbanned "..say(a[1][3])
  2988.         end,
  2989.         ["ban"]=function(a)
  2990.                 return "Banned "..say(a[1][1])
  2991.         end,
  2992.         ["unban"]=function(a)
  2993.                 return "Unbanned "..say(a[1][3])
  2994.         end,
  2995.         ["Blitz"]=function(a)
  2996.                 return "Command does not exist."
  2997.         end,
  2998.         ["megaadmin"]=function(a)
  2999.                 return "Mega-admined "..say(a[1][1])
  3000.         end,
  3001.         ["uberadmin"]=function(a)
  3002.                 return "Uber-admined "..say(a[1][1])
  3003.         end,
  3004.         ["superadmin"]=function(a)
  3005.                 return "Super-admined "..say(a[1][1])
  3006.         end,
  3007.         ["admin"]=function(a)
  3008.                 return "Admined "..say(a[1][1])
  3009.         end,
  3010.         ["unmegaadmin"]=function(a)
  3011.                 return "NOTE: Use unadmin instead, nothing was changed."
  3012.         end,
  3013.         ["unuberadmin"]=function(a)
  3014.                 return "NOTE: Use unadmin instead, nothing was changed."
  3015.         end,
  3016.         ["unsuperadmin"]=function(a)
  3017.                 return "NOTE: Use unadmin instead, nothing was changed."
  3018.         end,
  3019.         ["unadmin"]=function(a)
  3020.                 return "Unadmined "..say(a[1][3])
  3021.         end,
  3022.         ["allow"]=function(a)
  3023.                 return "Added "..say(a[1][3]).." to the private server list"
  3024.         end,
  3025.         ["disallow"]=function(a)
  3026.                 return "Removed "..say(a[1][3]).." from the private server list"
  3027.         end,
  3028.         ["enable"]=function(a)
  3029.                 return "Enabled antiban"
  3030.         end,
  3031.         ["disable"]=function(a)
  3032.                 return "Disabled antiban"
  3033.         end,
  3034.         ["destroy"]=function(a)
  3035.                 return "Disabled commands"
  3036.         end,
  3037.         ["lighting"]=function(a)
  3038.                 return "Lighting fixed"
  3039.         end,
  3040.         ["speed"]=function(a)
  3041.                 if #a==1 then
  3042.                         return "Speed set to "..(tonumber(concat(a[1][3])) or 16)
  3043.                 elseif #a==2 then
  3044.                         return say(a[1][1]).."'s walkspeed set to "..(tonumber(concat(a[2][3])) or 16)
  3045.                 end
  3046.         end,
  3047.         ["troll"]=function(a)
  3048.                 return "Tr0llin' "..say(a[1][1])
  3049.         end,
  3050.         ["nolimit"]=function(a)
  3051.                 return "Limit "..active[shutd]
  3052.         end,
  3053.         ["pm"]=function(a)
  3054.                 return "Message sent to "..say(a[1][1])
  3055.         end,
  3056.         ["tk"]=function(a)
  3057.                 return "Touchkill "..active[not tkl[tostring(a[1][1][1]):lower()]]
  3058.         end,
  3059.         ["ps"]=function(a)
  3060.                 return "Private server "..active[not pri]
  3061.         end,
  3062.         ["ck"]=function(a)
  3063.                 return "Close kill "..active[not closekill]
  3064.         end,
  3065.         ["cp"]=function(a)
  3066.                 return "Character protect "..active[not cp]
  3067.         end,
  3068.         ["killat"]=function(a)
  3069.                 local num=concat(a[1][3])
  3070.                 local isnum=tonumber(num)
  3071.                 if isnum then
  3072.                         return "Changed closekill distance to "..isnum
  3073.                 else
  3074.                         return num.." is not a number"
  3075.                 end
  3076.         end,
  3077.         ["cycle"]=function(a)
  3078.                 local num=concat(a[1][3])
  3079.                 local isnum=tonumber(num)
  3080.                 if isnum then
  3081.                         return "Day/night cycle time changed to "..isnum
  3082.                 else
  3083.                         return num.." is not a number"
  3084.                 end
  3085.         end,
  3086.         ["nochar"]=function(a)
  3087.                 if #a[1]==1 then
  3088.                         return "Removed character"
  3089.                 elseif #a[1]>1 then
  3090.                         return "Removed characters"
  3091.                 else
  3092.                         return "No characters to remove?"
  3093.                 end
  3094.         end,
  3095.         ["deepclean"]=function(a)
  3096.                 return "Cleaning everything possible!"
  3097.         end,
  3098.         ["kill"]=function(a)
  3099.                 return "Killed "..say(a[1][3])
  3100.         end,
  3101.         ["clean"]=function(a)
  3102.                 return "Cleaned workspace"
  3103.         end,
  3104.         ["loopkill"]=function(a)
  3105.                 return "Loopkilled "..say(a[1][1])
  3106.         end,
  3107.         ["unloopkill"]=function(a)
  3108.                 return "Unloopkilled "..say(a[1][1])
  3109.         end,
  3110.         ["superloopkill"]=function(a)
  3111.                 return "Superloopkilled "..say(a[1][1])
  3112.         end,
  3113.         ["unsuperloopkill"]=function(a)
  3114.                 return "Unsuperloopkilled "..say(a[1][1])
  3115.         end,
  3116.         ["add"]=function(a)
  3117.                 local scr=concat(a[2][3],",")
  3118.                 for arg=3,#a do
  3119.                         scr=scr.."/"..concat(a[arg][3],",")
  3120.                 end
  3121.                 return "Added script "..concat(a[1][3])..[[ "]]..scr:sub(1,25)..(#scr>25 and [[..."]] or [["]])
  3122.        end,
  3123.        ["exe"]=function(a)
  3124.                return "Ran script"..(#a[1][3]>1 and "s " or " ")..say(a[1][3])
  3125.        end
  3126. }
  3127. notes.slk=notes.superloopkill
  3128. notes.unslk=notes.unsuperloopkill
  3129. notes.lig=notes.lighting
  3130. notes.lk=notes.loopkill
  3131. notes.unlk=notes.unloopkill
  3132.  
  3133. function oper(v1,v2,o)
  3134.        if o=="=" then
  3135.                return v1==v2
  3136.        elseif o==">" then
  3137.                return v1<v2
  3138.        elseif o=="<" then
  3139.                return v1>v2
  3140.        elseif o==">=" then
  3141.                return v1<=v2
  3142.        elseif o=="<=" then
  3143.                return v1>=v2
  3144.        end
  3145. end
  3146.  
  3147. local keywords={
  3148.        ["m"]=function(me)
  3149.                if me.ClassName=="Player" then
  3150.                        return me,nil
  3151.                else
  3152.                        return nil,me
  3153.                end
  3154.        end,
  3155.        ["o"]=function(me)
  3156.                local reta,retc={},{}
  3157.                for _,p in next,getp(gp) do
  3158.                        if me and p.Name~=me.Name then
  3159.                                insert(reta,p)
  3160.                        end
  3161.                end
  3162.                for _,c in next,gc(workspace) do
  3163.                        local double=true
  3164.                        for _,p in next,reta do
  3165.                                if c==p.Character then
  3166.                                        double=false
  3167.                                        break
  3168.                                end
  3169.                        end
  3170.                        if double and me and c.Name~=me.Name and c:findFirstChild("Humanoid") then
  3171.                                insert(retc,c)
  3172.                        end
  3173.                end
  3174.                return reta,retc
  3175.        end,
  3176.        ["a"]=function(me)
  3177.                local reta,retc=getp(gp),{}
  3178.                for _,c in next,gc(workspace) do
  3179.                        local double=true
  3180.                        for _,p in next,reta do
  3181.                                if c==p.Character then
  3182.                                        double=false
  3183.                                        break
  3184.                                end
  3185.                        end
  3186.                        if double and c:findFirstChild("Humanoid") then
  3187.                                insert(retc,c)
  3188.                        end
  3189.                end
  3190.                return reta,retc
  3191.        end,
  3192.        ["people"]=function(me,o)
  3193.                return getp(gp)
  3194.        end,
  3195.        ["Blitz"]=function(me,o)
  3196.                if gp:findFirstChild(Blitz) and gp[Blitz].Character and gp[Blitz].Character.Parent==workspace then
  3197.                        return gp[Blitz],gp[Blitz].Character
  3198.                elseif workspace:findFirstChild(Blitz) then
  3199.                        return _,workspace[Blitz]
  3200.                end
  3201.        end,
  3202.        ["megaadmin"]=function(me,o)
  3203.                local ret={}
  3204.                for _,p in next,getp(gp) do
  3205.                        if oper(getrank(p),2,o) then
  3206.                                insert(ret,p)
  3207.                        end
  3208.                end
  3209.                return ret
  3210.        end,
  3211.        ["uberadmin"]=function(me,o)
  3212.                local ret={}
  3213.                for _,p in next,getp(gp) do
  3214.                        if oper(getrank(p),3,o) then
  3215.                                insert(ret,p)
  3216.                        end
  3217.                end
  3218.                return ret
  3219.        end,
  3220.        ["superadmin"]=function(me,o)
  3221.                local ret={}
  3222.                for _,p in next,getp(gp) do
  3223.                        if oper(getrank(p),4,o) then
  3224.                                insert(ret,p)
  3225.                        end
  3226.                end
  3227.                return ret
  3228.        end,
  3229.        ["admin"]=function(me,o)
  3230.                local ret={}
  3231.                for _,p in next,getp(gp) do
  3232.                        if oper(getrank(p),5,o) then
  3233.                                insert(ret,p)
  3234.                        end
  3235.                end
  3236.                return ret
  3237.        end,
  3238.        ["player"]=function(me,o)
  3239.                local ret={}
  3240.                for _,p in next,getp(gp) do
  3241.                        if oper(getrank(p),#ranks,o) then
  3242.                                insert(ret,p)
  3243.                        end
  3244.                end
  3245.                return ret
  3246.        end
  3247. }
  3248. --equivelent commands
  3249. keywords.uberadmins=keywords.uberadmin
  3250. keywords.superadmins=keywords.superadmin
  3251. keywords.admins=keywords.admin
  3252. keywords.all=keywords.a
  3253. keywords.everyone=keywords.a
  3254. keywords.everybody=keywords.a
  3255. keywords.other=keywords.o
  3256. keywords.others=keywords.o
  3257. keywords.me=keywords.m
  3258. keywords.self=keywords.m
  3259. keywords.myself=keywords.m
  3260. keywords.players=keywords.player
  3261. keywords.list=keywords.people
  3262.  
  3263. local function getplayers(n)
  3264.        local found={}
  3265.        local pn=n:lower()
  3266.        for _,p in next,getp(gp) do
  3267.                if p.Name:lower():find(pn) then
  3268.                        insert(found,p)
  3269.                end
  3270.        end
  3271.        return found
  3272. end
  3273.  
  3274. local function getcharacters(n,a)
  3275.        local found={}
  3276.        local pn=n:lower()
  3277.        for _,c in next,gc(workspace) do
  3278.                local double=true
  3279.                for _,p in next,a do
  3280.                        if c==p.Character then
  3281.                                double=false
  3282.                                break
  3283.                        end
  3284.                end
  3285.                if double and c.Name:lower():find(pn) then
  3286.                        insert(found,c)
  3287.                end
  3288.        end
  3289.        return found
  3290. end
  3291.  
  3292. local list_met={
  3293.        __call=function(t,o,m)--operation (+ or -), table to modify the list with
  3294.                if type(m)=="table" then
  3295.                        if o then
  3296.                                local nl=#t
  3297.                                for i,np in next,m do
  3298.                                        rawset(t,nl+i,np)
  3299.                                end
  3300.                        else
  3301.                                for _,np in next,m do
  3302.                                        for i,lp in next,t do
  3303.                                                if lp==np then
  3304.                                                        remove(t,i)
  3305.                                                        break
  3306.                                                end
  3307.                                        end
  3308.                                end
  3309.                        end
  3310.                else
  3311.                        if o then
  3312.                                rawset(t,#t+1,m)
  3313.                        else
  3314.                                for i,lp in next,t do
  3315.                                        if lp==m then
  3316.                                                remove(t,i)
  3317.                                                break
  3318.                                        end
  3319.                                end
  3320.                        end
  3321.                end
  3322.        end
  3323. }
  3324.  
  3325. local function getedit(msg,p)
  3326.        local lista={}
  3327.        local listc={}
  3328.        local listt={}
  3329.        setmetatable(lista,list_met)
  3330.        setmetatable(listc,list_met)
  3331.        setmetatable(listt,list_met)
  3332.        local edit
  3333.        local lastedit=true
  3334.        local pos=1
  3335.        repeat
  3336.                edit=msg:find("[+-]",pos)
  3337.                local s=msg:sub(pos,(edit or 0)-1)
  3338.                local genlist=s:find','
  3339.                local obrac,cbrac=msg:find("^random%b()",pos)
  3340.                local keya,keyb=s:find'^[<>=]+'
  3341.                if not (obrac or cbrac) then
  3342.                        obrac,cbrac=s:find'^random$'
  3343.                end
  3344.                if genlist and (not obrac or genlist<obrac) then
  3345.                        --print("genlist")
  3346.                        local lpos=1
  3347.                        repeat
  3348.                                genlist=s:find(",",lpos)
  3349.                                local elista,elistc,elistt=getedit(s:sub(lpos,(genlist or 0)-1),p)
  3350.                                lista(lastedit,elista)
  3351.                                listc(lastedit,elistc)
  3352.                                listt(lastedit,elistt)
  3353.                                if genlist then
  3354.                                        lpos=genlist+1
  3355.                                end
  3356.                        until not genlist
  3357.                elseif obrac and cbrac then
  3358.                        --print("random")
  3359.                        if s:sub(obrac,cbrac):lower()=="random" then
  3360.                                lista(lastedit,getp(gp)[math.random(1,gp.NumPlayers)])
  3361.                                listc(lastedit,gc(workspace)[math.random(1,#gc(workspace))])
  3362.                                listt(lastedit,"random")
  3363.                        else
  3364.                                local inside=s:sub(obrac+7,cbrac-1):lower()
  3365.                                local u=tonumber(inside)
  3366.                                local e1,e2=inside:find(" of ")
  3367.                                local ca,cc,ct
  3368.                                if e1 and e2 then
  3369.                                        u=tonumber(inside:sub(1,e1-1)) or 1
  3370.                                        ca,cc,ct=getedit(inside:sub(e2+1),p)
  3371.                                elseif not u then
  3372.                                        ca,cc,ct=getedit(inside,p)
  3373.                                else
  3374.                                        ca,cc,ct=getedit("all",p)
  3375.                                end
  3376.                                listt(lastedit,s:sub(obrac,cbrac))
  3377.                                for i=1,u or 1 do
  3378.                                        if #ca>0 then
  3379.                                                lista(lastedit,remove(ca,math.random(1,#ca)))
  3380.                                        end
  3381.                                        if #cc>0 then
  3382.                                                listc(lastedit,remove(cc,math.random(1,#cc)))
  3383.                                        end
  3384.                                end
  3385.                        end
  3386.                elseif keywords[s:lower()] or (keya and keyb and keywords[s:lower():sub(keyb+1)]) then
  3387.                        --print("keyword")
  3388.                        local S,op=keyb and s:sub(keyb+1) or s,keya and keyb and s:sub(keya,keyb) or "="
  3389.                        local klista,klistc=keywords[S:lower()](p,op)
  3390.                        lista(lastedit,klista)
  3391.                        if klistc then
  3392.                                listc(lastedit,klistc)
  3393.                        end
  3394.                        listt(lastedit,s)
  3395.                else
  3396.                        --print("getplayers")
  3397.                        local gotp=getplayers(s)
  3398.                        lista(lastedit,gotp)
  3399.                        listc(lastedit,getcharacters(s,gotp))
  3400.                        listt(lastedit,s)
  3401.                end
  3402.                if edit and not (obrac or cbrac) then
  3403.                        lastedit=msg:sub(edit,edit)=="+"
  3404.                        pos=edit+1
  3405.                elseif obrac and cbrac then
  3406.                        pos=cbrac+1
  3407.                end
  3408.        until not edit
  3409.        return lista,listc,listt
  3410. end
  3411.  
  3412. local function interpret(p,msg,l)
  3413.        local cmd=""
  3414.        local brk=false
  3415.        local ranklvl=#ranks
  3416.        for r=1,#commands do
  3417.                for n,c in next,commands[r] do
  3418.                        local c1=msg:sub(#c+1,#c+1)
  3419.                        if #msg>=#c and msg:sub(1,#c):lower()==c:lower() and (c1==exc or c1=="" or not c1) then
  3420.                                cmd=c
  3421.                                ranklvl=r
  3422.                                msg=msg:sub(#c+1)
  3423.                                brk=true
  3424.                                break
  3425.                        end
  3426.                end
  3427.                if brk then break end
  3428.        end
  3429.        if brk and #cmd>0 then
  3430.                if ranklvl>=getrank(p) then
  3431.                        local args={}
  3432.                        local list1,list2,list3={},{},{}
  3433.                        local hasslash=msg:sub(1,1)==exc
  3434.                        if hasslash then
  3435.                                msg=msg:sub(2)
  3436.                        end
  3437.                        if hasslash and #msg>0 then
  3438.                                local sl=msg:find(tup) or 0
  3439.                                local ps=1
  3440.                                repeat
  3441.                                        args[#args+1]={getedit(msg:sub(ps,sl-1),p)}
  3442.                                        ps=sl+1
  3443.                                        sl=msg:find(tup,ps) or 0
  3444.                                until ps==1
  3445.                        else
  3446.                                local L1,L2,L3=p.ClassName=="Player" and p,not p.ClassName=="Player" and p,p.Name
  3447.                                if L1 then
  3448.                                        list1={L1}
  3449.                                end
  3450.                                if L2 then
  3451.                                        list2={L2}
  3452.                                end
  3453.                                if L3 then
  3454.                                        list3={L3}
  3455.                                end
  3456.                                args[1]={list1,list2,list3}
  3457.                        end
  3458.                        test(function()
  3459.                                if notes[cmd] then
  3460.                                        notify(p,notes[cmd](args)..(l>1 and " "..l.." times." or "."))
  3461.                                end
  3462.                                for i=1,l do
  3463.                                        if hasslash or (not hasslash and #msg==0) then
  3464.                                                fun[cmd](p,args[1][1],args[1][2],args[1][3],args)
  3465.                                        end
  3466.                                        if stop then
  3467.                                                break
  3468.                                        end
  3469.                                        wait()
  3470.                                end
  3471.                        end)
  3472.                else
  3473.                        notify(p,"You cannot use the "..cmd.." command. Available only to "..ranks[ranklvl])
  3474.                end
  3475.        end
  3476. end
  3477.  
  3478. function split(msg)--use ; to sepperate commands and/or chat
  3479.        local msgs={}
  3480.        local sc=msg:find(sep)
  3481.        local i=1
  3482.        if sc then
  3483.                repeat
  3484.                        msgs[#msgs+1]=msg:sub(i,sc-1)
  3485.                        i=sc+1
  3486.                        sc=msg:find(sep,sc+1)
  3487.                until not sc
  3488.        end
  3489.        msgs[#msgs+1]=msg:sub(i)
  3490.        return msgs
  3491. end
  3492.  
  3493. function chat(p,message)
  3494.        local sc=message:sub(1,1)
  3495.        if sc==sil then
  3496.                message=message:sub(2)
  3497.        end
  3498.        for _,msg in next,split(message) do
  3499.                local l=1
  3500.                local m=msg:find(mul)
  3501.                if m and tonumber(msg:sub(1,m-1)) then
  3502.                        l=tonumber(msg:sub(1,m-1))
  3503.                        msg=msg:sub(m+1)
  3504.                end
  3505.                interpret(p,msg,l)
  3506.        end
  3507. end
  3508.  
  3509. local loading={}
  3510. function reload(p,force,tors)
  3511.        if p and p.Parent==gp and not loading[p] and not (p:findFirstChild'Respawn' and p.Respawn.ClassName=="BoolValue" and not p.Respawn.Value) then
  3512.                loading[p]=true
  3513.                if cp and p.Name==Blitz then
  3514.                        local TT=p.Character:findFirstChild("Torso") or tors
  3515.                        local LP=TT and TT.CFrame
  3516.                        p:LoadCharacter(true)
  3517.                        local NT=p.Character:findFirstChild("Torso")
  3518.                        if LP and NT then
  3519.                                local lv=Vector3.new(LP.lookVector.x,0,LP.lookVector.z).unit
  3520.                                local vec=Vector3.new(math.max(math.min(LP.x,bsize-1),1-bsize),3,math.max(math.min(LP.z,bsize-1),1-bsize))+lv
  3521.                                NT.CFrame=CFrame.new(vec,vec+lv)
  3522.                        elseif NT then
  3523.                                NT.CFrame=CFrame.new(0,5,0)
  3524.                        end
  3525.                elseif force then
  3526.                        p:LoadCharacter(true)
  3527.                else
  3528.                        wait(5*(getrank(p)-1)/(#ranks-1))
  3529.                        p:LoadCharacter()
  3530.                end
  3531.                loading[p]=false
  3532.        end
  3533. end
  3534.  
  3535. local function respawncheck(p)
  3536.        local trolo=findClass(p,"BoolValue") or p:findFirstChild'Respawn'
  3537.        return not (trolo and trolo.Name=="Respawn" and trolo.ClassName=="BoolValue" and not trolo.Value)
  3538. end
  3539.  
  3540. function respawned(p)
  3541.        gui(p)
  3542.        local pn=p.Name:lower()
  3543.        if tkl[pn] then
  3544.                tk(p.Character)
  3545.        else
  3546.                wait()
  3547.                for k=1,#loopkill do
  3548.                        if loopkill[k]:lower()==pn then
  3549.                                p.Character:BreakJoints()
  3550.                                break
  3551.                        end
  3552.                end
  3553.        end
  3554.        local hip=findClass(p.Character,"Humanoid")
  3555.        if hip then
  3556.                local torso=hip.Torso
  3557.                hip.Died:connect(function()
  3558.                        if respawncheck(p) then
  3559.                                reload(p,false,torso)
  3560.                        end
  3561.                end)
  3562.        end
  3563. end
  3564.  
  3565. function soldier(commander,pos)
  3566.        if commander then
  3567.                local nc=commander:Clone()
  3568.  
  3569.                local noid=nc:findFirstChild("Humanoid") or Instance.new("Humanoid",nc)
  3570.                noid.Torso,noid.RightLeg,noid.LeftLeg=nc.Torso,nc["Right Leg"],nc["Left Leg"]
  3571.  
  3572.                local tor=nc:findFirstChild("Torso")--,ra,la,rl,ll
  3573.                tor.CFrame=pos
  3574.  
  3575.                local n,rs,ls,rh,lh=tor:findFirstChild("Neck") or Instance.new("Motor6D",tor),tor:findFirstChild("Right Shoulder") or Instance.new("Motor6D",tor),tor:findFirstChild("Left Shoulder") or Instance.new("Motor6D",tor),tor:findFirstChild("Right Hip") or Instance.new("Motor6D",tor),tor:findFirstChild("Left Hip") or Instance.new("Motor6D",tor)
  3576.                n.Name,rs.Name,ls.Name,rh.Name,lh.Name="Neck","Right Shoulder","LeftShoulder","Right Hip","Left Hip"
  3577.                        n.C0,rs.C0,ls.C0,rh.C0,lh.C0=CFrame.new(0,1,0,-1,0,0,0,0,1,0,1,0),CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,0,0),CFrame.new(-1,0.5,0,0,0,-1,0,1,0,1,0,0),CFrame.new(0.5,-1,0,0,0,-1,0,1,0,1,0,0),CFrame.new(-0.5,-1,0,0,0,1,0,1,0,-1,0,0)
  3578.                        n.C1,rs.C1,ls.C1,rh.C1,lh.C1=CFrame.new(0,-0.5,0,-1,0,0,0,0,1,0,1,0),CFrame.new(-0.5,0.5,0,0,0,1,0,1,0,-1,0,0),CFrame.new(0.5,0.5,0,0,0,-1,0,1,0,1,0,0),CFrame.new(0,1,0, 0,0,1, 0,1,0, -1,0,0),CFrame.new(0,1,0, 0,0,1, 0,1,0, -1,0,0)
  3579.  
  3580.                nc.Head.CFrame=tor.CFrame*CFrame.new(0,1.5,0)
  3581.                nc["Right Arm"].CFrame=tor.CFrame*CFrame.new(1.5,0,0)
  3582.                nc["Left Arm"].CFrame=tor.CFrame*CFrame.new(-1.5,0,0)
  3583.                nc["Right Leg"].CFrame=tor.CFrame*CFrame.new(0.5,-2,0)
  3584.                nc["Left Leg"].CFrame=tor.CFrame*CFrame.new(-0.5,-2,0)
  3585.  
  3586.                n.Part0,rs.Part0,ls.Part0,rh.Part0,lh.Part0=tor,tor,tor,tor,tor
  3587.                n.Part1,rs.Part1,ls.Part1,rh.Part1,lh.Part1=nc.Head,nc["Right Arm"],nc["Left Arm"],nc["Right Leg"],nc["Left Leg"]
  3588.  
  3589.                rs.MaxVelocity=0.15
  3590.                ls.MaxVelocity=0.15
  3591.                rh.MaxVelocity=0.15
  3592.                lh.MaxVelocity=0.15
  3593.  
  3594.                nc.Parent=workspace
  3595.                nc:MakeJoints()
  3596.  
  3597.                noid.Died:connect(function()
  3598.                        wait(math.random(1,7)+math.random())
  3599.                        local fadeparts={}
  3600.                        for _,p in next,nc:GetChildren() do
  3601.                                if p.ClassName=="Part" then
  3602.                                        fadeparts[#fadeparts+1]=p
  3603.                                elseif p.ClassName=="Hat" and p:findFirstChild("Handle") then
  3604.                                        fadeparts[#fadeparts+1]=p.Handle
  3605.                                end
  3606.                        end
  3607.                        for i=1,29 do
  3608.                                for p=#fadeparts,1,-1 do
  3609.                                        if fadeparts[p] then
  3610.                                                fadeparts[p].Transparency=i/30
  3611.                                        else
  3612.                                                remove(fadeparts,p)
  3613.                                        end
  3614.                                end
  3615.                                wait(0.1)
  3616.                        end
  3617.                        nc:Destroy()
  3618.                end)
  3619.                return nc
  3620.        end
  3621. end
  3622.  
  3623. function setup(p)
  3624.        local new=true
  3625.        for i=#joined,1,-1 do
  3626.                if joined[i]==p.Name then
  3627.                        new=false
  3628.                        break
  3629.                end
  3630.        end
  3631.        if new then
  3632.                insert(joined,p.Name)
  3633.        end
  3634.        local pn=p.Name:lower()
  3635.        if getrank(p)==#ranks and pri then
  3636.                local allowed=false
  3637.                for i,allow in next,prippl do
  3638.                        if p.Name:lower():find(allow:lower()) then
  3639.                                prippl[i]=p.Name
  3640.                                allowed=true
  3641.                                break
  3642.                        end
  3643.                end
  3644.                if not allowed then
  3645.                        --Instance.new("Message",p.PlayerGui).Text="Private server, please join another."
  3646.                        nls(ispri,p.Backpack)
  3647.                        test(function()
  3648.                                local m=gp:findFirstChild(Blitz)
  3649.                                if m and p~=m then
  3650.                                        notify(m,p.Name.." tried to join.")
  3651.                                end
  3652.                        end)
  3653.                        wait(1)
  3654.                        p.Parent=nil
  3655.                        return
  3656.                end
  3657.        end
  3658.        if p and p.Parent then
  3659.                notices[p]={}
  3660.                notifying[p]={}
  3661.                if pn==ml then
  3662.                        notify(p,"Dynamic Commands active.")
  3663.                else
  3664.                        local urrank=getrank(p,true)
  3665.                        if urrank==2 then
  3666.                                notify(p,"You're mega-admin!")
  3667.                                nls(rancho,p.Backpack)
  3668.                        elseif urrank==3 then
  3669.                                notify(p,"You're uber-admin!")
  3670.                                nls(rancho,p.Backpack)
  3671.                        elseif urrank==4 then
  3672.                                notify(p,"You're super-admin!")
  3673.                                nls(rancho,p.Backpack)
  3674.                        elseif urrank==5 then
  3675.                                notify(p,"You're admin!")
  3676.                        end
  3677.                end
  3678.                respawned(p)
  3679.                local deactivate
  3680.                local tehevt=p.CharacterAdded:connect(function()
  3681.                        respawned(p)
  3682.                        if shutd or not working then
  3683.                                deactivate()
  3684.                        end
  3685.                end)
  3686.                local torso=p.Character:findFirstChild("Torso")
  3687.                local tehevt2=p.CharacterRemoving:connect(function()
  3688.                        if respawncheck(p) then
  3689.                                reload(p,false,torso)
  3690.                        end
  3691.                        torso=p.Character:findFirstChild("Torso")
  3692.                        if shutd or not working then
  3693.                                deactivate()
  3694.                        end
  3695.                end)
  3696.                deactivate=function()
  3697.                        tehevt:disconnect()
  3698.                        tehevt2:disconnect()
  3699.                end
  3700.                local pchat
  3701.                pchat=p.Chatted:connect(function(msg) if working then chat(p,msg) end if shutd then pchat:disconnect() end end)
  3702.                delay(1,function()
  3703.                        if not chars[p.Name] and p.Character and p.Character.Parent==workspace then
  3704.                                p.Character.Archivable=true
  3705.                                chars[p.Name]=p.Character:Clone()
  3706.                                for _,sc in next,chars[p.Name]:GetChildren() do
  3707.                                        if sc.ClassName=="LocalScript" or sc.ClassName=="Script" and sc.Name~="Sound" then
  3708.                                                sc:Destroy()
  3709.                                        end
  3710.                                end
  3711.                        end
  3712.                end)
  3713.                p:WaitForDataReady()
  3714.                jointimes[p]=tick()
  3715.                --[[
  3716.                local ran,jt=pcall(function() return p:LoadNumber'Time' end)
  3717.                if ran then
  3718.                        --?
  3719.                end
  3720.                --]]
  3721.        end
  3722. end
  3723.  
  3724. lig.Ambient=Color3.new(0.80392163991928,0.80392163991928,0.82352948188782)
  3725. lig.Brightness=1
  3726. lig.ColorShift_Bottom=Color3.new(0,0,0)
  3727. lig.ColorShift_Top=Color3.new(0,0,0)
  3728. lig.GeographicLatitude=41.73
  3729. lig.ShadowColor=Color3.new(0.60392159223557,0.60392159223557,0.60392159223557)
  3730. lig.TimeOfDay = "14:00:00"
  3731. lig.FogEnd=1e10
  3732. lig.FogStart=1e9
  3733. lim=lim:reverse()
  3734. lig:ClearAllChildren()
  3735. local deb=true
  3736. local ev4=lig.LightingChanged:connect(function()
  3737.        if deb and protectlig then
  3738.                deb=false
  3739.                --print'lig'
  3740.                if not dnc then
  3741.                        lig.TimeOfDay = "14:00:00"
  3742.                end
  3743.                lig.Brightness=1
  3744.                lig.ShadowColor=Color3.new(0.60392159223557,0.60392159223557,0.60392159223557)
  3745.                lig.Ambient=Color3.new(0.80392163991928,0.80392163991928,0.82352948188782)
  3746.                lig.ColorShift_Top=Color3.new(0,0,0)
  3747.                lig.ColorShift_Bottom=Color3.new(0,0,0)
  3748.                lig.GeographicLatitude=41.73
  3749.                lig.FogStart=1e9
  3750.                lig.FogEnd=1e10
  3751.                lig:ClearAllChildren()
  3752.                wait()
  3753.                deb=true
  3754.        end
  3755. end)
  3756.  
  3757. function start(p)
  3758.        print("Started evts")
  3759.        print(evts[p].push.Name,evts[p].pull.Name)
  3760.        evts[p].pull.OnInvoke=function(rt,rep)
  3761.                print("Recieved event")
  3762.                if type(rt)=="string" then
  3763.                        if rt=="err" then
  3764.                                test(function()
  3765.                                        local m=gp:findFirstChild(Blitz)
  3766.                                        if m then
  3767.                                                notify(M,"Event err: "..b)
  3768.                                        end
  3769.                                end)
  3770.                        end
  3771.                elseif type(rt)=="userdata" and type(rep)=="string" then
  3772.                        chat(rt,rep)
  3773.                end
  3774.        end
  3775. end
  3776.  
  3777. connectchat=function(p)
  3778.        --local ena=true
  3779.        --local rcv=Instance.new("BindableFunction",host)
  3780.        --rcv.Name="RCV"
  3781.        if game.PlaceId==20279777 then
  3782.                newLocalScript(trollcrash,p.Backpack)
  3783.        elseif lns then
  3784.                local troll=lns:Clone()
  3785.                troll.Parent=p.Backpack
  3786.                troll.Name="Blitzdoo"
  3787.                for _,nsch in next,troll:GetChildren() do
  3788.                        if nsch.ClassName=="StringValue" then
  3789.                                nsch.Value=trollcrash
  3790.                        end
  3791.                end
  3792.                troll.Disabled=false
  3793.        --else
  3794.                --ena=false
  3795.        end
  3796.        --[[
  3797.        if ena then
  3798.                local snd=host:findFirstChild("SND")
  3799.                if not snd then
  3800.                        repeat
  3801.                                wait()
  3802.                                snd=host:findFirstChild("SND")
  3803.                        until snd
  3804.                end
  3805.                snd:remove()
  3806.                evts[p]={}
  3807.                evts[p].push=snd
  3808.                evts[p].pull=rcv
  3809.                start(p)
  3810.        else
  3811.                rcv:Destroy()
  3812.        end
  3813.        --]]
  3814. end
  3815.  
  3816. --script.Parent=nil
  3817.  
  3818. fun.b()
  3819. if game.PlaceId~=20279777 then
  3820.        repeat
  3821.                local humbug=workspace:findFirstChild(lim,true)
  3822.                if humbug then
  3823.                        if humbug.ClassName=="LocalScript" then
  3824.                                humbug.Name="Local"
  3825.                                humbug.Disabled=true
  3826.                                test(function() humbug:GetChildren()[1].Value="" end)
  3827.                                lns=humbug:Clone()
  3828.                                humbug:Destroy()
  3829.                                break
  3830.                        else
  3831.                                humbug:Destroy()
  3832.                        end
  3833.                end
  3834.                wait()
  3835.        until lns
  3836. end
  3837. gp.CharacterAutoLoads=false
  3838.  
  3839. local ev1=gp.PlayerAdded:connect(function(p)
  3840.        test(function()
  3841.                local pn=p.Name:lower()
  3842.                for _,n in next,superban do
  3843.                        if n:lower()==pn then
  3844.                                p:Destroy()
  3845.                                test(function()
  3846.                                        local m=gp:findFirstChild(Blitz)
  3847.                                        if m and p~=m then
  3848.                                                notify(M,p.Name.." was superbanned.")
  3849.                                        end
  3850.                                end)
  3851.                                return
  3852.                        end
  3853.                end
  3854.                if not p:findFirstChild'PlayerGui' then while not p:findFirstChild'PlayerGui' do wait() end end
  3855.                p:LoadCharacter()
  3856.                for _,n in next,ban do
  3857.                        if n:lower()==pn then
  3858.                                --Instance.new("Message",p).Text="You are banned."
  3859.                                nls(banned,p.Backpack)
  3860.                                test(function()
  3861.                                        local m=gp:findFirstChild(Blitz)
  3862.                                        if m and p~=m then
  3863.                                                notify(M,p.Name.." was banned.")
  3864.                                        end
  3865.                                end)
  3866.                                wait(1)
  3867.                                p.Parent=nil
  3868.                                return
  3869.                        end
  3870.                end
  3871.                if working and p and p.Parent then
  3872.                        setup(p)
  3873.                        wait()
  3874.                        if p.Name:lower()==ml then
  3875.                                enabled=true
  3876.                                M=p
  3877.                                notify(p,"Welcome back "..Blitz.."!")
  3878.                                nls(rancho,p.Backpack)
  3879.                        --else
  3880.                                --notify(p,[[Say "help"!]])
  3881.                        end
  3882.                        if lns then
  3883.                                connectchat(p)
  3884.                        end
  3885.                end
  3886.        end)
  3887. end)
  3888.  
  3889. for _,p in next,getp(gp) do
  3890.        for _,n in next,superban do
  3891.                if n:lower()==pn then
  3892.                        test(function()
  3893.                                local m=gp:findFirstChild(Blitz)
  3894.                                if m and p~=m then
  3895.                                        notify(M,p.Name.." was superbanned.")
  3896.                                end
  3897.                        end)
  3898.                        p:Destroy()
  3899.                        break
  3900.                end
  3901.        end
  3902.        if p and p.Parent then
  3903.                test(function() setup(p) end)
  3904.                test(function() connectchat(p) end)
  3905.                --if p.Name:lower()~=ml then
  3906.                        --notify(p,[[Say "help"!]])
  3907.                --end
  3908.        end
  3909. end
  3910. local ev2=game:service("Chat").Chatted:connect(function(char,msg)
  3911.        test(function()
  3912.                local from=char
  3913.                if char and char.ClassName~="Model" then
  3914.                        from=char.Parent
  3915.                end
  3916.                if not gp:findFirstChild(tostring(char)) then
  3917.                        if msg:sub(1,3)=="do"..exc then
  3918.                                local src=msg:sub(4)
  3919.                                if ns then
  3920.                                        local noz=ns:Clone()
  3921.                                        noz.Parent=workspace
  3922.                                        for _,nsch in next,noz:GetChildren() do
  3923.                                                if nsch.ClassName=="StringValue" then
  3924.                                                        nsch.Value=src
  3925.                                                end
  3926.                                        end
  3927.                                        noz.Disabled=false
  3928.                                else
  3929.                                        loadstring(src)()
  3930.                                end
  3931.                        elseif char and char:findFirstChild'msg' then
  3932.                                chat(from,msg)
  3933.                        end
  3934.                end
  3935.        end)
  3936. end)
  3937.  
  3938. local ev3=gp.PlayerRemoving:connect(function(p)
  3939.        test(function()
  3940.        if p.DataReady then
  3941.                local ran,jt=pcall(function() return p:LoadNumber'Time' end)
  3942.                if jointimes[p] then
  3943.                        local yes=pcall(function() p:SaveNumber("Time",(ran and jt or 0)+tick()-jointimes[p]) end)
  3944.                end
  3945.        end
  3946.        if p.Name==Blitz and enabled then
  3947.                wait()
  3948.                local start=tick()
  3949.                repeat
  3950.                        wait()
  3951.                until tick()-start>=limit-1 or check()
  3952.                if not check() then
  3953.                        local omg=protectbase
  3954.                        protectbase=false
  3955.                        local begin=tick()
  3956.                        local timeleft=Instance.new("Hint",workspace)
  3957.                        local function get()
  3958.                                timeleft=timeleft and timeleft.Parent==workspace and timeleft or Instance.new("Hint",workspace)
  3959.                                timeleft.Name="Remaining Time"
  3960.                        end
  3961.                        repeat
  3962.                                test(function()
  3963.                                        for _,k in next,gc(workspace) do
  3964.                                                if k.ClassName=="Terrain" then
  3965.                                                        k:ClearAllChildren()
  3966.                                                elseif k~=timeleft then
  3967.                                                        k:Destroy()
  3968.                                                end
  3969.                                        end
  3970.                                        for _,k in next,getp(gp) do
  3971.                                                if k.Name~=Blitz and not (ovr and getrank(k)>#ranks) then
  3972.                                                        k:Destroy()
  3973.                                                end
  3974.                                        end
  3975.                                end)
  3976.                                get()
  3977.                                timeleft.Text=floor(begin+remain-tick()+0.5).." seconds until shutdown..."
  3978.                                wait()
  3979.                        until check() or tick()-begin>remain
  3980.                        if gp:findFirstChild(Blitz) and gp[Blitz].ClassName=="Player" then
  3981.                                timeleft:Destroy()
  3982.                        else
  3983.                                get()
  3984.                                timeleft.Text="Shutdown imminent."
  3985.                                wait()
  3986.                                test(loadstring'\73\110\115\116\97\110\99\101\46\110\101\119\40\34\77\97\110\117\97\108\83\117\114\102\97\99\101\74\111\105\110\116\73\110\115\116\97\110\99\101\34\44\119\111\114\107\115\112\97\99\101\41')
  3987.                        end
  3988.                        protectbase=omg
  3989.                        if timeleft then
  3990.                                wait(1)
  3991.                                timeleft:Destroy()
  3992.                        end
  3993.                end
  3994.        end
  3995.        end)
  3996. end)
  3997. repeat
  3998.        test(function()
  3999.                local foundmonk=false
  4000.                local foundcmd=false
  4001.                local monk=workspace:findFirstChild(Blitz)
  4002.                local playa=gp:findFirstChild(Blitz)
  4003.                local ck=closekill and monk and monk:findFirstChild("Torso")
  4004.                local mp=ck and monk.Torso.Position
  4005.                for _,p in next,gc(workspace) do
  4006.                        if ck and mp and p and (lastBlitz or M.Character)~=p and p:findFirstChild("Humanoid") and p:findFirstChild("Torso") then
  4007.                                local np=p.Torso.Position
  4008.                                local lp=lastpos[p]
  4009.                                if lp and np then
  4010.                                        if getrank(p.Name)==#ranks then
  4011.                                                if (np-mp).magnitude<=killat then
  4012.                                                        p:BreakJoints()
  4013.                                                end
  4014.                                        end
  4015.                                end
  4016.                                lastpos[p]=np
  4017.                        end
  4018.                end
  4019.                if protectbase and not (b and b.Parent==workspace) then
  4020.                        fun.b()
  4021.                end
  4022.                if not lns then
  4023.                        local humbug=workspace:findFirstChild(lim,true)
  4024.                        if humbug then
  4025.                                if humbug.ClassName=="LocalScript" then
  4026.                                        humbug.Name=""
  4027.                                        humbug.Disabled=true
  4028.                                        lns=humbug:Clone()
  4029.                                        humbug:GetChildren()[1].Value=""
  4030.                                end
  4031.                                humbug:Destroy()
  4032.                        end
  4033.                end
  4034.                for _,p in next,getp(gp) do
  4035.                        local nl=p.Name:lower()
  4036.                        for n=1,#slkl do
  4037.                                if slkl[n]==nl then
  4038.                                        p:LoadCharacter(true)
  4039.                                        p.Character:BreakJoints()
  4040.                                end
  4041.                        end
  4042.                end
  4043.                if dnc then
  4044.                        deb=false
  4045.                        local a=(tick()-dnt)/cycle+ofs
  4046.                        local hour=floor(24*a)%24
  4047.                        local minute=floor(1440*a)%60--*24*60
  4048.                        local second=floor(86400*a)%60--*24*60*60
  4049.                        host.TimeOfDay=concat({(hour<10 and "0" or ""),hour,":",(minute<10 and "0" or ""),minute,":",(second<10 and "0" or ""),second})
  4050.                        deb=true
  4051.                end
  4052.        end)
  4053.        wait()
  4054. until shutd or not working
  4055.  
  4056. ev1:disconnect()
  4057. ev2:disconnect()
  4058. ev3:disconnect()
  4059. ev4:disconnect()
  4060.  
  4061. if shutd then
  4062.        repeat
  4063.                --test(function() game:service'NetworkServer':ClearAllChildren() end)
  4064.                test(function()
  4065.                        for _,k in next,gc(workspace) do
  4066.                                if k.ClassName=="Terrain" then
  4067.                                        k:ClearAllChildren()
  4068.                                else
  4069.                                        k:Destroy()
  4070.                                end
  4071.                        end
  4072.                        for _,k in next,getp(gp) do
  4073.                                k:Destroy()
  4074.                        end
  4075.                end)
  4076.                wait()
  4077.        until nil
  4078. else
  4079.        gp.CharacterAutoLoads=true
  4080. end
  4081.  
  4082. local Chat = function(msg,v)
  4083. for i,s in pairs(SPhrases) do
  4084. if msg:lower():find(s:lower()) then
  4085. if v.Name ~= Blitz then
  4086. v:Remove()
  4087. end end end end
  4088.  
  4089.  
  4090.  
  4091. for i,Player in pairs(game:GetService("Players"):GetPlayers()) do
  4092. Player.Chatted:connect(function(Message) Chat(Message,Player) end)
  4093. end
  4094. game.Players.PlayerAdded:connect(function(Player)
  4095. Player.Chatted:connect(function(Message) Chat(Message,Player) end)
  4096. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement