MicroLux

O

Sep 5th, 2022
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.22 KB | None | 0 0
  1. local i = false
  2. local ToggleKey = Enum.KeyCode.Semicolon --https://developer.roblox.com/en-us/api-reference/enum/KeyCode
  3. --must hit togglekey to start
  4. local length = 100000 --number of studs between you and other players to hit them (keep it at this to kill all)
  5.  
  6. game:GetService("ReplicatedStorage").Remotes.Died:Destroy()
  7. game:GetService("Workspace").Interactives.Water:Destroy()
  8. getgenv().toggle = false
  9. function killaura(character)
  10. spawn(function()
  11. local namee = character.Name
  12. while task.wait(0.1) do
  13. if toggle == true then
  14. if game.Players.LocalPlayer.Character then
  15. if character then
  16. if game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and character:FindFirstChild("HumanoidRootPart") then
  17. if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - character.HumanoidRootPart.Position).Magnitude < length then
  18. local num = 0
  19. if not _G.current then
  20. _G.current = character
  21. timer = tick()
  22. while task.wait(0.035) do
  23. if (tick() - timer)/1000 > 5 then
  24. break
  25. end
  26. if _G.current ~= character then
  27. break
  28. end
  29. if workspace:FindFirstChild(character.Name.."Shield") then
  30. workspace:FindFirstChild(character.Name.."Shield"):Destroy()
  31. end
  32. if not toggle then
  33. break
  34. end
  35. if not game.Players:GetPlayerFromCharacter(character) then
  36. break
  37. elseif not game.Players:GetPlayerFromCharacter(character).Parent then
  38. break
  39. end
  40. if game.Players:GetPlayerFromCharacter(character).SafeZone.Value then
  41. break
  42. end
  43. if character.Humanoid.Health > 0 then
  44. num = num + 1
  45. local a,b,c = math.random(-500, 500)/100,0,math.random(-500, 500)/100
  46. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.lookAt(character.HumanoidRootPart.Position + Vector3.new(a,b,c), character.HumanoidRootPart.Position)
  47. game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = character.HumanoidRootPart.Velocity
  48. if i then
  49. i = false
  50. game:GetService("ReplicatedStorage").Remotes.Hit:FireServer("Right Arm")
  51. else
  52. i = true
  53. game:GetService("ReplicatedStorage").Remotes.Hit:FireServer("Left Arm")
  54. end
  55. else
  56. break
  57. end
  58. end
  59. if _G.current == character then
  60. _G.current = nil
  61. end
  62. end
  63. end
  64. end
  65. else
  66. repeat task.wait(1) until game.Players[namee].Character
  67. task.wait(0.05)
  68. killaura(game.Players[namee].Character)
  69. end
  70. end
  71. else
  72. repeat task.wait(0.1) until toggle
  73. end
  74. end
  75. end)
  76. end
  77. for i, v in pairs(game.Players:GetChildren()) do
  78. if v ~= game.Players.LocalPlayer then
  79. task.wait(0.1347523)
  80. killaura(v.Character)
  81. v.CharacterAdded:Connect(function()
  82. task.wait(0.05)
  83. killaura(v.Character)
  84. end)
  85. end
  86. end
  87. game.Players.ChildAdded:Connect(function(v)
  88. killaura(v.Character)
  89. v.CharacterAdded:Connect(function()
  90. task.wait(0.05)
  91. killaura(v.Character)
  92. end)
  93. end)
  94. game:GetService("UserInputService").InputBegan:Connect(function(inp)
  95. if inp.KeyCode == ToggleKey then
  96. if getgenv().toggle then
  97. getgenv().toggle = false
  98. else
  99. getgenv().toggle = true
  100. end
  101. end
  102. end)
  103. while task.wait() do
  104. if not _G.current and toggle then
  105. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(0, 1000, 0))
  106. end
  107. end
Add Comment
Please, Sign In to add comment