Burkino

H

Jul 26th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.04 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Mouse = Player:GetMouse()
  3. local Orbit = false
  4. local FastBreak = false
  5. local totdamage = {}
  6. local lock = false
  7. local yes = false
  8. local fastbreakkey = "m"
  9. local killaurakey = "b"
  10. local orbitkey = "v"
  11. local teleportkey = "n"
  12. local Target = 0
  13. local myPos = function()
  14.     return Player.Character.HumanoidRootPart.Position
  15. end
  16. function send(message,tittle,time)
  17. if not time then time = 5 end
  18. game.StarterGui:SetCore("SendNotification", {
  19.     Title = tittle;
  20.     Text = message;
  21.     Duration = time;
  22. })
  23. end
  24. function teleport()
  25. if Target == 0 then send("Something Go Wrong","Target Not Found",5);return end
  26. for i=1,5 do
  27.     wait(0.1)
  28. Player.Character.HumanoidRootPart.CFrame = Target.HumanoidRootPart.CFrame
  29. end
  30. end
  31. game:GetService("Players").LocalPlayer.Chatted:connect(function(msg)
  32. if msg:find("/e settarget") then
  33. msg=msg:gsub("/e settarget ","")
  34. Tick=false
  35. for i,v in pairs(game:GetService("Players"):GetChildren()) do
  36. if v.Name:find(msg) then
  37. Target=v.Character
  38. Tick=true
  39. end
  40. end
  41. if Tick then
  42. send("Target Setted To :"..Target.Name,"Success!",7)
  43. else
  44. send("Unable To Find User With : "..msg,"Failed :(",4)
  45. end
  46. elseif msg:find("/e viewtarget") then
  47. if Target == 0 then send("Target Not Found!",":(",4);return end
  48. send(Target.Name,"Target",4)
  49.  
  50. end
  51. end)
  52. local Damage=function(part)
  53. local one = game:GetService("ReplicatedStorage").RelativeTime.Value
  54. local two = part
  55. game:GetService("ReplicatedStorage").Events.SwingTool:FireServer(one, two)
  56. end
  57. Mouse.KeyDown:connect(function(key)
  58.     if key == killaurakey then
  59.         if yes then yes=false;send("OFF","KillAura",3) else yes=true;send("ON","KillAura",3) end
  60.         while yes do
  61.         wait()
  62.         for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  63.             if v ~= Player and v.Character then
  64.                 local HRP = v.Character:findFirstChild("HumanoidRootPart")
  65.                 if HRP then
  66.                     local Distance = (HRP.Position - myPos()).magnitude
  67.                   if Distance <= 40 then
  68.                     if not lock and Orbit then
  69.                     lock=true
  70.                     spawn(function()
  71.                     repeat
  72.                     wait()
  73.                    Player.Character.HumanoidRootPart.CFrame = v.Character:findFirstChild("HumanoidRootPart").CFrame + (v.Character:findFirstChild("HumanoidRootPart").CFrame.lookVector*Vector3.new(-7,0,-7))
  74.                    wait(0.1)
  75.                    Player.Character.HumanoidRootPart.CFrame = v.Character:findFirstChild("HumanoidRootPart").CFrame + (v.Character:findFirstChild("HumanoidRootPart").CFrame.lookVector*Vector3.new(7,0,7))
  76.                    wait(0.1)
  77.                    Player.Character.HumanoidRootPart.CFrame = v.Character:findFirstChild("HumanoidRootPart").CFrame + (v.Character:findFirstChild("HumanoidRootPart").CFrame.lookVector*Vector3.new(0,20,0))
  78.                     until not Orbit or not yes
  79.                     lock=false
  80.                     end)
  81.                     end
  82.                     totdamage={}
  83.                     for k,p in pairs(v.Character:GetChildren()) do
  84.                     table.insert(totdamage,p)
  85.                         end
  86.                     Damage(totdamage)
  87.                 end
  88.             end
  89.         end
  90. end
  91.         end
  92.         elseif key == orbitkey then
  93. if Orbit then Orbit=false;lock=false;send("OFF","Orbit",3) else Orbit=true;send("ON","Orbit",3) end
  94. elseif key == teleportkey then
  95. teleport()
  96. elseif key == fastbreakkey then
  97. if FastBreak then FastBreak=false;send("OFF","FastBreak",3) else FastBreak=true;send("ON","FastBreak",3) end
  98. end
  99. end)
  100. spawn(function()
  101.     game:GetService("RunService").RenderStepped:connect(function()
  102. if FastBreak then
  103. wait(0.1)
  104. local part = game:GetService("Players").LocalPlayer:GetMouse().Target
  105. local one = game:GetService("ReplicatedStorage").RelativeTime.Value
  106. local two = {part,part,part,part}
  107. game:GetService("ReplicatedStorage").Events.SwingTool:FireServer(one, two)
  108.     end
  109.     end)
  110. end)
  111. send("Welcome to OnyxHub!","Loaded",4)
Add Comment
Please, Sign In to add comment