Advertisement
SigmaBoy456

Roblox CHAOS kill aura

Sep 8th, 2024 (edited)
8,861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. -- Kill aura made by MawinCK
  2. local player = game:GetService("Players")
  3. local localplayer = player.LocalPlayer
  4. local character = localplayer.Character or player.CharacterAdded:Wait()
  5. local localroot = character:WaitForChild("HumanoidRootPart")
  6. local Tool = character:FindFirstChildOfClass("Tool")
  7. local remote = Tool:FindFirstChild("DamageRemote")
  8.  
  9. local function closest()
  10. local target = nil
  11. local range = 30
  12. for i, v in pairs(game.Players:GetPlayers()) do
  13. if v ~= localplayer and v.Character and not v.Character:FindFirstChildWhichIsA("ForceField") then
  14. local JN = v.Character:FindFirstChild("HumanoidRootPart")
  15. local dist = (localroot.Position - JN.Position).magnitude
  16. if dist < range then
  17. range = dist
  18. target = v
  19. end
  20. end
  21. end
  22. return target
  23. end
  24.  
  25. local t = closest()
  26. local function gethum()
  27. local global = nil
  28. t = closest()
  29. if t and t.Character then
  30. local h = t.Character:FindFirstChildOfClass("Humanoid")
  31. if h and h.Health > 0 then
  32. global = h
  33. end
  34. end
  35. return global
  36. end
  37.  
  38. local hum = gethum()
  39. game:GetService("RunService").RenderStepped:Connect(function()
  40. hum = gethum()
  41. end)
  42.  
  43. while wait(0.1) do
  44. if hum then
  45. local args = {
  46. [1] = hum
  47. }
  48. remote:FireServer(unpack(args))
  49. else
  50. warn("No Global")
  51. end
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement