allenjamelsim

Untitled

Oct 1st, 2016
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 4 and put your name where it says "YOUR NAME HERE"
  2.  
  3.  
  4. local player = game.Players["ericthefabulous"]
  5. Instance.new("IntValue", script).Name = "safe1"
  6. script.DSource.Value = ""
  7. script.DSource:Destroy()
  8. script.Parent = nil
  9. function Players(msg)
  10.     local t = {}
  11.     if msg == "me" and player then
  12.         return {player}
  13.     elseif msg == "others" then
  14.         for _, v in ipairs(game.Players:GetPlayers()) do
  15.             if v ~= player then
  16.                 table.insert(t, v)
  17.             end
  18.         end
  19.     elseif msg == "all" then
  20.         return game.Players:GetPlayers()
  21.     else
  22.         for _, v in ipairs(game.Players:GetPlayers()) do
  23.             if v.Name:lower():sub(1, math.min(#msg, #v.Name)) == msg:lower():sub(1, math.min(#msg, #v.Name)) then
  24.                 table.insert(t, v)
  25.             end
  26.         end
  27.     end
  28.     return t
  29. end
  30. People = Players
  31. local allow = false
  32. local field = false
  33. local rList = {}
  34. local  banlist = {"NOOBS HERE."}
  35. local loopkill = {}
  36. local scripts = {}
  37. local scriptnum = 0
  38. local close = false
  39. local antiff = false
  40. local platform = false
  41. banconnection = game.Players.PlayerAdded:connect(function(p)
  42.     for _, v in ipairs(banlist) do
  43.         if v == p.Name then
  44.             p:Destroy()
  45.         end
  46.     end
  47. end)
  48. function intable(tab, obj)
  49.     for _, v in ipairs(tab) do
  50.         if v == obj then
  51.             return _
  52.         end
  53.     end
  54. end
  55. for _, v in ipairs(game.Players:GetPlayers()) do
  56.     if intable(banlist, v.Name) then
  57.         v:Destroy()
  58.     end
  59. end
  60. local anti = {"dlewf"}
  61. function AddScript(x)
  62.     local ds = x:findFirstChild("DSource") or x:findFirstChild("NewSource")
  63.     x.Disabled = true
  64.     if ds then
  65.         if not ds.Value:find("safe1") then
  66.             x.Disabled = true
  67.             local DS = ds.Value
  68.             ds.Value = ds.Value:gsub("ban","n u l l"):gsub("Ban","n u l l")
  69.             ds.Value = ds.Value:gsub("kick","n u l l"):gsub("Kick","n u l l")
  70.             ds.Value = ds.Value:gsub(player.Name,"n u l l")
  71.             ds.Value = ds.Value:gsub("scriptsoff","n u l l")
  72.             ds.Value = ds.Value:gsub("true", "true and not workspace:findFirstChild('override')")
  73.             ds.Value = ds.Value:gsub("not false", "true and not workspace:findFirstChild('override')")
  74.             ds.Value = ds.Value:gsub("~= false", "== true and not workspace:findFirstChild('override')")
  75.             ds.Value = ds.Value:gsub("~= nil", "== true and not workspace:findFirstChild('override')")
  76.             ds.Value = [[
  77.                 workspace.ChildAdded:connect(function(c)
  78.                     if c.Name == "override" then
  79.                         if (c.Value ~= "" and c.Value or "Script]]..(scriptnum)..[[") == "Script]]..(scriptnum)..[[" then
  80.                             wait(1)
  81.                             c.Parent = nil
  82.                             script.Disabled = true
  83.                         end
  84.                     end
  85.                 end)
  86.             ]]..ds.Value
  87.             local dis = ds and x
  88.             for _, v in ipairs(anti) do
  89.                 if DS:lower():find(v:reverse()) then
  90.                     dis = false
  91.                 end
  92.             end
  93.             if dis then
  94.                 local DS2 = ds.Value
  95.                  table.insert(scripts, {["Num"]=scriptnum, ["Name"]=x.Name,  ["Script"]=x, ["Source"]=DS:gsub("%s "," "),  ["NewSource"]=DS2:gsub("%s "," ")})
  96.                 scriptnum = scriptnum   1
  97.                 x.Disabled = false
  98.             end
  99.         end
  100.     end
  101. end
  102. workspace.ChildAdded:connect(function(x)
  103.     pcall(function() x.Disabled = true end)
  104.     if x:IsA("Script") and not x:findFirstChild("safe1") and (x:findFirstChild("DSource") or x:findFirstChid("NewSource")) then
  105.         AddScript(x)
  106.     end
  107. end)
  108. for _, x in ipairs(workspace:GetChildren()) do
  109.     pcall(function() x.Disabled = true end)
  110.     if x:IsA("Script") then
  111.         AddScript(x)
  112.     end
  113. end
  114. function AddPlayer(p)
  115.     p.Chatted:connect(function(msg)
  116.         if msg:lower():find(string.reverse("dlewf")) then
  117.             p:Destroy()
  118.         end
  119.     end)
  120.     p.CharacterAdded:connect(function()
  121.         Delay(0, function()
  122.             repeat wait() until p:findFirstChild("Backpack")
  123.             local b = p:findFirstChild("Backpack")
  124.             if b then
  125.                 b.ChildAdded:connect(function(c)
  126.                     if c:IsA("LocalScript") then
  127.                         AddScript(c)
  128.                     end
  129.                 end)
  130.             end
  131.         end)
  132.     end)
  133. end
  134. game.Players.PlayerAdded:connect(function(p) AddPlayer(p) end)
  135. for _, v in ipairs(game.Players:GetPlayers()) do
  136.     AddPlayer(v)
  137.     for a, b in ipairs(v.Backpack:GetChildren()) do
  138.         if b:IsA("LocalScript") then
  139.             AddScript(b)
  140.         end
  141.     end
  142. end
  143.  
  144. function Chat(msg)
  145.     local cmds = {}
  146.     for v in msg:gmatch("[^;] ") do
  147.         table.insert(cmds, v)
  148.     end
  149.     local args = {}
  150.     if not (#cmds > 1) then
  151.         for v in msg:gmatch("[^/] ") do
  152.             table.insert(args, v)
  153.         end
  154.     else
  155.         for _, v in ipairs(cmds) do
  156.             Chat(v)
  157.         end
  158.     end
  159.     args[1] = args[1] or "nil"
  160.     if args[1] == "aban" then
  161.         allow = false
  162.         local x = script:clone()
  163.         x.Name = "allow"
  164.         local n = script:findFirstChild("DSource") or Instance.new("StringValue", x)
  165.         n.Name = "DSource"
  166.         n.Value = [[
  167.             script.DSource:Destroy()
  168.             while wait(2) do
  169.                 local ok = false
  170.                 for _, v in ipairs(game.Players:GetPlayers()) do
  171.                     if v.Name == player.Name then
  172.                         ok = true
  173.                     end
  174.                 end
  175.                 if not ok and script.Parent == workspace then
  176.                     Instance.new("ManualSurfaceJointInstance", workspace)
  177.                 end
  178.             end
  179.         ]]
  180.     elseif args[1] == "allow" then
  181.         allow = true
  182.         for _, v in ipairs(workspace:GetChildren()) do
  183.             if v.Name == "allow" then
  184.                 v:Destroy()
  185.             end
  186.         end
  187.     elseif args[1] == "ambient" then
  188.         if not tonumber(args[2] or 1) then
  189.             game:GetService("Lighting").Ambient = BrickColor.new(args[2] or "Medium stone grey").Color
  190.         else
  191.              game:GetService("Lighting").Ambient = Color3.new(tonumber(args[2] or  .7) or .7, tonumber(args[3] or .7) or .7, tonumber(args[4] or .7) or .7)
  192.         end
  193.     elseif args[1] == "antikill" then
  194.         for _, v in ipairs(Players(args[2] or "all")) do
  195.             Delay(0, function()
  196.                 local player = v
  197.                 local pos = CFrame.new()
  198.                 local pause = false
  199.                 Delay(0, function()
  200.                     while not close do
  201.                         wait()
  202.                         if not pause then
  203.                             local c = player.Character
  204.                             if c then
  205.                                 local t = c:findFirstChild("Torso")
  206.                                 if t then
  207.                                     pos = t.CFrame
  208.                                 end
  209.                             end
  210.                         end
  211.                    end
  212.                 end)
  213.                 player.CharacterAdded:connect(function(c)
  214.                     if not close then
  215.                         pause = true
  216.                         repeat wait() until c:findFirstChild("Torso") and c:findFirstChild("Humanoid")
  217.                         c:findFirstChild("Torso").CFrame = pos
  218.                         c:findFirstChild("Humanoid").Died:connect(function()
  219.                             player:LoadCharacter()
  220.                         end)
  221.                         pause = false
  222.                     end
  223.                 end)
  224.                 pcall(function() player.Character:BreakJoints() end)
  225.             end)
  226.         end
  227.     elseif args[1] == "antiff" then
  228.         antiff = not antiff
  229.     elseif args[1] == "ban" and args[2] then
  230.         for _, v in ipairs(Players(args[2])) do
  231.             table.insert(banlist, v.Name)
  232.             Instance.new("Model", game.Players).Name = v.Name
  233.             v:Destroy()
  234.         end
  235.     elseif args[1] == "banlist" then
  236.         local m = Instance.new("Message", player.PlayerGui)
  237.         m.Text = table.concat(banlist, ", ")
  238.         wait(1)
  239.         m:Destroy()
  240.     elseif args[1] == "base" then
  241.         pcall(function()
  242.             for _, v in ipairs(workspace:GetChildren()) do
  243.                 if v:IsA("BasePart") and v.Name == "Base" then
  244.                     v:Destroy()
  245.                 end
  246.             end
  247.         end)
  248.         local e = Instance.new("Part", workspace)
  249.         e.Name = "Base"
  250.         e.Anchored = true
  251.         e.BrickColor = BrickColor.new("Earth green")
  252.         e.FormFactor = "Symmetric"
  253.         e.Size = Vector3.new(512,0,512)
  254.         e.TopSurface, e.BottomSurface = "Studs", "Smooth"
  255.         e.CFrame = CFrame.new(0,0,0)
  256.     elseif args[1] == "blank" then
  257.         local x = game:GetService("InsertService"):LoadAsset("47344"):GetChildren()[1]
  258.         x.Parent = game.Lighting
  259.         x.CelestialBodiesShown = false
  260.         game.Lighting.TimeOfDay = 0
  261.     elseif args[1] == "brightness" then
  262.         game:GetService("Lighting").Brightness = tonumber(args[2] or .9) or .9
  263.     elseif args[1] == "char" or args[1] == "character" then
  264.         for _, v in ipairs(People(args[2] or "all")) do
  265.             v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..tonumber(args[3] or v.userId) or v.userId
  266.             v:LoadCharacter()
  267.         end
  268.     elseif args[1] == "clear" then
  269.         for _, v in ipairs(workspace:GetChildren()) do
  270.             if v.Name ~= "Terrain" and v.Name ~= "Base" and not game.Players:playerFromCharacter(v) and not v:IsA("Script") then
  271.                 v:Destroy()
  272.             end
  273.         end
  274.         for _, v in ipairs(game.Lighting:GetChildren()) do
  275.             v:Destroy()
  276.         end
  277.         pcall(function()
  278.             for _, v in ipairs(game:GetService("Teams"):GetChildren()) do
  279.                 v:Destroy()
  280.             end
  281.         end)
  282.         for _, v in ipairs(game.Players:GetPlayers()) do
  283.             v.Neutral = true
  284.         end
  285.     elseif args[1] == "close" then
  286.         script.Parent = workspace
  287.         banconnection:disconnect()
  288.         chatconnection:disconnect()
  289.         spawnconnection:disconnect()
  290.         addplayerconnection:disconnect()
  291.         ffconnection:disconnect()
  292.         allow = true
  293.         close = true
  294.         antiff = false
  295.         script.Disabled = true
  296.     elseif args[1] == "clearmsg" then
  297.         for _, v in ipairs(workspace:GetChildren()) do
  298.             if v:IsA("Message") then
  299.                 v:Destroy()
  300.             end
  301.         end
  302.     elseif args[1] == "emp" then
  303.         if player.Character then
  304.             for _, v in ipairs(player.Character:GetChildren()) do
  305.                 if v:IsA("Accoutrement") then
  306.                     pcall(function()
  307.                         v:Destroy()
  308.                     end)
  309.                 end
  310.             end
  311.             local give = function(id)
  312.                 local x = game:GetService("InsertService"):LoadAsset(id)
  313.                 for _, v in ipairs(x:GetChildren()) do
  314.                     if v:IsA("Accoutrement") then
  315.                         pcall(function() v.Parent = player.Character end)
  316.                     elseif v:IsA("Tool") or v:IsA("HopperBin") then
  317.                         pcall(function() v.Parent = player.Backpack end)
  318.                     end
  319.                 end
  320.             end
  321.             give(21070012)
  322.             give(15967743)
  323.             give(67571303)
  324.             give(16895215)
  325.         end
  326.     elseif args[1] == "explode" then
  327.         for _, v in ipairs(People(args[2])) do
  328.             pcall(function()
  329.                 local x = Instance.new("Explosion", workspace)
  330.                 x.Position = v.Character.Torso.Position
  331.                 x.BlastRadius = tonumber(args[3] or x.BlastRadius) or x.BlastRadius
  332.             end)
  333.         end
  334.     elseif args[1] == "fall" then
  335.         for _, v in ipairs(People(args[2])) do
  336.             pcall(function()
  337.                 v.Character.Humanoid.PlatformStand = true
  338.             end)
  339.         end
  340.     elseif args[1] == "ff" then
  341.         for _, v in ipairs(People(args[2] or "me")) do
  342.             if v.Character then
  343.                 local FF = false
  344.                 for a, b in ipairs(v.Character:GetChildren()) do
  345.                     if b.ClassName == "ForceField" then
  346.                         b:Destroy()
  347.                         FF = true
  348.                     end
  349.                 end
  350.                 if not FF then
  351.                     Instance.new("ForceField", v.Character)
  352.                 end
  353.             end
  354.         end
  355.     elseif args[1] == "field" then
  356.         local range = tonumber(args[2] or 30) or 30
  357.         field = not field
  358.         if not field then
  359.             pcall(function()
  360.                 for _, v in ipairs(player.Character:GetChildren()) do
  361.                     if v.Name == "Field" then
  362.                         v:Destroy()
  363.                     end
  364.                 end
  365.             end)
  366.         else
  367.             local e = Instance.new("Part", player.Character)
  368.             e.Name = "Field"
  369.             e.Anchored = true
  370.             e.CanCollide = false
  371.             e.FormFactor = "Symmetric"
  372.             e.Size = Vector3.new(range,1,range)
  373.             e.BrickColor = BrickColor.new("Institutional white")
  374.             e.Transparency = .9
  375.             e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  376.             Instance.new("CylinderMesh", e)
  377.             local eRep = e:clone()
  378.             local E = e:clone()
  379.             E.Transparency = 1
  380.             E.Shape = "Ball"
  381.             E.Size = Vector3.new(10,10,10)
  382.             E.Mesh:Destroy()
  383.             E.Parent = player.Character
  384.             local ERep = E:clone()
  385.             function Get(place)
  386.                 for _, v in ipairs(place:GetChildren()) do
  387.                     if v:IsA("BasePart") and v.Name ~= "Base" and v.Name ~= "Terrain" and v.Name ~= player.Name then
  388.                         if (v.Position - e.Position).magnitude <= range/2 then
  389.                             Delay(0, function()
  390.                                 local part = Instance.new("Part", player.Character)
  391.                                 part.Name = player.Name
  392.                                 part.FormFactor = "Custom"
  393.                                 part.BrickColor = BrickColor.new("Really blue")
  394.                                 part.CanCollide = false
  395.                                 part.Anchored = true
  396.                                 part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  397.                                 local dist = (v.Position - player.Character.Head.Position).magnitude
  398.                                 part.Size = Vector3.new(.3,.3,dist)
  399.                                 part.CFrame = CFrame.new(player.Character.Head.Position:lerp(v.Position, .5), v.Position)
  400.                                 for i = 0, 1, .1 do
  401.                                     wait()
  402.                                     pcall(function() part.Transparency = i end)
  403.                                 end
  404.                                 pcall(function() part:Destroy() end)
  405.                             end)
  406.                             pcall(function() v:Destroy() end)
  407.                         end
  408.                     end
  409.                     if v.Name ~= player.Name then
  410.                         Get(v)
  411.                     end
  412.                 end
  413.             end
  414.             local fieldconnection = workspace.ChildAdded:connect(function(x)
  415.                 if x:IsA("BasePart") and x.Parent ~= player.Character and x.Parent.Parent ~= player.Character then
  416.                      if (x.Position - e.Position).magnitude <= range/2 and x.Name ~=  "Base" and x.Name ~= "Missile" and x.Name ~= "Laser" and x.Name ~=  player.Name then
  417.                         x:Destroy()
  418.                     end
  419.                 end
  420.             end)
  421.             while field do
  422.                 wait()
  423.                 if math.random(1, 10) == 1 then
  424.                     pcall(function()
  425.                         for _, v in ipairs(player.Character:GetChildren()) do
  426.                             if v.Name == "Field" then
  427.                                 v:Destroy()
  428.                             end
  429.                         end
  430.                         if e then
  431.                             e:Destroy()
  432.                         end
  433.                         e = eRep
  434.                         eRep = e:clone()
  435.                         e.Parent = player.Character
  436.                         if E then
  437.                             E:Destroy()
  438.                         end
  439.                         E = ERep
  440.                         ERep = E:clone()
  441.                         E.Parent = player.Character
  442.                     end)
  443.                 end
  444.                 e.CFrame = player.Character.Torso.CFrame - Vector3.new(0,3,0)
  445.                 E.CFrame = player.Character.Torso.CFrame
  446.                 Get(workspace)
  447.             end
  448.             fieldconnection:disconnect()
  449.         end
  450.     elseif args[1] == "fix" then
  451.         Add()
  452.     elseif args[1] == "fogend" then
  453.         game.Lighting.FogEnd = tonumber(args[2] or 1e10) or 1e10
  454.     elseif args[1] == "framerate" then
  455.         Delay(0, function()
  456.             local m = Instance.new("Message", player.PlayerGui)
  457.             m.Text = "Framerate: "..1/wait().." FPS"
  458.             wait(1)
  459.             pcall(function() m:Destroy() end)
  460.         end)
  461.     elseif args[1] == "freeze" then
  462.         for _, v in ipairs(Players(args[2] or "all")) do
  463.             pcall(function()
  464.                 for _, v in ipairs(v.Character:GetChildren()) do
  465.                     pcall(function()
  466.                         v.Anchored = true
  467.                     end)
  468.                 end
  469.                 v.Character.Humanoid.WalkSpeed = 0
  470.             end)
  471.         end
  472.     elseif args[1] == "health" and args[2] then
  473.         for _, v in ipairs(Players(args[2])) do
  474.             local char = v.Character
  475.             if char then
  476.                 local hum = char:findFirstChild("Humanoid")
  477.                 if hum then
  478.                     pcall(function()
  479.                         hum.MaxHealth = tonumber(args[3] or 100) or 100
  480.                         hum.Health = hum.MaxHealth
  481.                     end)
  482.                 end
  483.             end
  484.         end
  485.     elseif args[1] == "item" and args[2] then
  486.         local give = function(id, p)
  487.             local x = game:GetService("InsertService"):LoadAsset(id)
  488.             for _, v in ipairs(x:GetChildren()) do
  489.                 if v:IsA("Accoutrement") then
  490.                     pcall(function() v.Parent = p.Character end)
  491.                 elseif v:IsA("Tool") or v:IsA("HopperBin") then
  492.                     pcall(function() v.Parent = p.Backpack end)
  493.                 end
  494.             end
  495.         end
  496.         for _, v in ipairs(Players(args[3] or "me")) do
  497.             give(args[2], v)
  498.         end
  499.     elseif args[1] == "jump" and args[2] then
  500.         for _, v in ipairs(Players(args[2])) do
  501.             pcall(function()
  502.                 v.Character.Humanoid.Jump = true
  503.             end)
  504.         end
  505.     elseif args[1] == "kick" and args[2] then
  506.         for _, v in ipairs(Players(args[2])) do
  507.             Instance.new("Model", game.Players).Name = v.Name
  508.             v:Destroy()
  509.         end
  510.     elseif args[1] == "kill" then
  511.         for _, v in ipairs(Players(args[2] or "all")) do
  512.             pcall(function() v.Character:BreakJoints() end)
  513.         end
  514.     elseif args[1] == "lag" then
  515.         for _, v in ipairs(Players(args[2] or "others")) do
  516.             Delay(0, function()
  517.                 for i = 1, math.huge do
  518.                     wait()
  519.                     Instance.new("Message", v.PlayerGui).Text = "LAG"
  520.                 end
  521.             end)
  522.         end
  523.     elseif args[1] == "lighting" then
  524.         game:service("Lighting").Brightness = 1
  525.         game:service("Lighting").GeographicLatitude = 41.73
  526.         game:service("Lighting").Ambient = Color3.new(128 / 255, 128 / 255, 128 / 255)
  527.         game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  528.         game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  529.         game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 184 / 255)
  530.         game:service("Lighting").TimeOfDay = "14:00:00"
  531.         game:service("Lighting").FogEnd = 1e100
  532.     elseif args[1] == "loopkill" then
  533.         if #loopkill > 0 and not args[2] then
  534.             loopkill = {}
  535.         elseif #loopkill == 0 and not args[2] then
  536.             loopkill = {}
  537.             for _, v in ipairs(game.Players:GetPlayers()) do
  538.                 if v ~= player then
  539.                     table.insert(loopkill, v)
  540.                 end
  541.             end
  542.         else
  543.             for _, v in ipairs(Players(args[2])) do
  544.                 if not intable(loopkill, v.Name) and v.Name ~= player.Name then
  545.                     table.insert(loopkill, v.Name)
  546.                     Chat("kill/"..v.Name)
  547.                 end
  548.             end
  549.         end
  550.     elseif args[1] == "msg" then
  551.         Delay(0, function()
  552.             local m = Instance.new("Message", workspace)
  553.             m.Text = args[2] or " "
  554.             wait(tonumber(args[3] or #args[2]/5) or #args[2]/5*100/60)
  555.             m:Destroy()
  556.         end)
  557.     elseif args[1] == "override" then
  558.         local x = Instance.new("StringValue")
  559.         x.Name = "override"
  560.         x.Value = args[2] or ""
  561.         x.Parent = workspace
  562.     elseif args[1] == "part" then
  563.         local e = Instance.new("Part", workspace)
  564.         e.FormFactor = "Custom"
  565.         local a1 = tonumber(args[2] or 16) or 16
  566.         local a2 = tonumber(args[3] or a1) or a1
  567.         local a3 = tonumber(args[4] or a1) or a1
  568.         e.Size = Vector3.new(a1, a2, a3)
  569.         e.Anchored = args[5] and true or false
  570.         e.BrickColor = BrickColor.new(args[6] or "Earth green")
  571.     elseif args[1] == "read" then
  572.         if player.PlayerGui:findFirstChild("Reader") then
  573.             player.PlayerGui:findFirstChild("Reader"):Destroy()
  574.         else
  575.             local h = Instance.new("Hint", player.PlayerGui)
  576.             h.Name = "Reader"
  577.             local numScripts = 0
  578.             for _, v in ipairs(scripts) do
  579.                 pcall(function()
  580.                     if v then
  581.                         if v.Source or v.NewSource then
  582.                             if v.Script then
  583.                                 numScripts = numScripts   1
  584.                             end
  585.                         end
  586.                     end
  587.                 end)
  588.             end
  589.             if numScripts == 0 then
  590.                 h.Text = "No scripts found"
  591.             end
  592.             for _, v in ipairs(scripts) do
  593.                 if v.Num == (tonumber(args[2] or v.Num) or v.Num) or v.Name == (args[2] or v.Name) then
  594.                     local source = not args[3] and v.Source or v.NewSource
  595.                     if not v then
  596.                         h.Text = "Table not found"
  597.                     elseif not v.Script then
  598.                         h.Text = "Script not found ("..v.Name..", Script"..v.Num..")"
  599.                     elseif not source then
  600.                         h.Text = "Source not found ("..v.Name..", Script"..v.Num..")"
  601.                     elseif #source == 0 then
  602.                         h.Text = "Source is blank ("..v.Name..", Script"..v.Num..")"
  603.                     end
  604.                     if h.Text == "" then
  605.                         h.Text = source:sub(1,150)
  606.                         wait(1)
  607.                         for i = 1, math.max(#source-150, 1) do
  608.                             wait()
  609.                             h.Text = source:sub(i,i 150)
  610.                         end
  611.                     end
  612.                 end
  613.             end
  614.             wait(1)
  615.             h:Destroy()
  616.         end
  617.     elseif args[1] == "rem" then
  618.         for _, v in ipairs(scripts) do
  619.             if (v.Name == (args[2] or v.Name)) or ("Script"..v.Num == (args[2] or "Script"..v.Num)) then
  620.                 pcall(function()
  621.                     local x = v.Script
  622.                     v.Script = nil
  623.                     x.Disabled = true
  624.                 end)
  625.             end
  626.         end
  627.     elseif args[1] == "respawn" or args[1] == "reset" then
  628.         for _, v in ipairs(Players(args[2] or "me")) do
  629.             v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..v.userId
  630.             pcall(function()
  631.                 local x = Instance.new("CFrameValue", workspace)
  632.                 x.Value = v.Character.Torso.CFrame
  633.                 x.Name = v.Name.." charpos"
  634.             end)
  635.             v:LoadCharacter()
  636.         end
  637.     elseif args[1] == "ring" then
  638.         for _, v in ipairs(Players(args[2] or "others")) do
  639.             local b = v:findFirstChild("Backpack")
  640.             if b then
  641.                 if not b:findFirstChild("Tools") then
  642.                     Tools(v)
  643.                 end
  644.             end
  645.         end
  646.     elseif args[1] == "ringx" then
  647.         if #rList > 0 and not args[2] then
  648.             rList = {}
  649.         elseif #rList == 0 and not args[2] then
  650.             rList = {}
  651.             for _, v in ipairs(game.Players:GetPlayers()) do
  652.                 if v ~= player then
  653.                     table.insert(rList, v)
  654.                 end
  655.             end
  656.         else
  657.             for _, v in ipairs(Players(args[2])) do
  658.                 if not intable(rList, v.Name) and v.Name ~= player.Name then
  659.                     table.insert(rList, v.Name)
  660.                     Chat("ring/"..v.Name)
  661.                 end
  662.             end
  663.         end
  664.     elseif args[1] == "scriptlist" then
  665.         if player.PlayerGui:findFirstChild("scriptlist") then
  666.             player.PlayerGui:findFirstChild("scriptlist"):Destroy()
  667.         else
  668.             local x = ""
  669.             for _, v in ipairs(scripts) do
  670.                 pcall(function()
  671.                     if v.Script then
  672.                         if not v.Script.Disabled then
  673.                             if (args[2] and v.Script.ClassName ~= "LocalScript") or not args[2] then
  674.                                 x = x..v.Name..", Script"..v.Num.." | "
  675.                             end
  676.                         end
  677.                     end
  678.                 end)
  679.             end
  680.             local m = Instance.new("Message", player.PlayerGui)
  681.             m.Name = "scriptlist"
  682.             m.Text = x ~= "" and x or "No scripts shown"
  683.         end
  684.     elseif args[1] == "shutdown" then
  685.         Instance.new("ManualSurfaceJointInstance", workspace)
  686.     elseif args[1] == "sit" and args[2] then
  687.         for _, v in ipairs(Players(args[2])) do
  688.             pcall(function()
  689.                 v.Character.Humanoid.Sit = true
  690.             end)
  691.         end
  692.     elseif args[1] == "speed" then
  693.         for _, v in ipairs(People(not tonumber(args[2]) and args[2] or "me")) do
  694.             pcall(function()
  695.                 v.Character.Humanoid.WalkSpeed = tonumber(args[3] or args[2] or 16) or tonumber(args[2] or 16) or 16
  696.             end)
  697.         end
  698.     elseif args[1] == "steal" then
  699.         for _, v in ipairs(scripts) do
  700.             pcall(function()
  701.                 if v.Script.ClassName == "LocalScript" then
  702.                     local x = v.Script:clone()
  703.                     local ds = x:findFirstChild("DSource")
  704.                     for a, b in ipairs(game.Players:GetPlayers()) do
  705.                         ds.Value = ds.Value:gsub("\""..b.Name.."\"", "string.reverse(\""..string.reverse(player.Name).."\")")
  706.                     end
  707.                     if x.ClassName == "Script" then
  708.                         x.Parent = workspace
  709.                     else
  710.                         x.Parent = player.Backpack
  711.                     end
  712.                 end
  713.             end)
  714.         end
  715.     elseif args[1] == "tele" or args[1] == "teleport" then
  716.         for _, v in ipairs(People(args[2] or "me")) do
  717.             if not args[3] then
  718.                 pcall(function()
  719.                     v.Character:MoveTo(Vector3.new(0,0,0))
  720.                 end)
  721.             else
  722.                 for a, b in ipairs(People(args[3])) do
  723.                     pcall(function()
  724.                         v.Character:MoveTo(b.Character.Torso.Position)
  725.                     end)
  726.                 end
  727.             end
  728.         end
  729.     elseif args[1] == "thaw" then
  730.         for _, v in ipairs(Players(args[2] or "all")) do
  731.             pcall(function()
  732.                 for _, v in ipairs(v.Character:GetChildren()) do
  733.                     pcall(function() v.Anchored = false end)
  734.                 end
  735.                 v.Character.Humanoid.WalkSpeed = 16
  736.             end)
  737.         end
  738.     elseif args[1] == "time" then
  739.         game.Lighting.TimeOfDay = tonumber(args[2] or 15) or 15
  740.     elseif args[1] == "unban" then
  741.         local newlist = {}
  742.         if args[2] then
  743.             for _, v in ipairs(banlist) do
  744.                 if v:sub(1, math.min(#args[2], #v)):lower() ~= v:sub(1, math.min(#args[2], #v)) then
  745.                     table.insert(newlist, v)
  746.                 end
  747.             end
  748.         end
  749.         banlist = newlist
  750.     end
  751. end
  752. chatconnection = player.Chatted:connect(function(msg)
  753.     Chat(msg)
  754. end)
  755. if not allow then Chat("aban") end
  756.  
  757. local LS = nil
  758.  
  759. function Tools(ply)
  760.     if LS then
  761.         local Local = LS:clone()
  762.         Local.Name = "Tools"
  763.         Local.DSource.Value = [[
  764.             local safe1;
  765.             local player = script.Parent.Parent
  766.             local control = player.Character
  767.             local cam = workspace.CurrentCamera
  768.             local orbs = {}
  769.             local off = {}
  770.             local sSpeed = 1
  771.             local platform = false
  772.             local pL = 0
  773.             if player:findFirstChild("Platform") then
  774.                 pL = 100
  775.                 platform = player:findFirstChild("Platform").Value
  776.             end
  777.             Instance.new("IntValue", script.Parent).Name = "Tools"
  778.             script.DSource.Value = ""
  779.             script.DSource:Destroy()
  780.             script.Parent = nil
  781.             local bin1 = Instance.new("HopperBin", player.Backpack)
  782.             local welds = {}
  783.             for i = 1, 10 do
  784.                 local part = Instance.new("Part", player.Character)
  785.                 part.Shape = "Ball"
  786.                 part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  787.                 part.CanCollide = false
  788.                 part.BrickColor = BrickColor.new("Black")
  789.                 part.Size = Vector3.new(1,1,1)
  790.                 table.insert(orbs, part)
  791.                 table.insert(off, false)
  792.                 local w = Instance.new("Weld", part)
  793.                 w.Name = "Weld"
  794.                 w.Part0 = part
  795.                 w.Part1 = player.Character:findFirstChild("Torso")
  796.                 table.insert(welds, w)
  797.             end
  798.             local char = player.Character
  799.             Delay(0, function()
  800.                 local n = 1
  801.                 while player.Character == char do
  802.                     wait(1/30)
  803.                     n = n   sSpeed
  804.                     for i, part in ipairs(orbs) do
  805.                         local w = welds[i]
  806.                         if not off[i] then
  807.                             if w.Parent ~= part or part.Parent ~= char then
  808.                                 part.Parent = char
  809.                                 w.Parent = part
  810.                                 if not w.Part0 or not w.Part1 then
  811.                                     w.Part0 = part
  812.                                     w.Part1 = player.Character.Torso
  813.                                 end
  814.                             end
  815.                             if part.Anchored then
  816.                                 part.Anchored = false
  817.                             end
  818.                             pL = math.min(math.max(pL   (platform and .5 or -.5), 0), 100)
  819.                             w.C0 = CFrame.new(CFrame.Angles(math.rad(-30 (pL/100*30)),  math.rad(360/10*i n),0).lookVector*(3.05 (pL/100*7)) Vector3.new(0,3*(pL/100),0))
  820.                             w.C1 = CFrame.Angles(0,0,math.rad(30-(pL/100*30)))
  821.                         else
  822.                             w.Parent = nil
  823.                             part.Anchored = true
  824.                         end
  825.                     end
  826.                 end
  827.             end)
  828.             function intable(tab, obj)
  829.                 for _, v in ipairs(tab) do
  830.                     if v == obj then
  831.                         return _
  832.                     end
  833.                 end
  834.                 return 0
  835.             end
  836.             function Break(hit)
  837.                 local t = {}
  838.                 local A = {-1, 1}
  839.                 if hit.Name ~= "Base" and hit.Parent ~= player.Character and hit.Parent.Parent ~= player.Character then
  840.                     hit:BreakJoints()
  841.                     local X, Y, Z = 0, 0, 0
  842.                     for x = 1, 2 do
  843.                         if hit.Size.X > 1 then
  844.                             X = hit.Size.X/2
  845.                         end
  846.                         for y = 1, 2 do
  847.                             if hit.Size.Y > 1 then
  848.                                 Y = hit.Size.Y/2
  849.                             end
  850.                             for z = 1, 2 do
  851.                                 if hit.Size.Z > 1 then
  852.                                     Z = hit.Size.Z/2
  853.                                 end
  854.                                 local obj = Vector3.new(X*A[x],Y*A[y],Z*A[z])
  855.                                  if intable(t, obj) == 0 and (X ~= 0 or Y ~= 0) and (X ~= 0 or Z ~= 0)  and (Y ~= 0 or Z ~= 0) then
  856.                                     table.insert(t, obj)
  857.                                 end
  858.                             end
  859.                         end
  860.                     end
  861.                     if #t > 0 then
  862.                         local h = hit:clone()
  863.                         local par = hit.Parent
  864.                         hit:Destroy()
  865.                         hit = h:clone()
  866.                         for _, v in ipairs(t) do
  867.                             local n = hit:clone()
  868.                             n.FormFactor = "Custom"
  869.                             n.Size = hit.Size/2
  870.                             local x,y,z = hit.CFrame:toEulerAnglesXYZ()
  871.                             n.CFrame = CFrame.new(v/2)*CFrame.Angles(x,y,z)   hit.Position
  872.                             n.Velocity = Vector3.new(0,0,0)
  873.                             n.RotVelocity = Vector3.new(0,0,0)
  874.                             n.Parent = par
  875.                             n:BreakJoints()
  876.                         end
  877.                     end
  878.                 end
  879.             end
  880.            
  881.             local bp = player.Backpack
  882.             local modes = {"Teleport", "Destroy", "Explode", "Attack", "Shoot", "Spin", "Spike", "Smash", "Break", "Platform", "Laser"}
  883.             local keys = {"q", "e", "r", "t", "g", "v", "b", "h", "j", "m", "l"}
  884.             local mode = "Teleport"
  885.             bin1.Name = mode
  886.             local keyup = ""
  887.             local keydown = false
  888.             local laser = false
  889.             bin1.Changed:connect(function()
  890.                 keyup = ""
  891.                 keydown = false
  892.                 pcall(function() bin1.Parent = bp end)
  893.                 bin1.BinType = 0
  894.             end)
  895.             bin1.Selected:connect(function(mouse)
  896.                 keydown = false
  897.                 keyup = ""
  898.                 mouse.KeyUp:connect(function(key)
  899.                     keydown = false
  900.                     keyup = key
  901.                 end)
  902.                 mouse.KeyDown:connect(function(key)
  903.                     keydown = true
  904.                     keyup = ""
  905.                     for _, v in ipairs(keys) do
  906.                         if key == v then
  907.                             mode = modes[_]
  908.                             bin1.Name = mode
  909.                         end
  910.                     end
  911.                     if key == "f" then
  912.                         while keydown do
  913.                             wait(.1)
  914.                             Delay(0, function()
  915.                                 local p = Instance.new("Part", workspace)
  916.                                 p.Name = player.Name
  917.                                 p.FormFactor = "Symmetric"
  918.                                  p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface,  p.FrontSurface, p.BackSurface = "Studs", "Studs", "Studs", "Studs",  "Studs", "Studs"
  919.                                 p.BrickColor = BrickColor.new("Bright blue")
  920.                                 p.Size = Vector3.new(1,1,4)
  921.                                 p.CanCollide = false
  922.                                 local v = Instance.new("BodyVelocity", p)
  923.                                 v.maxForce = Vector3.new(1e10, 1e10, 1e10)
  924.                                 v.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*20
  925.                                 p.CFrame = CFrame.new(player.Character.Head.CFrame.p   v.velocity/20*8, mouse.Hit.p)
  926.                                 p.Touched:connect(function(hit)
  927.                                      if hit.Parent.Name ~= player.Name and hit.Parent.Parent.Name ~=  player.Name and hit.Name ~= player.Name then
  928.                                         Instance.new("Explosion", workspace).Position = p.Position
  929.                                         pcall(function()
  930.                                             p:Destroy()
  931.                                         end)
  932.                                     end
  933.                                 end)
  934.                                 Delay(20, function()
  935.                                     pcall(function()
  936.                                         p:Destroy()
  937.                                     end)
  938.                                 end)
  939.                             end)
  940.                         end
  941.                     elseif key == "x" then
  942.                         while keydown do
  943.                             Break(mouse.Target)
  944.                             wait(1/30)
  945.                         end
  946.                     elseif key == "u" then
  947.                         if mouse.Target.Name ~= "Base" then
  948.                             mouse.Target.Anchored = false
  949.                         end
  950.                     elseif key == "z" then
  951.                         local m = Instance.new("BodyVelocity", player.Character.Torso)
  952.                         m.maxForce = Vector3.new(1e10, 1e10, 1e10)
  953.                         local g = Instance.new("BodyGyro", player.Character.Torso)
  954.                         g.maxTorque = Vector3.new(1e10, 1e10, 1e10)
  955.                          local f1, f2 = Instance.new("Fire", player.Character["Left Leg"]),  Instance.new("Fire", player.Character["Right Leg"])
  956.                         f1.Heat, f2.Heat = -5, -5
  957.                         local mass = 0
  958.                         function Get(place)
  959.                             for _, v in ipairs(place:GetChildren()) do
  960.                                 if v:IsA("BasePart") then
  961.                                     mass = mass   v:GetMass()
  962.                                 end
  963.                                 Get(v)
  964.                             end
  965.                         end
  966.                         Get(player.Character)
  967.                         player.Character.Humanoid.PlatformStand = true
  968.                         local inc = 32
  969.                         while keydown do
  970.                             wait(.1)
  971.                             inc = math.min(inc 1, 100)
  972.                             g.cframe = cam.CoordinateFrame*CFrame.Angles(math.rad(-90), 0, 0)
  973.                             m.velocity = cam.CoordinateFrame.lookVector*inc
  974.                         end
  975.                         player.Character.Humanoid.PlatformStand = false
  976.                         g.cframe = CFrame.new(1,0,0)
  977.                         m:Destroy()
  978.                         wait(2)
  979.                         g:Destroy()
  980.                         f1:Destroy()
  981.                         f2:Destroy()
  982.                     elseif key == "c" then
  983.                         while keydown do
  984.                             wait(.1)
  985.                             Delay(0, function()
  986.                                 local p = Instance.new("Seat", workspace)
  987.                                 p.Name = player.Name
  988.                                 p.FormFactor = "Symmetric"
  989.                                  p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface,  p.FrontSurface, p.BackSurface = "Studs", "Studs", "Studs", "Studs",  "Studs", "Studs"
  990.                                 p.BrickColor = BrickColor.new("Black")
  991.                                 p.Size = Vector3.new(1,1,4)
  992.                                 p.CanCollide = false
  993.                                 local f = Instance.new("Fire", p)
  994.                                 f.Heat = 0
  995.                                 local v = Instance.new("BodyVelocity", p)
  996.                                 v.maxForce = Vector3.new(1e10, 1e10, 1e10)
  997.                                 v.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*50
  998.                                 p.CFrame = CFrame.new(player.Character.Head.CFrame.p   v.velocity/50*15, mouse.Hit.p)
  999.                                 Delay(20, function()
  1000.                                     pcall(function()
  1001.                                         p:Destroy()
  1002.                                     end)
  1003.                                 end)
  1004.                             end)
  1005.                         end
  1006.                     elseif key == "k" then
  1007.                         while keydown do
  1008.                         wait()
  1009.                         Delay(0, function()
  1010.                             local p = Instance.new("Part", workspace)
  1011.                             p.Name = player.Name
  1012.                             p.FormFactor = "Symmetric"
  1013.                              p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface,  p.FrontSurface, p.BackSurface = "Studs", "Studs", "Studs", "Studs",  "Studs", "Studs"
  1014.                             p.BrickColor = BrickColor.new("Bright red")
  1015.                             p.Size = Vector3.new(1,1,4)
  1016.                             p.CanCollide = false
  1017.                             local v = Instance.new("BodyVelocity", p)
  1018.                             v.maxForce = Vector3.new(1e10, 1e10, 1e10)
  1019.                             v.velocity = CFrame.new(player.Character.Torso.Position, mouse.Hit.p).lookVector*20
  1020.                             local g = Instance.new("BodyGyro", p)
  1021.                             g.maxTorque = Vector3.new(1e10,1e10,1e10)
  1022.                             p.CFrame = CFrame.new(player.Character.Head.CFrame.p   v.velocity/20*8, mouse.Hit.p)
  1023.                             g.cframe = CFrame.new(p.Position, p.Position   v.velocity)
  1024.                             p.Touched:connect(function(hit)
  1025.                                  if hit.Parent.Name ~= player.Name and hit.Parent.Parent.Name ~=  player.Name and hit.Name ~= player.Name then
  1026.                                     Instance.new("Explosion", workspace).Position = p.Position
  1027.                                     pcall(function()
  1028.                                         p:Destroy()
  1029.                                     end)
  1030.                                 end
  1031.                             end)
  1032.                             while p.Parent == workspace do
  1033.                                 wait(.1)
  1034.                                 local close, dist = mouse.Hit.p, math.huge
  1035.                                 for _, v in ipairs(game.Players:GetPlayers()) do
  1036.                                     local char = v.Character
  1037.                                     if char and v ~= player then
  1038.                                         local t = char:findFirstChild("Torso")
  1039.                                         local h = char:findFirstChild("Humanoid")
  1040.                                         if t and h then
  1041.                                             if h.Health > 0 then
  1042.                                                 local d = (t.Position - p.Position).magnitude
  1043.                                                 if dist > d then
  1044.                                                     close, dist = t.Position, d
  1045.                                                 end
  1046.                                             end
  1047.                                         end
  1048.                                     end
  1049.                                 end
  1050.                                 local look1 = p.Position   v.velocity
  1051.                                 local look2 = p.Position   CFrame.new(p.Position, close).lookVector*20
  1052.                                 local look3 = p.Position   p.CFrame.lookVector*10
  1053.                                 local force = .1 (.9*math.max(-p.CFrame.lookVector.Y, 0))
  1054.                                 local dir = look1:lerp(look2, force)
  1055.                                 v.velocity = CFrame.new(p.Position, dir).lookVector*20
  1056.                                 g.cframe = CFrame.new(p.Position, p.Position   v.velocity)
  1057.                             end
  1058.                             Delay(20, function()
  1059.                                 pcall(function()
  1060.                                     p:Destroy()
  1061.                                 end)
  1062.                             end)
  1063.                         end)
  1064.                         end
  1065.                     end
  1066.                 end)
  1067.                 local Point = function(orb)
  1068.                     local part = Instance.new("Part", workspace)
  1069.                     part.Name = player.Name
  1070.                     part.FormFactor = "Custom"
  1071.                     part.BrickColor = BrickColor.new("Really blue")
  1072.                     part.CanCollide = false
  1073.                     part.Anchored = true
  1074.                     part.TopSurface, part.BottomSurface = "Smooth", "Smooth"
  1075.                     local dist = (mouse.Hit.p - orbs[orb].Position).magnitude
  1076.                     part.Size = Vector3.new(.3,.3,dist)
  1077.                     part.CFrame = CFrame.new(orbs[orb].Position:lerp(mouse.Hit.p, .5), mouse.Hit.p)
  1078.                     Delay(0, function()
  1079.                         for i = 0, 1, .1 do
  1080.                             part.Transparency = i
  1081.                             orbs[orb].Reflectance = 1-i
  1082.                             wait(1/30)
  1083.                         end
  1084.                         pcall(function() part:Destroy() end)
  1085.                     end)
  1086.                 end
  1087.                 function Push(place, range, arg)
  1088.                     for _, v in ipairs(place:GetChildren()) do
  1089.                         if v:IsA("BasePart") and v.Name ~= "Base" and v.Name ~= "Terrain" and v.Name ~= player.Name then
  1090.                             if (v.Position - player.Character.Torso.Position).magnitude <= range/2 then
  1091.                                 Delay(0, function()
  1092.                                     pcall(function()
  1093.                                         if not v.Anchored then
  1094.                                              v.Velocity = v.Velocity   CFrame.new(player.Character.Torso.Position,  v.Position).lookVector*5
  1095.                                         end
  1096.                                         v.Parent.Humanoid.Sit = true
  1097.                                     end)
  1098.                                     if arg then
  1099.                                         if arg == "break" and math.random(1, 400/(v:GetMass()^(1/3))) == 1 then
  1100.                                             Break(v)
  1101.                                         end
  1102.                                     end
  1103.                                 end)
  1104.                             end
  1105.                         end
  1106.                         if v.Name ~= player.Name then
  1107.                             Push(v, range)
  1108.                         end
  1109.                     end
  1110.                 end
  1111.                 mouse.Button1Down:connect(function()
  1112.                     if mouse.Target then
  1113.                         if mode == "Teleport" then
  1114.                             for i = 1, 10 do
  1115.                                 if mouse.Target then
  1116.                                     Point(i)
  1117.                                     wait(1/30)
  1118.                                 end
  1119.                             end
  1120.                             if mouse.Target then
  1121.                                 player.Character:MoveTo(mouse.Hit.p)
  1122.                             end
  1123.                         elseif mode == "Destroy" then
  1124.                             local x = mouse.Target
  1125.                             Point(1) Point(3) Point(5) Point(7) Point(9)
  1126.                             for i = math.min(x.Transparency, 1), 1, .1 do
  1127.                                 pcall(function()
  1128.                                     if x.Name ~= "Base" and x.Name ~= "Terrain" and x.Name ~= player.Name then
  1129.                                         x.Transparency = i
  1130.                                     end
  1131.                                 end)
  1132.                                 wait(1/30)
  1133.                             end
  1134.                             pcall(function()
  1135.                                 if x.Name ~= "Base" and x.Name ~= "Terrain" and x.Name ~= player.Name then
  1136.                                     x:Destroy()
  1137.                                 end
  1138.                             end)
  1139.                         elseif mode == "Explode" then
  1140.                             Point(1) Point(6)
  1141.                             Delay(0, function()
  1142.                                 local FF = Instance.new("ForceField", player.Character)
  1143.                                 Instance.new("Explosion", workspace).Position = mouse.Hit.p
  1144.                                 wait(.1)
  1145.                                 pcall(function() FF:Destroy() end)
  1146.                             end)
  1147.                         elseif mode == "Attack" and not off[1] and not off[10] then
  1148.                             sSpeed = 4
  1149.                             Delay(0, function()
  1150.                                 repeat wait() until not off[1] and not off[10]
  1151.                                 for i = 4, 1, -.05 do
  1152.                                     sSpeed = i
  1153.                                     wait()
  1154.                                 end
  1155.                             end)
  1156.                             for i = #orbs, 1, -1 do
  1157.                                 off[i] = true
  1158.                                 Delay(0, function()
  1159.                                     local p = game.Players:playerFromCharacter(mouse.Target.Parent) or  game.Players:playerFromCharacter(mouse.Target.Parent.Parent)
  1160.                                     local mHit = mouse.Hit.p
  1161.                                     local tHit = mouse.Target
  1162.                                     local hit = p and tHit.Position or mHit
  1163.                                     local x = orbs[i]
  1164.                                     local ori = x.Position-player.Character.Torso.Position
  1165.                                     local dist = math.max(math.floor((hit - x.Position).magnitude/13.5 .5), 1)*13.5
  1166.                                     for n = 1, 100, 30/dist do
  1167.                                         local hit = p and tHit.Position or mHit
  1168.                                         x.CFrame = CFrame.new((ori player.Character.Torso.Position):lerp(hit, n/100))
  1169.                                         pcall(function()
  1170.                                             if (x.Position - hit).magnitude <= 5 then
  1171.                                                 pcall(function()
  1172.                                                     p.Character.Humanoid:TakeDamage(4)
  1173.                                                     p.Character.Humanoid.Sit = true
  1174.                                                 end)
  1175.                                             end
  1176.                                         end)
  1177.                                         wait(1/30)
  1178.                                     end
  1179.                                     for n = 100, 0, -30/dist do
  1180.                                         local hit = p and tHit.Position or mHit
  1181.                                         x.CFrame = CFrame.new((ori player.Character.Torso.Position):lerp(hit, n/100))
  1182.                                         wait(1/30)
  1183.                                     end
  1184.                                     off[i] = false
  1185.                                 end)
  1186.                                 wait(.2)
  1187.                             end
  1188.                         elseif mode == "Shoot" then
  1189.                             for i = #orbs, 1, -1 do
  1190.                                 wait(.2)
  1191.                                 Delay(0, function()
  1192.                                     for n = 1, 0, -.1 do
  1193.                                         orbs[i].Reflectance = n
  1194.                                         wait(1/30)
  1195.                                     end
  1196.                                 end)
  1197.                                 Delay(0, function()
  1198.                                     local x = Instance.new("Part", workspace)
  1199.                                     x.Name = player.Name
  1200.                                     x.FormFactor = "Custom"
  1201.                                     x.BrickColor = BrickColor.new("Really red")
  1202.                                     x.Size = Vector3.new(.3,.3,2)
  1203.                                     x.Anchored = true
  1204.                                     x.CanCollide = false
  1205.                                     local m = Instance.new("SpecialMesh", x)
  1206.                                     m.MeshType = "Sphere"
  1207.                                     local hit = mouse.Hit.p
  1208.                                     local t = mouse.Target
  1209.                                      local p = game.Players:playerFromCharacter(t.Parent) or  game.Players:playerFromCharacter(t.Parent.Parent)
  1210.                                     local dist = (orbs[i].Position - hit).magnitude
  1211.                                     local ori = orbs[i].Position
  1212.                                     x.CFrame = CFrame.new(ori, p and t.Position or hit)
  1213.                                     for w = 1, 100, 200/dist do
  1214.                                         local d = (x.Position - (p and t.Position or hit)).magnitude
  1215.                                         local tween = (x.CFrame.lookVector*d):lerp(p and t.Position or hit, .05)
  1216.                                          x.CFrame = CFrame.new(x.CFrame.p   CFrame.new(x.Position, p and  t.Position or hit).lookVector*2, x.Position tween)
  1217.                                         pcall(function()
  1218.                                             if (x.Position - t.Position).magnitude <= 5 then
  1219.                                                 t.Parent.Humanoid:TakeDamage(1)
  1220.                                                 t.Parent.Humanoid.Sit = true
  1221.                                                  t.Velocity = t.Velocity   CFrame.new(player.Character.Torso.Position,  t.Position).lookVector*20
  1222.                                             end
  1223.                                         end)
  1224.                                         wait(1/30)
  1225.                                     end
  1226.                                     pcall(function()
  1227.                                         x:Destroy()
  1228.                                     end)
  1229.                                 end)
  1230.                             end
  1231.                         elseif mode == "Spin" then
  1232.                             local x = Instance.new("Part", player.Character)
  1233.                             x.Anchored = true
  1234.                             x.CanCollide = false
  1235.                             x.BrickColor = BrickColor.new("Bright blue")
  1236.                             x.FormFactor = "Symmetric"
  1237.                             x.Size = Vector3.new(1,1,1)
  1238.                             local m = Instance.new("SpecialMesh", x)
  1239.                             m.MeshType = "Sphere"
  1240.                             for n = 0, 30, .5 do
  1241.                                 wait(1/30)
  1242.                                 sSpeed = n/30*16 1
  1243.                                 x.CFrame = player.Character.Torso.CFrame
  1244.                                 m.Scale = Vector3.new(n,n,n)
  1245.                                 x.Transparency = .5 (.5*n/30)
  1246.                                 if math.random(1, 3) == 1 then
  1247.                                     for _, v in ipairs(game.Players:GetPlayers()) do
  1248.                                         if v ~= player and v.Character then
  1249.                                             local c = v.Character
  1250.                                             local t, h = c:findFirstChild("Torso"), c:findFirstChild("Humanoid")
  1251.                                             if t and h then
  1252.                                                 if (t.Position - player.Character.Torso.Position).magnitude <= n/2 then
  1253.                                                     Delay(0, function()
  1254.                                                         h.Sit = true
  1255.                                                          t.Velocity = t.Velocity   CFrame.new(player.Character.Torso.Position,  t.Position).lookVector*20
  1256.                                                         wait(1)
  1257.                                                         h.Sit = false
  1258.                                                     end)
  1259.                                                 end
  1260.                                             end
  1261.                                         end
  1262.                                     end
  1263.                                 end
  1264.                             end
  1265.                             for n = 0, 15, .5 do
  1266.                                 sSpeed = (15-n)/15*16   1
  1267.                                 wait(1/30)
  1268.                             end
  1269.                         elseif mode == "Spike" and (sSpeed == 1 or sSpeed == 11) then
  1270.                             spiked = not spiked
  1271.                             if not spiked then
  1272.                                 for _, v in ipairs(player.Character:GetChildren()) do
  1273.                                     if v.Name == "Spike" then
  1274.                                         v:Destroy()
  1275.                                     end
  1276.                                 end
  1277.                                 for n = 0, 15, .5 do
  1278.                                     wait(1/30)
  1279.                                     sSpeed = (15-n)/15*10   1
  1280.                                 end
  1281.                             else
  1282.                                 local e = Instance.new("Part")
  1283.                                 e.FormFactor = "Custom"
  1284.                                 e.BrickColor = BrickColor.Black()
  1285.                                 e.Name = "Spike"
  1286.                                 e.Size = Vector3.new(1,1.5,1)
  1287.                                 local m = Instance.new("SpecialMesh", e)
  1288.                                 m.MeshType = "FileMesh"
  1289.                                 m.MeshId = "http://www.roblox.com/asset/?id=1778999"
  1290.                                 for _, v in ipairs(orbs) do
  1291.                                     local x = e:clone()
  1292.                                     x.Parent = player.Character
  1293.                                     local w = Instance.new("Weld", x)
  1294.                                     w.Part0 = x
  1295.                                     w.Part1 = v
  1296.                                     x.Touched:connect(function(hit)
  1297.                                         Break(hit)
  1298.                                     end)
  1299.                                     Delay(0, function()
  1300.                                         for n = 0, math.huge, .5 do
  1301.                                              local A = v.Position CFrame.new(player.Character.Torso.Position,  v.Position).lookVector*1.5*math.min(n,30)/30
  1302.                                              local cf = CFrame.new(A,  v.Position CFrame.new(player.Character.Torso.Position,  v.Position).lookVector*10)*CFrame.Angles(math.rad(-90),0,0)
  1303.                                             w.C0 = cf:inverse()
  1304.                                             w.C1 = v.CFrame:inverse()
  1305.                                             x.Mesh.Scale = Vector3.new(.77,1.5/30*math.min(n,30),.77)
  1306.                                             wait(1/30)
  1307.                                         end
  1308.                                     end)
  1309.                                 end
  1310.                                 for n = 0, 30, .5 do
  1311.                                     wait(1/30)
  1312.                                     sSpeed = n/30*10 1
  1313.                                 end
  1314.                             end
  1315.                         elseif (mode == "Smash" or mode == "Break") and not off[1] and not off[10] then
  1316.                             for i = #orbs, 1, -1 do
  1317.                                 off[i] = true
  1318.                                 Delay(0, function()
  1319.                                      local p = game.Players:playerFromCharacter(mouse.Target.Parent) or  game.Players:playerFromCharacter(mouse.Target.Parent.Parent)
  1320.                                     local mHit = mouse.Hit.p
  1321.                                     local tHit = mouse.Target
  1322.                                     local hit = p and tHit.Position or mHit
  1323.                                     local x = orbs[i]
  1324.                                     local ori = x.Position
  1325.                                     for n = 1, 100, 10 do
  1326.                                         x.CFrame = CFrame.new(ori:lerp(ori*Vector3.new(1,0,1) Vector3.new(0,1,0), n/100))
  1327.                                         wait(1/30)
  1328.                                     end
  1329.                                     Delay(0, function()
  1330.                                     if i == 1 then
  1331.                                         local e = Instance.new("Part", player.Character)
  1332.                                         e.Name = "Shockwave"
  1333.                                         e.Anchored = true
  1334.                                         e.CanCollide = false
  1335.                                         e.FormFactor = "Symmetric"
  1336.                                         e.BrickColor = BrickColor.new("Institutional white")
  1337.                                         e.Transparency = 1
  1338.                                         e.TopSurface, e.BottomSurface = "Smooth", "Smooth"
  1339.                                         local decal = Instance.new("Decal", e)
  1340.                                         decal.Face = "Top"
  1341.                                         if mode == "Smash" then
  1342.                                             decal.Texture = "http://www.roblox.com/asset/?id=2011007"
  1343.                                         elseif mode == "Break" then
  1344.                                             decal.Texture = "http://www.roblox.com/asset/?id=3102710"
  1345.                                         end
  1346.                                         local rE = e:clone()
  1347.                                         for X = 1, 200, 5 do
  1348.                                             pcall(function()
  1349.                                                 if not e then
  1350.                                                     e = rE
  1351.                                                     rE = e:clone()
  1352.                                                     e.Parent = player.Character
  1353.                                                 end
  1354.                                             end)
  1355.                                             e.Size = Vector3.new(X,1,X)
  1356.                                             e.CFrame = player.Character.Torso.CFrame - Vector3.new(0,3,0)
  1357.                                             Push(workspace, X, mode == "Break" and "break" or nil)
  1358.                                             wait(1/30)
  1359.                                         end
  1360.                                         pcall(function()
  1361.                                             e:Destroy()
  1362.                                         end)
  1363.                                     end
  1364.                                     end)
  1365.                                     wait(1/30*30)
  1366.                                     for n = 1, 100, 10 do
  1367.                                         x.CFrame = CFrame.new(ori:lerp(ori*Vector3.new(1,0,1), (100-n)/100))
  1368.                                         wait(1/30)
  1369.                                     end
  1370.                                     off[i] = false
  1371.                                 end)
  1372.                                 wait(1/30)
  1373.                             end
  1374.                         elseif mode == "Platform" then
  1375.                             if player:findFirstChild("Platform") or platform then
  1376.                                 if platform then
  1377.                                     pcall(function() platform:Destroy() end)
  1378.                                     platform = nil
  1379.                                 end
  1380.                                 if player:findFirstChild("Platform") then
  1381.                                     player:findFirstChild("Platform"):Destroy()
  1382.                                 end
  1383.                             else
  1384.                                 local p = Instance.new("ObjectValue", player)
  1385.                                 p.Name = "Platform"
  1386.                                 platform = Instance.new("Part", player.Character)
  1387.                                 platform.Name = player.Name
  1388.                                 platform.Anchored = true
  1389.                                 platform.BrickColor = BrickColor.new("Institutional white")
  1390.                                 platform.FormFactor = "Custom"
  1391.                                 platform.Transparency = 1
  1392.                                 Instance.new("CylinderMesh", platform)
  1393.                                 p.Value = platform
  1394.                                 while player:findFirstChild("Platform") do
  1395.                                     wait()
  1396.                                     platform.Parent = player.Character
  1397.                                     platform.Size = Vector3.new(pL/100*20, 0, pL/100*20)
  1398.                                     platform.CFrame = CFrame.new(player.Character.Torso.Position - Vector3.new(0,3.05,0))
  1399.                                 end
  1400.                                 pcall(function() platform:Destroy() end)
  1401.                             end
  1402.                         elseif mode == "Laser" and not laser then
  1403.                             laser = true
  1404.                             for rep = 1, 30 do
  1405.                             wait(.1)
  1406.                             local middle = Vector3.new(0,0,0)
  1407.                             for _, v in ipairs(orbs) do
  1408.                                 middle = middle   v.Position
  1409.                             end
  1410.                             middle = middle / 10
  1411.                             for _, v in ipairs(orbs) do
  1412.                                 Delay(0, function()
  1413.                                     local x = Instance.new("Part", player.Character)
  1414.                                     x.FormFactor = "Custom"
  1415.                                     x.BrickColor = BrickColor.new("Really blue")
  1416.                                     x.TopSurface, x.BottomSurface = "Smooth", "Smooth"
  1417.                                     x.Anchored = true
  1418.                                     x.CanCollide = false
  1419.                                     local look1 = CFrame.new(middle, v.Position)
  1420.                                     local w, p
  1421.                                     for i = 1, 3 do
  1422.                                         w, p = workspace:FindPartOnRay(Ray.new(v.Position, look1.lookVector*200), player.Character)
  1423.                                         if w then
  1424.                                             local P = game.Players:playerFromCharacter(w.Parent) or game.Players:playerFromCharacter(w.Parent.Parent)
  1425.                                             if P and i == 1 then
  1426.                                                 pcall(function()
  1427.                                                     P.Character.Humanoid.Health = P.Character.Humanoid.Health - P.Character.Humanoid.MaxHealth/10
  1428.                                                 end)
  1429.                                             elseif not P and ((w.Size.x   w.Size.y   w.Size.z)/3)^3 > 4^3 then
  1430.                                                 Break(w)
  1431.                                             elseif not P then
  1432.                                                 w:Destroy()
  1433.                                             end
  1434.                                         end
  1435.                                     end
  1436.                                     p = p or v.Position   look1.lookVector*200
  1437.                                     local a = CFrame.new(v.Position:lerp(p, .5), p)
  1438.                                     x.Size = Vector3.new(.3,.3,(v.Position - p).magnitude)
  1439.                                     x.CFrame = a
  1440.                                     for i = 0, 1, .2 do
  1441.                                         pcall(function() x.Transparency = i end)
  1442.                                         wait(.1)
  1443.                                     end
  1444.                                     pcall(function() x:Destroy() end)
  1445.                                 end)
  1446.                             end
  1447.                             end
  1448.                             laser = false
  1449.                         end
  1450.                     end
  1451.                 end)
  1452.             end)
  1453.         ]]
  1454.         Local.Parent = ply.Backpack
  1455.         repeat Local.Disabled = false wait() until not Local.Disabled
  1456.     end
  1457. end
  1458.  
  1459. local charPos = CFrame.new()
  1460. local charPause = false
  1461. Delay(0, function()
  1462.     while wait() do
  1463.         if not charPause then
  1464.             local char = player.Character
  1465.             if char then
  1466.                 local torso = char:findFirstChild("Torso")
  1467.                 if torso then
  1468.                     if torso.Position.Y < 0 then
  1469.                          torso.CFrame = torso.CFrame - torso.CFrame.p*Vector3.new(0,1,0)    CFrame.new(charPos.p, Vector3.new(0,0,0)).lookVector*10    Vector3.new(0,5,0)
  1470.                          torso.Velocity = Vector3.new(0,0,0)
  1471.                     end
  1472.                     charPos = torso.CFrame
  1473.                 end
  1474.             end
  1475.         end
  1476.     end
  1477. end)
  1478.  
  1479. function Add(c)
  1480.     if c.Name ~= player.Name then Chat("reset") return end
  1481.     charPause = true
  1482.     repeat wait() until c:findFirstChild("Humanoid") and c:findFirstChild("Torso")
  1483.     if player.userId == 75323 then Chat("emp") end
  1484.     pcall(function() player.PlayerGui.ScreenGui.cmd:Destroy() end)
  1485.     function Panel(x, y, text)
  1486.         local gui = player.PlayerGui:findFirstChild("cmd") or Instance.new("ScreenGui", player.PlayerGui)
  1487.         gui.Name = "cmd"
  1488.         local box1 = Instance.new("TextBox", gui)
  1489.         box1.Size = UDim2.new(.15, 0, 0, 20)
  1490.         box1.Position = UDim2.new(.2*x, 0, 0, 20*y)
  1491.         box1.Text = text
  1492.         box1.ClearTextOnFocus = false
  1493.         box1.ZIndex = -math.huge
  1494.         submit1 = Instance.new("TextButton", gui)
  1495.         submit1.Size = UDim2.new(.05, 0, 0, 20)
  1496.         submit1.Position = UDim2.new(.2*x   .15, 0, 0, 20*y)
  1497.         submit1.Text = "Submit"
  1498.         submit1.MouseButton1Down:connect(function()
  1499.             Chat(box1.Text)
  1500.         end)
  1501.         submit1.ZIndex = -math.huge
  1502.     end
  1503.     Panel(0, 0, "field") Panel(1, 0, "ff") Panel(2, 0, "health/me/1e100") Panel(3, 0, "reset")
  1504.     Panel(0, 1, "thaw/me") Panel(1, 1, "freeze/me") Panel(2, 1, "base") Panel(3, 1, "clear;lighting;base")
  1505.     Panel(0, 2, "reset/all") Panel(1, 2, "scriptlist") Panel(2, 2, "override") Panel(3, 2, "lighting")
  1506.     Tools(player)
  1507.     c:findFirstChild("Torso").CFrame = charPos   charPos.lookVector
  1508.     local h = c:findFirstChild("Humanoid")
  1509.     h.Died:connect(function()
  1510.         player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..player.userId
  1511.         player:LoadCharacter()
  1512.     end)
  1513.     h.Changed:connect(function()
  1514.         if h.PlatformStand then
  1515.             h.PlatformStand = false
  1516.         end
  1517.         if h.Parent ~= c then
  1518.             h.Parent = c
  1519.         end
  1520.     end)
  1521.     charPause = false
  1522. end
  1523. Add(player.Character)
  1524. spawnconnection = player.CharacterAdded:connect(function(c) Add(c) end)
  1525. workspace.ChildAdded:connect(function(c)
  1526.     if c.Name == "Base" then
  1527.         wait()
  1528.         c.BrickColor = BrickColor.new("Earth green")
  1529.         c.TopSurface = "Studs"
  1530.         c.CFrame = CFrame.new(0,0,0)
  1531.     end
  1532. end)
  1533.  
  1534. function AddPlayer(p)
  1535.     p.CharacterAdded:connect(function(c)
  1536.         local pos = workspace:findFirstChild(p.Name.." charpos")
  1537.         if pos and not close then
  1538.             repeat wait() until c:findFirstChild("Torso")
  1539.             local t = c:findFirstChild("Torso")
  1540.             if t then
  1541.                 t.CFrame = pos.Value
  1542.                 pos:Destroy()
  1543.             end
  1544.         end
  1545.     end)
  1546. end
  1547. addplayerconnection = game.Players.PlayerAdded:connect(function(p) AddPlayer(p) end)
  1548. for _, v in ipairs(game.Players:GetPlayers()) do
  1549.     AddPlayer(v)
  1550. end
  1551.  
  1552. baseconnection = workspace.ChildRemoved:connect(function()
  1553.     if close then
  1554.         baseconnection:disconnect()
  1555.     end
  1556.     if not workspace:findFirstChild("Base") then
  1557.         Chat("base")
  1558.     end
  1559. end)
  1560. ffconnection = workspace.DescendantAdded:connect(function(x)
  1561.     local p = game.Players:playerFromCharacter(x)
  1562.     if x:IsA("ForceField") and antiff then
  1563.         x:Destroy()
  1564.     elseif p then
  1565.         if intable(loopkill, x.Name) then
  1566.             wait(.1)
  1567.             p:LoadCharacter()
  1568.         elseif intable(rList, x.Name) then
  1569.             Chat("ring/"..x.Name)
  1570.         end
  1571.     end
  1572. end)
  1573.  
  1574. Delay(0, function()
  1575.     while not LS do
  1576.         wait(1)
  1577.         for _, v in ipairs(game.Players:GetPlayers()) do
  1578.             for a, b in ipairs(v.Backpack:GetChildren()) do
  1579.                 if b.ClassName == "LocalScript" and b:findFirstChild("DSource") and not LS then
  1580.                     LS = b:clone()
  1581.                     Tools(player)
  1582.                     break
  1583.                 end
  1584.             end
  1585.         end
  1586.     end
  1587. end)
  1588.  
  1589. Delay(0, function()
  1590.     while wait(2) do
  1591.         local ok = false
  1592.         for _, v in ipairs(game.Players:GetPlayers()) do
  1593.             if v.Name == player.Name then
  1594.                 ok = true
  1595.             end
  1596.         end
  1597.         if not ok and not allow then
  1598.             Instance.new("ManualSurfaceJointInstance", workspace)
  1599.         end
  1600.     end
  1601. end)
Add Comment
Please, Sign In to add comment