SHARE
TWEET

Untitled

a guest Nov 12th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local p = game.Players.LocalPlayer
  3. local char = p.Character
  4. local size = 8
  5. part = function()
  6.  
  7.   local a = Instance.new("Part", script)
  8.   a.Anchored = true
  9.   a.CanCollide = true
  10.   a.CFrame = char.Torso.CFrame
  11.   a.Size = Vector3.new(size, 0.2, 0.2)
  12.   a.Transparency = 1
  13.   return a
  14. end
  15.  
  16. part2 = function()
  17.  
  18.   local a = Instance.new("Part", script)
  19.   a.Anchored = true
  20.   a.CanCollide = true
  21.   a.CFrame = char.Torso.CFrame
  22.   a.Size = Vector3.new(0.2, size, 0.2)
  23.   a.Transparency = 1
  24.   return a
  25. end
  26.  
  27. part3 = function()
  28.  
  29.   local a = Instance.new("Part", script)
  30.   a.Anchored = true
  31.   a.CanCollide = false
  32.   a.Size = Vector3.new(size, size, 1)
  33.   a.Transparency = 0.7
  34.   a.Material = "Neon"
  35.   a.BrickColor = BrickColor.new("Really red")
  36.   local b = Instance.new("BlockMesh", a)
  37.   b.Scale = Vector3.new(1, 1, 0)
  38.   return a
  39. end
  40.  
  41. local replicating = false
  42. local root, a, b, c, d, a2, b2, c2, d2, aa, bb, cc, dd, z, x, c, v, b, n = nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil
  43. replicate = function()
  44.  
  45.   replicating = true
  46.   script:ClearAllChildren()
  47.   root = part()
  48.   root.Transparency = 1
  49.   root.Size = Vector3.new(0.2, 0.2, 0.2)
  50.   root.CanCollide = false
  51.   a = part()
  52.   b = part()
  53.   c = part()
  54.   d = part()
  55.   a2 = part()
  56.   b2 = part()
  57.   c2 = part()
  58.   d2 = part()
  59.   aa = part2()
  60.   bb = part2()
  61.   cc = part2()
  62.   dd = part2()
  63.   z = part3()
  64.   x = part3()
  65.   c = part3()
  66.   v = part3()
  67.   b = part3()
  68.   n = part3()
  69.   replicating = false
  70. end
  71.  
  72. script.ChildRemoved:connect(function(a)
  73.  
  74.   if a.ClassName == "Part" and replicating == false then
  75.     replicate()
  76.   end
  77. end
  78. )
  79. replicate()
  80. local tick = 0
  81. CreateRegion3FromLocAndSize = function(Position, Size)
  82.  
  83.   local SizeOffset = Size / 2
  84.   local Point1 = Position - SizeOffset
  85.   local Point2 = Position + SizeOffset
  86.   return Region3.new(Point1, Point2)
  87. end
  88.  
  89. local set = false
  90. local whitelist = {"Hieroku", "PPATTA", "DevGamerzz", "I kill U", "kash5", "ZeroCrimson", "Zaidia", "tsup2", "PointCoded", "CLarramore", "Suzuuki", "", "", ""}
  91. p.Chatted:connect(function(ms)
  92.  
  93.   if ms:sub(1, 5) == "size-" then
  94.     size = tonumber(ms:sub(6))
  95.     replicate()
  96.   else
  97.     if ms:sub(1, 4) == "set-" then
  98.       set = true
  99.       z.CanCollide = false
  100.       x.CanCollide = false
  101.       c.CanCollide = false
  102.       v.CanCollide = false
  103.       b.CanCollide = false
  104.       n.CanCollide = false
  105.     else
  106.       if ms:sub(1, 6) == "unset-" then
  107.         set = false
  108.         z.CanCollide = false
  109.         x.CanCollide = false
  110.         c.CanCollide = false
  111.         v.CanCollide = false
  112.         b.CanCollide = false
  113.         n.CanCollide = false
  114.       else
  115.         if ms:sub(1, 10) == "whitelist-" then
  116.           table.insert(whitelist, ms:sub(11))
  117.         else
  118.           if ms:sub(1, 12) == "unwhitelist-" then
  119.             for i,v in pairs(whitelist) do
  120.               if ms:sub(13) == v then
  121.                 table.remove(whitelist, i)
  122.                 break
  123.               end
  124.             end
  125.           end
  126.         end
  127.       end
  128.     end
  129.   end
  130. end
  131. )
  132. local magicpos = nil
  133. game:GetService("RunService").Heartbeat:connect(function()
  134.  
  135.   pcall(function()
  136.    
  137.     local void = char:GetChildren()
  138.     for _,pl in pairs(whitelist) do
  139.       if game.Players:FindFirstChild(pl) ~= nil and game.Players:FindFirstChild(pl).Character ~= nil then
  140.         for i,v in pairs(game.Players[pl].Character:GetChildren()) do
  141.           table.insert(void, v)
  142.         end
  143.       end
  144.     end
  145.     for i,v in pairs(game.Players:GetPlayers()) do
  146.       if v.Character:isDescendantOf(char) and not v.Name == "FangxWulf" then
  147.         v:LoadCharacter()
  148.       end
  149.     end
  150.     char.Humanoid.Health = math.huge
  151.     tick = tick + 0.01
  152.     if not set then
  153.       root.CFrame = root.CFrame:lerp(CFrame.new(char.Torso.CFrame.p) * CFrame.Angles(math.sin(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2), math.cos(tick) * 100 / 30 / (size / 2)), 0.1)
  154.       magicpos = char.Torso.CFrame
  155.     else
  156.       root.CFrame = root.CFrame:lerp(CFrame.new(magicpos.p) * CFrame.Angles(0, 0, 0), 0.05)
  157.     end
  158.     local reg = CreateRegion3FromLocAndSize(root.CFrame.p, Vector3.new(size, size, size))
  159.     for i,v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, void, 100)) do
  160.       if v.Name ~= "Base" then
  161.         v:Destroy()
  162.       end
  163.     end
  164.     a.CFrame = root.CFrame * CFrame.new(size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  165.     b.CFrame = root.CFrame * CFrame.new(-size / 2, size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  166.     c.CFrame = root.CFrame * CFrame.new(0, size / 2, size / 2)
  167.     d.CFrame = root.CFrame * CFrame.new(0, size / 2, -size / 2)
  168.     a2.CFrame = root.CFrame * CFrame.new(size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  169.     b2.CFrame = root.CFrame * CFrame.new(-size / 2, -size / 2, 0) * CFrame.Angles(0, math.rad(90), 0)
  170.     c2.CFrame = root.CFrame * CFrame.new(0, -size / 2, size / 2)
  171.     d2.CFrame = root.CFrame * CFrame.new(0, -size / 2, -size / 2)
  172.     aa.CFrame = root.CFrame * CFrame.new(size / 2, 0, size / 2)
  173.     bb.CFrame = root.CFrame * CFrame.new(-size / 2, 0, size / 2)
  174.     cc.CFrame = root.CFrame * CFrame.new(-size / 2, 0, -size / 2)
  175.     dd.CFrame = root.CFrame * CFrame.new(size / 2, 0, -size / 2)
  176.     z.CFrame = root.CFrame * CFrame.new(size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  177.     x.CFrame = root.CFrame * CFrame.new(-size / 2, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  178.     c.CFrame = root.CFrame * CFrame.new(0, 0, size / 2) * CFrame.Angles(0, 0, math.rad(90))
  179.     v.CFrame = root.CFrame * CFrame.new(0, 0, -size / 2) * CFrame.Angles(0, 0, math.rad(90))
  180.     b.CFrame = root.CFrame * CFrame.new(0, size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  181.     n.CFrame = root.CFrame * CFrame.new(0, -size / 2, 0) * CFrame.Angles(math.rad(90), 0, 0)
  182.   end
  183. )
  184. end
  185. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top