Red_Bloxz

ไก่

Jan 29th, 2023
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. _G.killaura = true
  2.  
  3. while _G.killaura do wait()
  4. pcall(function()
  5. local dist = math.huge
  6. local target = nil
  7. for i,v in pairs(game:GetService("Workspace").Enemies:GetChildren()) do
  8. if v.ClassName == "Model" then
  9. local magnitude = (v.HumanoidRootPart.Position - game:GetService("Players").LocalPlayer.Character.Head.Position).magnitude
  10. if magnitude < dist then
  11. dist = magnitude
  12. target = v.Name
  13. v.Humanoid.Health = die
  14. print(target)
  15. end
  16. end
  17. end
  18. end)
  19. end
Add Comment
Please, Sign In to add comment